How can I increase tomcat memory
satya - Tuesday, January 03, 2012 4:34:40 PM
You can setup your service like this
@rem myservice7_64bit.bat
@set CATALINA_HOME=c:\satya\i\tomcat7
@set JAVA_HOME=c:\satya\jdk16
@set JAVA_OPTS=-Xms128m -Xmx512m
@set exe=%CATALINA_HOME%\bin\service.bat
@call %exe% run %1 %2 %3 %4
Notice the java executable settings.
satya - Tuesday, January 03, 2012 4:42:20 PM
Sorry, the last line shoudl read instead
@call %exe% %1 %2 %3 %4
satya - Tuesday, January 03, 2012 4:43:32 PM
The batch file options are
C:\satya\i\tomcat7\bin>myservice7_64bit install
Usage: service.bat install/remove [service_name] [/user username]
By default the service name is Tomcat 7.
satya - Tuesday, January 03, 2012 4:44:12 PM
Here is what the service.bat actually does
satya - Tuesday, January 03, 2012 4:44:35 PM
You can use bin/tomcat7w.exe to configure the service once it is installed
You can use bin/tomcat7w.exe to configure the service once it is installed
satya - Tuesday, January 03, 2012 4:49:34 PM
Make sure your java_home is correctly indicated in your pre-batch file
if not it will use the machine based default jvm and if you are not paying attention a wrong version of the java will be running.
You can check this by using tomcat7w.exe and seeing what JVM is used by going to the tab "java"