Kevin, Its in the startup of tomcat if you start it using the batch file instead of the service on windows (I'm not really a windows expert). The equivalent of that bat file on windows is the startup.sh file in UNIX. On this file there is a JAVA_OPT parameter that already has default settings for -Xms and -Xmx with the sizes as arguments. On that same line after or before these parameters insert the -Xincgc parameter with no arguments.
Stop Tomcat and then restart it by running the bat file. Before running the bat file however make sure all the paths for various other parameters such as JAVA_HOME, CATALINA_HOME etc are correct. Alter then if you have used anything other than default paths to install Tomcat. Beyond this my knowledge of setting and running Tomcat from the bat file on windows is limited as I more experience with running it on UNIX / Linux.. Cheers Joe ________________________________ From: "Begosh, Kevin" <[email protected]> To: [email protected] Sent: Tuesday, February 3, 2009 3:34:57 PM Subject: Re: Apache Tomcat Memory Pool ** How do you turn on Another useful tip would be to turn on incremental garbage collection. This is always good to free up unused portions of memory that haven't been used for a significant time interval. Kevin Begosh, RSP Tech Ops Enterprise Business Services 301-791-3540 Phone 410-422-3623 Cell [email protected] From:Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Joe DeSouza Sent: Tuesday, February 03, 2009 1:21 PM To: [email protected] Subject: Re: Apache Tomcat Memory Pool ** Patch 006 has definitely seen a marked decrease in the tomcat crashes we have experienced here and that too those were not becuase of OutOfMemory errors. If you view the contents of your current catalina.out file, I can bet that your crashes are due to OutOfMemory errors. Another useful tip would be to turn on incremental garbage collection. This is always good to free up unused portions of memory that haven't been used for a significant time interval. Joe ________________________________ From:"Begosh, Kevin" <[email protected]> To: [email protected] Sent: Tuesday, February 3, 2009 3:14:40 PM Subject: Re: Apache Tomcat Memory Pool ** Yes this does help and I am on 7.1 as well so this would help out a lot. We are having those exact issue with Tomcat crashing. Kevin Begosh, RSP Tech Ops Enterprise Business Services 301-791-3540 Phone 410-422-3623 Cell [email protected] From:Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Joe DeSouza Sent: Tuesday, February 03, 2009 1:13 PM To: [email protected] Subject: Re: Apache Tomcat Memory Pool ** Thsi is more of a Tomcat setting than a 'BMC recommended' setting. The golden rule for sizing tomcat memory is to not use more than 65% to 70% of the available free memory before the tomcat service is started. This gives the server at least 30% to 35% headroom. With that in mind it is nice to have a max memory of at least around the 3 GB mark where the usage of the servers is about average. Since you are using tomcat, if you are using Mid-Tier 7.1, I would recommend to hop on the patch 006. In my experience here the earlier patches had a memory issue, that addresses OutOfMemory errors that cause Tomcat to crash which was addressed in Patch 006. Also the performance is way better as I have noticed that it takes a relatively short time for the server to build its cache after an initial restart on patch 006 (at least 5 to 10 times faster) than it was on lets say Patch 003. I haven't tried patches in between 003 and 006 Hope this helps.. Cheers Joe ________________________________ From:"Begosh, Kevin" <[email protected]> To: [email protected] Sent: Tuesday, February 3, 2009 12:53:46 PM Subject: Apache Tomcat Memory Pool ** Does anyone know what the BMC recommended or what the best settings are for the Apache Tomcat memory pool for the Mid Tier. We are windows 2003 and we have two mid tiers that are load balanced. Kevin Begosh, RSP Tech Ops Enterprise Business Services 301-791-3540 Phone 410-422-3623 Cell [email protected] _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are"

