I know this has been asked before, and I have tried to read the answers and implement their suggestions, but I have not succeeded yet. I have Tomcat 5.5 running as a Windows Service. I am running Windows XP SP2, with 2GB or real memory. The Tomcat service is started automatically at system start-up, not from a Start menu. I need to increase the heap size. I have tried setting CATALINA_OPTS in the system environment variables. It is now CATALINA_OPTS=-Xms64m -Xmx256m However, when I look at Tomcat status, I see Free memory: 17.16 MB Total memory: 63.56 MB Max memory: 63.56 MB.
When you install this way, these settings are kept in the Windows Registry. If you have the start menu items, the easiest way to change them is to go to Start -> Programs -> Apache Tomcat -> Tomcat Configuration -> Java (tab). There are fields for your initial and max heap sizes.
Hi if I wish to increase the maximum memory setting without using the Tomcat coniguration window(non windows environment) but modify the catalina.bat(or catalina.sh) do I just add a line CATALINA_OPTS='-Xmx512m' in catlina.bat(.sh) or startup.bat(startup.sh) ?
or is it JAVA_OPTS=CATALINA_OPTS='-Xmx512m'
BEA 8.1 Certified Administrator, IBM Certified Solution Developer For XML 1.1 and Related Technologies, SCJP, SCWCD, SCBCD, SCDJWS, SCJD, SCEA,
Oracle Certified Master Java EE 5 Enterprise Architect