Blog Archive for January 12, 2011

MaxPermSize for Tomcat as a Windows Service

January 12, 2011

I wanted to set the MaxPermSize flag for a Tomcat instance, but one that was running as a windows service using service.bat.

At the bottom of service.bat is the code that adds parameters to the JVM call:

"%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions="-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed" --StartMode jvm --StopMode jvm --Startup auto
rem More extra …