How can I increase tomcat memory


@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.


@call %exe% %1 %2 %3 %4

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.

Here is what the service.bat actually does

You can use bin/tomcat7w.exe to configure the service once it is installed

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"