Cannot get service.bat to work with Tomcat 5.5 on Windows
Hi, Installed Tomcat 5.5 and all worked fine with jdk 1.5.0_07. However need for installer purposes to be able to setup Tomcat as a Windows service by running a service.bat file. Have done the following: 1. Removed the original Tomcat service with 'tomcat5 //DS//Tomcat5'. The Tomcat service was removed. 2. Run the following (from Tomcat's bin directory) in a Windows batch file and Tomcat is installed as a Windows service: set args=%args% --DisplayName="Tomcat 5.5" set args=%args% --Install="C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe" set args=%args% --Jvm=auto set args=%args% --StartMode=jvm set args=%args% --StopMode=jvm set args=%args% --StartClass=org.apache.catalina.startup.Bootstrap set args=%args% --StartParams=start set args=%args% --StopClass=org.apache.catalina.startup.Bootstrap set args=%args% --StopParams=stop echo %args% tomcat5 //IS//Tomcat55 %args% 3. When Tomcat is now started as a Windows service from either the Windows Services window or by using 'net start tomcat55' the service will not start. No Tomcat logs are produced in the Tomcat logs directory. The Windows event log reports 'The Tomcat 5.5 service terminated with service-specific error 0 (0x0).' Any suggestions or does anyone have a service.bat file that works? Need to also enhance the above to specify when using an installer the jdk that Tomcat should use with usage of the --JavaHome parameter in the service.bat file. Thanks, Joseph. ___ You snooze, you lose. Get messages ASAP with AutoCheck in the all-new Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
Re: 100% CPU when Tomcat 5.5.20 is run on Windows Server 2003 on VM machine
Hi, Tomcat immediately goes to 100% CPU usage after starting on a VM machine. Have disabled AJP. The war file application starts, however the Windows tomcat process is at 100% CPU usage. The messages (they all are the typical messages) in the Tomcat log provide no hints on what the issue may be. Any suggestions would be appreciated. Thanks
Re: 100% CPU when Tomcat 5.5.20 is run on Windows Server 2003 on VM machine
JVM is 1.5.0.07 From: "Caldarale, Charles R" To: Tomcat Users List Sent: Sun, May 9, 2010 8:14:28 AM Subject: RE: 100% CPU when Tomcat 5.5.20 is run on Windows Server 2003 on VM machine > From: Joseph Freemaker [mailto:joseph_freema...@yahoo.com] > Subject: Re: 100% CPU when Tomcat 5.5.20 is run on Windows Server 2003 > on VM machine > > Tomcat immediately goes to 100% CPU usage after starting > on a VM machine. JVM version? > Any suggestions would be appreciated. Take some thread dumps and find out who's spinning on what. http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org