Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

What is the correct way to configure -Xms and -Xmx for a GSC when using GSA

We're using the GridServiceAgent to start our system. I've set -Xms=1G and -Xmx=2G in EXT_JAVA_OPTIONS, but that does not seem to get propagated to the GSCs that the GSA spawns. What is the correct way to specify the JVM memory for a GSC that is launched via the GSA?

Thanks, Rowland

Edited by: Rowland Smith on Oct 15, 2009 2:35 PM

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3277]{quote}

asked 2009-10-15 14:17:52 -0500

river2sea gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

You should edit \gigaspaces-xap-premium-7.0.1-ga\config\gsa\gsc.xml and have it to call your gsc startup script.
See the following:

            windows="${com.gs.home}/bin/gsc.bat" unix="${com.gs.home}/bin/gsc.sh">

This will set the EXTJAVAOPTIONS and call existing gsc.sh script.
In the same manner you can wrap the gs-agent script.

Shay

answered 2009-10-21 07:59:33 -0500

shay hassidim gravatar image
edit flag offensive delete link more
0

Thanks for the info - the wrapper script is working fine now.

Rowland

answered 2009-11-05 14:18:44 -0500

river2sea gravatar image
edit flag offensive delete link more
0

Its just a script error

Try adding export -p JAVA_OPTIONS="" in gsc.sh/bat file

GSA is starting GSC and GSM and JAVA_OPTIONS from GSA are getting carried to gsc.sh script and thus it is not considering your EXT_JAVA_OPTIONS

Thanks Venkat

answered 2009-10-16 10:53:15 -0500

venkatg gravatar image
edit flag offensive delete link more

Comments

Perhaps the real question is: Should I try to set the min/max heap size of the JVM that my GSC will run in?

I start gs-agent.sh (GSA), and it then spawns my GSC(s). Let's say I want the following:

  • GSA with 512M of heap.
  • GSC with 1G of heap.

As far as I can tell, the only way to change the heap size is by including -Xmx/-Xmn in the EXT_JAVA_OPTIONS environment variable. This variable gets picked up by BOTH the GSA and the GSC, i.e they both get the same memory settings. Do you see my dilemma?

Thanks, Rowland

river2sea gravatar imageriver2sea ( 2009-10-20 14:07:55 -0500 )edit

Hey RowLand

If you see my post correctly... you can understand why GSA and GSC are picking up the same configurations

""GSA is starting GSC and GSM and JAVA_OPTIONS variable from GSA are getting carried to gsc.sh script and thus it is not considering your EXT_JAVA_OPTIONS""

In setenv.sh script, if JAVA_OPTIONS variable is available, script ignores EXT_JAVA_OPTIONS... JAVA_OPTIONS variable is set when GSA starts and thus u need to set it to null in gsc.sh to get your gsc take EXT_JAVA_OPTIONS you set for gsc.

venkatg gravatar imagevenkatg ( 2009-10-22 15:47:18 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-10-15 14:17:52 -0500

Seen: 445 times

Last updated: Nov 05 '09