[javatechnicals] Best JVM Arguements for Tuning to WebLogic to Max

89 views
Skip to first unread message

srinivas

unread,
Apr 20, 2010, 6:11:35 AM4/20/10
to javatechnicals
(Please Note Please keep statements set ..... = in one line .)
set JVM_PARAMS1 = applicare.jvmparams.param1=-XX\:+UseParallelGC -XX
\:MaxGCPauseMillis\=3 -Xms512m -Xmx512m -XX:CompileThreshold=8000 -
XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none

(Please Note Please keep statements set ..... = in one line .)
set JVM_PARAMS2 = applicare.jvmparams.param2=-XX\:NewRatio\=3 -XX
\:SurvivorRatio\=6 -XX\:+UseParallelGC -Xms512m -Xmx512m -
XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -
Xverify:none

(Please Note Please keep statements set ..... = in one line .)
set JVM_PARAMS3 = applicare.jvmparams.param3=-XX\:NewRatio\=3 -XX
\:SurvivorRatio\=6 -XX\:+UseConcMarkSweepGC -Xms512m -Xmx512m -
XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -
Xverify:none

(Please Note Please keep statements set ..... = in one line .)
set JVM_PARAMS4 = applicare.jvmparams.param4=-Xmn256m -Xss128k -XX\:
+UseParallelGC -XX\:+UseParallelOldGC -Xms512m -Xmx512m -
XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -
Xverify:none

(Please Note Please keep statements set ..... = in one line .)

set JVM_PARAMS5 = applicare.jvmparams.param5=-Xmn256m -Xss128k -XX\:
+UseParallelGC -XX\:+UseParallelOldGC -XX\:+UseBiasedLocking -Xms512m -
Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -
XX:MaxPermSize=128m -Xverify:none

(Please Note Please keep statements set ..... = in one line .)
set JVM_PARAMS6 = applicare.jvmparams.param6=-Xmn256m -Xss128k -XX\:
+UseConcMarkSweepGC -XX\:+UseParNewGC -XX\:SurvivorRatio\=8 -XX
\:TargetSurvivorRatio\=90 -XX\:MaxTenuringThreshold\=3 -Xms512m -
Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -
XX:MaxPermSize=128m -Xverify:none

(Please Note Please keep statements set ..... = in one line .)
set JAVA_OPTIONS=%JAVA_OPTIONS% %JVM_PARAMS6% %JVM_PARAMS5%
%JVM_PARAMS4% %JVM_PARAMS3% %JVM_PARAMS2% %JVM_PARAMS1%

Regards,
Srinivas V


--
Subscription settings: http://groups.google.com/group/javatechnicals/subscribe?hl=en

sreehari ps

unread,
Apr 21, 2010, 11:55:38 AM4/21/10
to javatec...@googlegroups.com
great finding.. this is useful when your application in a serious performance issue.
As far as my experiance weblogic is using less memory as compare to websphere.
Srinivas can you write some thing about JRocket JVM ?
--
Sreehari

Srinivas V

unread,
Apr 22, 2010, 7:35:36 AM4/22/10
to javatec...@googlegroups.com
These settings are tested on JRocket JVM only. Since JRocket JVM has
algorithym for doing Garbage Collection. By Using these startup
arguements we are specyfying it what to do with that algorithym.

As far as i know JBoss is more memory consumption.
in JBoss usually people face OutofMemory which is Error not an Exception.

I hope you now difference between Error and Exception. Error are in recoverable.

in run.conf file as soon as comments ends add the below line

set JAVA_OPTS=-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled

in single line it should be

You will never face OutOfMemory problems. If more is needed the change
the first param with 512m.

To know more about java.lang.OutOfMemoryError: PermGen space

http://www.freshblurbs.com/explaining-java-lang-outofmemoryerror-permgen-space
Regards,
Srinivas

srinivas

unread,
Apr 22, 2010, 7:44:53 AM4/22/10
to javatechnicals
I did write proper command
Please ignore the first reply.
These setting we give to JBoss to resolve java.lang.OutOfMemoryError:
PermGen space

set JAVA_OPTS=-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:
+CMSClassUnloadingEnabled

Please note the OutOfMemory does not comes for small application i am
speaking about big enterprise applications having EJB and alot of java
objects.

Shree hari you can ask your friend Gamini the DMS application was
always throwing these Error.
They suggest to increase RAM. You cannot convince client usually to
put more RAM. He might say other applications are running.
Hence give it a try with these startup options.
Reply all
Reply to author
Forward
0 new messages