Forums Register Login

increase jvm size in linux

+Pie Number of slices to send: Send
HI i want to increase the JVM size in red hat linux 5 using a .sh file.

I hav written the comand in my .sh file as

#!/bin/sh
export JAVA_OPTIONS="-Xss2M"

its not increasing the JVM size please suggest what command has to be there to change the JVM size on executing a .sh file its urgent
+Pie Number of slices to send: Send
The -Xss option sets the stack size, not the size of the heap (where objects are allocated). Use the -Xms and -Xmx options to set the minimum and maximum heap size.

Note that Java does not use the JAVA_OPTIONS environment variable, so setting it has no effect for Java itself. Some other programs may use this, though. You can specify the sizes on the command line in the java command, for example:

java -Xmx512M org.mypackage.MyProgram

to give the program a max. heap size of 512 MB.
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1551 times.
Similar Threads
Configure Jprofiler with tomcat.
Confiure jprofiler for tomcat in linux
starting JBoss from the Command Prompt Output
Urgent !
Urgent
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:46:00.