mrc Documentation
michaels, ross & cole, ltd.
http://www.mrc-productivity.com/

 

 

How to use mrc packaged Tomcat as a Windows Service

 

  1. Go to Control Panel, Add/Remove programs and uninstall Java 1.4.2 run-time environment
  2. In Control Panel, click system icon, go to Advanced tab and click Environment Variables,

     under system variables,  append the Path statement with ";c:\j2sdk1.4.2\bin"

  1. Re-boot the PC
  2. Copy file tools.jar from folder C:\j2sdk1.4.2\lib to folder C:\m-power\tomcat\common\lib
  3. Go to a DOS prompt (Start button, run and type cmd press <ENTER>)
  4. cd \
  5. cd \m-power\tomcat\bin
  6. Type service.bat install press <ENTER>
  7. Type tomcat5w press <ENTER>
  8. Make Java tab look like:

Be sure you add the last 4 lines from the Java Options text box. Including these lines will allow your Tomcat instance to be much more stable.

The text has been copied below for your convenience (The information below specifies Tomcat to use 512mb).

  

-Xmx512m

-Xms512m

-XX:PermSize=256m

-XX:MaxPermSize=256m

 

 

 

Since you have specified Tomcat’s memory allotment above, it is not necessary to specify the Initial and Maximum memory pool memory allotment. You also do not need to specify the Thread stack size.

 

  1.   Click OK
  2.   Exit
  3.   Start service called Apache Tomcat.

 

Consider configuring Tomcat (production only) to not reload, thus giving users a more stable browsing experience. Click here to learn how.