This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes heapSize and permSize in tomcat server 6.35 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "heapSize and permSize in tomcat server 6.35" Watch "heapSize and permSize in tomcat server 6.35" New topic
Author

heapSize and permSize in tomcat server 6.35

amar rajula
Greenhorn

Joined: Sep 01, 2007
Posts: 3

The following setting are in catalina.sh file in Linux box under production servers

There are 4 Nodes has the same configuration.

export JAVA_OPTS='-Xms3328m -Xmx3328m -XX:NewRatio=1 -XX:SurvivorRatio=4 -server -Xverify:none -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/apache-tomcat-6.0.35-1/logs -XX:+DisableExplicitGC -XX:+UsePerfData -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=3 -XX:+PrintGCDateStamps -XX:+UseCMSInitiatingOccupancyOnly -XX:+PrintGCDetails -XXrintTenuringDistribution -XX:+UseCompressedOops -XX:TargetSurvivorRatio=90 -XX:CMSInitiatingOccupancyFraction=75 -XX:PermSize=128m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=80m -Xloggc:/opt/prpc/prpclogs/app05-ms1/GC.log -Djava.awt.headless=true'


some times facing performace issues.
Would like to know the mentioned heap size and perm Size are correct? any advices are most WellCome.


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962
    
  19

The exact amounts depend entirely on the size of the applications and on what they do, so the only real way to tell is to measure.

It's true that the 128M default for PermGen space is borderline, making 256MB more suitable for a lot of apps, but the heap size requirements could be almost anything.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
jQuery in Action, 2nd edition
 
subject: heapSize and permSize in tomcat server 6.35
 
Similar Threads
Java Private Bytes Increase
Why (and how) is Tomcat logging http requests from our apache web server
GC taking lots of time
Java OS VM Increase
CMS collector tuning