VERIFIED SOLUTION i

GC overhead limit exceeded when running tomcat as service

Product Feature: Operational Settings

Operating System: Windows

Configuration: Tomcat as a service
Tomcat as a service
  • Extract the tomcat zip file to a location on disk e.g C:\apache-tomcat-7
  • Ensure that you have java installed and JAVA_HOME is set as a system variable
  • Open a command prompt as an administrator
  • Change directory to the extraction location ‘cd c:\apache-tomcat-7’
  • Change to the ‘bin’ directory
  • Run the following command ‘service.bat install’. You should see output like this:
  • C:\apache-tomcat-7.0.67\bin>service.bat install
  • Installing the service 'Tomcat7' ...
  • Using CATALINA_HOME:    "C:\apache-tomcat-7.0.67"
  • Using CATALINA_BASE:    "C:\apache-tomcat-7.0.67"
  • Using JAVA_HOME:        "C:\Program Files\Java\jdk1.7.0_45"
  • Using JRE_HOME:         "C:\Program Files\Java\jdk1.7.0_45\jre"
  • Using JVM:              "C:\Program Files\Java\jdk1.7.0_45\jre\bin\server\jvm.dll"
  • The service 'Tomcat7' has been installed.
  • Then in the command prompt run the following file ‘tomcat7w.exe’
  • Change to the ‘Java’ tab and set the ‘initial memory pool’ and the ‘Maximum memory pool’.
  • Start the service from the windows services.
     
UPDATED:  March 23, 2017