Posts

Showing posts from September, 2012

Make Tomcat Production Ready

I recently attending a training for Tomcat Performance and it was something really wonderful. The instructor, Ritesh Tyagi , gave insights to a lot of things that a developer should keep into mind while coding. At the very end of the session, he gave us things that one should look upon to make Tomcat ready for Production usage. Increase the Heap Size - This parameter you can decide based on how heavy is your application. You can configure this value in setenv.sh in the bin/ directory of your tomcat installation. Also, make sure these values are same so that the JVM does not have to spend time procesing for shrinking and growing of the Heap Size. Check more details here . export CATALINA_OPTS="-Xms512M -Xmx1024M" Use multiple Concurrent-Mark-Sweep-GC - If your application is very heavy and you occasionally face Out of Memory error, try setting the -XX:+UseConcMarkSweepGC option. This enables to run multiple (default 2) Concurrent Mark Sweep GC so that your