• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

heapSize and permSize in tomcat server 6.35

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 -XX:-PrintTenuringDistribution -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.


 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic