shravanxm [
http://community.jboss.org/people/shravanxm] created the discussion
"Re: GARBAGE COLLECTOR PROBLEM"
To view the discussion, visit:
http://community.jboss.org/message/574117#574117
--------------------------------------------------------------
I think there is no use of using -XX:+UseConcMarkSweepGC with -XX:+UseParNewGC.
The first option for GC will clean only the tenured generation with low pauses on the app.
The second option will also do the same but it also cleans the eden space using parallel
threads.
The parallel threads parameter is set to 2. Can I know how many CPU's does the machine
have?.
Setting -Xss to 1024 is very high. Also no need to set it if the value you want is 1024,
since default is 1024 for stack sixe in linux 64 bit OS.
Try using 256k. This is ideal in most cases.
To get better performance, don't force JVM to resize the heap size. If you know how
much memory your application needs, set the same for min and max sizes. If the
application(s) will load the classes, use -XX:PermSize and -XX:MaxPermSize.
Also, try using -XX:NewRatio=3 instead of new size and max new size. This will allocate
1/4th of the memory for eden space.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/574117#574117]
Start a new discussion in Performance Tuning at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]