| Author |
Tomcat 4.1 Service, and the JVM it uses
|
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
Have you ever wanted to switch the JVM that Tomcat 4.1.x uses when starting as a service? It's easy enough when you start Tomcat from the batch scripts, they use JAVA_HOME. But the JVM is chosen at installation time for the Tomcat service. So to change it use regedit. 1. STOP the tomcat service! 2. Using regedit, go to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Apache Tomcat 4.1\Parameters\ 3. Change the value of the JVM Library value examples: c:\jdk141_02\jre\bin\server\jvm.dll C:\Program Files\JavaSoft\JRE\1.3.1_07\bin\hotspot\jvm.dll
|
 |
Manish Hatwalne
Ranch Hand
Joined: Sep 22, 2001
Posts: 2559
|
|
Thanks Mike, That was useful! However, when I installed my Tomcat 4.0 earlier, the installation was as simple as extracting files from zip to a directory and changing few simple configuration. I loved the simplicity and transperancy that sort of installation gave me. Didn't know that now Tomcat also requires messing up the registry! - Manish
|
 |
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
Hi Manish, It doesn't *require* messing with the registry. This is only if you want to change the JVM under which tomcat is invoked, *After* you have installed it. For the batch scripts you use to start Tomcat (usually from the Start menu), it's as simple as changing your JAVA_HOME system variable. But for the Tomcat service, you need to use the registry. Again.. that's only if you want to *change* what JVM you're using.
|
 |
Rene Larsen
Ranch Hand
Joined: Oct 12, 2001
Posts: 1177
|
|
You'll only get an entry in the registry if tomcat is installed as a Service. Either by installing tomcat from the '.exe' version or after unzipping the '.zip' version installing the Service manully. Rene [ June 01, 2003: Message edited by: Rene Larsen ]
|
Regards, Rene Larsen
Dropbox Invite
|
 |
 |
|
|
subject: Tomcat 4.1 Service, and the JVM it uses
|
|
|