tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <Simon.Kitch...@orange.ch>
Subject RE: Tomcat3.1 & solaris2.7 - problems with shutdown.sh
Date Mon, 13 Nov 2000 12:31:39 GMT
I suspect it is more of a JVM-related issue.

Tomcat's failure to shutdown under some conditions
has been an intermittent discussion on this group
for several months now. It happens to me on HPUX,
but works fine on the solaris machine I have access to.

Have you tried running the shutdown command
several times? Tomcat always shuts down for me
on the third run of the shutdown script.

-- Tomcat Developers, any comments on this????

I even connected the jdb debugger to tomcat, and
did some thread dumps; my results are appended
to the end of this email.

Incidentally, I am surprised to see *any* threads
in running state, because there were *no* active
users at the time the shutdown was run (it's a
development install).

It's not a fatal problem, but it would be nice
if someone could look into it. I'll eventually
get around to it myself if everyone waits
long enough, but with my current schedule
that could be a while :-)

Cheers,

Simon

=============================
Output of jdb "threads" command with
Tomcat3.2b6, HP-UX11.0, JDK 1.2.2_04
=============================

Group system:
 1. (java.lang.Thread)0x3                         Signal dispatcher cond.
waiti
 2. (java.lang.ref.Reference$ReferenceHandler)0x4 Reference Handler cond.
waiti
 3. (java.lang.ref.Finalizer$FinalizerThread)0x5  Finalizer         cond.
waiti
Group main:
 4. (org.apache.tomcat.logging.LogDaemon)0x7 Thread-0        cond. waiting

 5. (java.lang.Thread)0x8                    StandardManager cond. waiting

 6. (bea.jolt.NwReader)0x9                   NwReader        running

 7. (bea.jolt.NwWriter)0xa                   NwWriter        cond. waiting

 8. (bea.jolt.NwIdler)0xb                    NwIdler         cond. waiting

 9. (java.lang.Thread)0xc                    Thread-2        cond. waiting

10. (java.lang.Thread)0xd                    Thread-3        cond. waiting

11. (java.lang.Thread)0xe                    Thread-4        cond. waiting

12. (java.lang.Thread)0xf                    Thread-5        cond. waiting

13. (java.lang.Thread)0x10                   Thread-6        cond. waiting

14. (java.lang.Thread)0x11                   Thread-7        cond. waiting

15. (java.lang.Thread)0x12                   Thread-8        cond. waiting

16. (java.lang.Thread)0x13                   Thread-9        cond. waiting

17. (java.lang.Thread)0x14                   Thread-10       cond. waiting

18. (java.lang.Thread)0x15                   Thread-11       running

19. (java.lang.Thread)0x16                   Thread-12       cond. waiting

20. (java.lang.Thread)0x17                   Thread-13       cond. waiting

21. (java.lang.Thread)0x18                   Thread-14       cond. waiting

22. (java.lang.Thread)0x19                   Thread-15       cond. waiting

23. (java.lang.Thread)0x1a                   Thread-16       cond. waiting

24. (java.lang.Thread)0x1b                   Thread-17       cond. waiting

25. (java.lang.Thread)0x1c                   Thread-18       cond. waiting

26. (java.lang.Thread)0x1d                   Thread-19       cond. waiting

27. (java.lang.Thread)0x1e                   Thread-20       cond. waiting

28. (java.lang.Thread)0x1f                   Thread-21       cond. waiting

29. (java.lang.Thread)0x20                   Thread-22       running

30. (java.lang.Thread)0x21                   Thread-23       cond. waiting

31. (java.lang.Thread)0x22                   Thread-24       cond. waiting



after first stop command

Group system:
 1. (java.lang.Thread)0x3                         Signal dispatcher cond.
waiti
 2. (java.lang.ref.Reference$ReferenceHandler)0x4 Reference Handler cond.
waiti
 3. (java.lang.ref.Finalizer$FinalizerThread)0x5  Finalizer         cond.
waiti
Group main:
 4. (org.apache.tomcat.logging.LogDaemon)0x7 Thread-0        cond. waiting

 5. (java.lang.Thread)0x8                    StandardManager cond. waiting

 6. (bea.jolt.NwReader)0x9                   NwReader        running

 7. (bea.jolt.NwWriter)0xa                   NwWriter        cond. waiting

 8. (bea.jolt.NwIdler)0xb                    NwIdler         cond. waiting

18. (java.lang.Thread)0x15                   Thread-11       running

20. (java.lang.Thread)0x17                   Thread-13       cond. waiting

21. (java.lang.Thread)0x18                   Thread-14       cond. waiting

22. (java.lang.Thread)0x19                   Thread-15       cond. waiting

23. (java.lang.Thread)0x1a                   Thread-16       cond. waiting

24. (java.lang.Thread)0x1b                   Thread-17       cond. waiting

25. (java.lang.Thread)0x1c                   Thread-18       cond. waiting

26. (java.lang.Thread)0x1d                   Thread-19       cond. waiting

27. (java.lang.Thread)0x1e                   Thread-20       cond. waiting

28. (java.lang.Thread)0x1f                   Thread-21       running

29. (java.lang.Thread)0x20                   Thread-22       running

30. (java.lang.Thread)0x21                   Thread-23       cond. waiting

31. (java.lang.Thread)0x22                   Thread-24       cond. waiting



after second stop command

Group system:
 1. (java.lang.Thread)0x3                         Signal dispatcher cond.
waiti
 2. (java.lang.ref.Reference$ReferenceHandler)0x4 Reference Handler cond.
waiti
 3. (java.lang.ref.Finalizer$FinalizerThread)0x5  Finalizer         cond.
waiti
Group main:
 4. (org.apache.tomcat.logging.LogDaemon)0x7 Thread-0        cond. waiting

 5. (java.lang.Thread)0x8                    StandardManager cond. waiting

18. (java.lang.Thread)0x15                   Thread-11       running

27. (java.lang.Thread)0x1e                   Thread-20       running

28. (java.lang.Thread)0x1f                   Thread-21       running

29. (java.lang.Thread)0x20                   Thread-22       running

31. (java.lang.Thread)0x22                   Thread-24       cond. waiting



After third stop command, program exited so debugger did too.

> -----Original Message-----
> From:	plen@orionsci.com [SMTP:plen@orionsci.com]
> Sent:	Sunday, November 12, 2000 11:27 PM
> To:	tomcat-user@jakarta.apache.org
> Subject:	Tomcat3.1 & solaris2.7 - problems with shutdown.sh
> 
> Hello,
> 
> I am running Tomcat 3.1 on a solaris 2.7 machine.  I sent an earlier
> message indicating that the shutdown.sh was not really stopping the
> listener (port 8080).  A couple responses indicated that it could have
> been that something was commented out in the server.xml file but I could
> not find any linkage.  I have since tried it on another solaris 2.7
> machine and it worked fine so I don't believe it is a 2.7 issue.  The
> machine where it works fine is listed as a:
> 
> SunOS 5.7 Generic_106541-08 Sun4w sparc SUNW, Ultra-Enterprise
> 
> The one that it does NOT work on is:
> 
> 
> SunOS 5.7 Generic_106541-12 Sun4m sparc SUNW, SPARCstation 20
> 
> I don't know if the issue is some patch or something with the actual
> OS.  Any thoughts?  Thanks again.
> 
> Peter Len

Mime
View raw message