You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/05/24 13:05:50 UTC

[Bug 53288] New: Tomcat Windows service goes in "Starting" rather than in "Started" state on Windows 2008 (x64 bit) OS.

https://issues.apache.org/bugzilla/show_bug.cgi?id=53288

          Priority: P2
            Bug ID: 53288
          Assignee: dev@tomcat.apache.org
           Summary: Tomcat Windows service goes in "Starting" rather than
                    in "Started" state on Windows 2008 (x64 bit) OS.
          Severity: major
    Classification: Unclassified
          Reporter: anand.rashinkar@gmail.com
          Hardware: PC
            Status: NEW
           Version: 6.0.35
         Component: Catalina
           Product: Tomcat 6

OS : Windows 2008 R2 (64 bit)
JRE : 1.6.10 (32 bit)
Tomcat 6.0.14 (32 bit)
Also tested with Tomcat version 6.0.35 (32 bit)

Tomcat intermittently doesn't start as a windows service and goes to Starting
state instead.

Following are log excerpts during startup for this issue.


[2012-05-24 09:24:33] [debug] ( javajni.c:206 ) loading jvm 'C:\Program Files
(x86)\Tomcat_Install\IC72\Java\bin\server\jvm.dll'
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[0]
-Dcatalina.base=C:\Program Files (x86)\Tomcat_Install\IC72\tomcat
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[1]
-Dcatalina.home=C:\Program Files (x86)\Tomcat_Install\IC72\tomcat
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[2]
-Djava.endorsed.dirs=C:\Program Files (x86)\Avaya\IC72\tomcat\common\endorsed
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[3]
-Djava.io.tmpdir=C:\Program Files (x86)\Tomcat_Install\IC72\tomcat\temp
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[4]
-Xbootclasspath/a:C:\Program Files
(x86)\Tomcat_Install\IC72\tomcat\common\lib\mail.jar
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[5]
-Dlog4j.configuration=log4j.xml
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[6]
-Dlog4j.debug=true
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[7] -Dhome=C:\Program
Files (x86)\Tomcat_Install\IC72
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[8]
-Djava.security.auth.login.config=C:\Program Files
(x86)\Avaya\IC72\sdk\cup.security
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[9]
-Djava.class.path=C:\Program Files
(x86)\Tomcat_Install\IC72\tomcat\bin\bootstrap.jar;.
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[10] -Xms256m
[2012-05-24 09:24:33] [debug] ( javajni.c:660 ) Jvm Option[11] -Xmx768m
[2012-05-24 09:24:34] [debug] ( javajni.c:844 ) argv[0] = -config
[2012-05-24 09:24:34] [debug] ( javajni.c:844 ) argv[1] = C:\Program Files
(x86)\Tomcat_Install\IC72\tomcat\conf\server.sdk.xml
[2012-05-24 09:24:34] [debug] ( javajni.c:844 ) argv[2] = start

As one can see from above logs , tomcat accepts the application specific
arguments and is about to start Java (Worker thread) , but somehow it gets
stuck at this point after parsing the variable arguments to Tomcat process ,
and hence the tomcat windows service goes in Starting state.

But it sometimes runs cleanly and goes ahead and starts the worker thread.

Are there any specific settings needed for Tomcat 32 bit/JRE 32 bit and Win 2k8
64 combination ? 

I face this issue 6 out of 10 times. 

Installed tomcat as a service using the service.bat tomcat utility.

I face no issues on WIndows 2003 32 bit OS with same tomcat 6.0.14 (32 bit) and
JRE 1.6.10 (32 bit) 

After a clean startup , following trailing tomcat logs are produced (DEBUG
MODE).

[2012-05-24 09:32:41] [debug] ( javajni.c:844 ) argv[0] = -config
[2012-05-24 09:32:41] [debug] ( javajni.c:844 ) argv[1] = C:\Program Files
(x86)\Tomcat_Install\IC72\tomcat\conf\server.icsdk.xml
[2012-05-24 09:32:41] [debug] ( javajni.c:844 ) argv[2] = start
[2012-05-24 09:32:41] [debug] ( javajni.c:896 ) Java Worker thread started
org/apache/catalina/startup/Bootstrap:main
[2012-05-24 09:32:42] [debug] ( prunsrv.c:1067) Java started
org/apache/catalina/startup/Bootstrap
[2012-05-24 09:32:43] [info]  (          :0   ) Service started in 3744 ms.
[2012-05-24 09:32:43] [debug] ( prunsrv.c:1394) Waiting for worker to finish...

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53288] Tomcat Windows service goes in "Starting" rather than in "Started" state on Windows 2008 (x64 bit) OS.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53288

--- Comment #2 from Anand R <an...@gmail.com> ---
Thank you for that information.

Your clarification proved helpful to me.

Looks like Tomcat being installed in Program Files (x86) was causing the
issues. But not sure Tomcat as a service is able to run smoothly and sometimes
hangs with memory and CPU going up if installed under Program Files (x86).

I did following changes to resolve this issue .

Instead of the long form path name i.e. Program Files (x86) , I replaced all
the occurrence with Progra~2 and that has resolved my hang issues. Tomcat now
starts and stops smoothly.

Thanks once again for providing me with that crucial hint of folders with
spaces.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53288] Tomcat Windows service goes in "Starting" rather than in "Started" state on Windows 2008 (x64 bit) OS.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53288

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 OS|                            |All

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
1. Bugzilla is not a support forum. Configuration questions should be asked on
the users@ mailing list.

http://tomcat.apache.org/bugreport.html#Bugzilla_is_not_a_support_forum

Regarding your configuration, I do not see any apparent problems. The only one
is that installing into "Program Files" on Vista and later has known problems
with permissions. It is mentioned on the "Windows" page of the FAQ. You'd
better install it somewhere else and without whitespace in the folder name.

2. The service runner comes from the Apache Commons Daemon project. If there is
a bug in it, it is for that project to track and fix it.

http://tomcat.apache.org/bugreport.html#Third_party_components

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org