• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Tomcat 4.1 Service, and the JVM it uses

 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic