You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dan Denton <dd...@remitpro.com> on 2009/08/10 22:57:17 UTC
Tomcat 6 shutdown hangs server when using JDK 6.0_15
Hello all.
I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this.
When I use JDK 5.0, this doesn't happen. The tomcat instance logs don't show anything useful. I've attempted to use jstack and pstack to get a trace of the process during shutdown, but the server dies before anything useful is logged. Has this happened to anyone else out there? Google yields lots of "tomcat hung" hits, but nothing about the OS hanging in response to a shutdown.
Any help on this is greatly appreciated!
Dan
Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by Konstantin Kolinko <kn...@gmail.com>.
2009/8/11 Dan Denton <dd...@remitpro.com>:
> (...)
> Sorry to be a pest, but I'd really appreciate any input from the community on this. I could always use JDK 5, but my developers would like to use 6 and I don't see a logical reason why such a major release would have so much negative impact on tomcat 6, or the host OS.
>
Re: "major release"
Note, that there are two generations of JDK 6: there were major
changes in 6u10.
Also IIRC, some minor changes were in 6u14.
You may want to try 6u7.
Also, beware of this issue (regression since 6u7, still open more than
8 months):
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6778921
Regarding 6u15 I remember the following thread on this list:
"Tomcat 6.0.20, JDK1.6.0_14 and security manager"
http://markmail.org/thread/igcdgzponj2g5m3n
I do not think that it is your case. Just one of changes that occurred in 6u14.
Thus:
1. Try with previous JDK releases
2. Try to switch SE Linux to warnings only mode. Look into the system
logs for any messages.
3. Check your network configuration and Tomcat connectors.
What connectors you are using? Whether there is IPv4 or IPv6, or both
on that machine. One of steps during shutdown is that Tomcat closes
open sockets, and there might be some system-specific issues.
4. Are these hangs occurring with a clean tomcat (without any web
applications), or only when some applications are deployed?
5.
> I've attempted to use jstack and pstack to get a trace of the process during shutdown,
> but the server dies before anything useful is logged.
Are the logs empty, or you cannot read them because they are lost?
If the latter, you may try redirecting them somewhere, e.g. over the net.
You may increase details level, so to see what shutdown steps are
successfully completed before the hang occurs.
6.
> This occurs when shutting down the canned instance, or any other webapp such as artifactory.
I do not understand this part of the above phrase: "any other webapp
such as artifactory".
What do you mean by shutting down an webapp? What is "canned"?
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dan Denton [mailto:ddenton@remitpro.com]
> Subject: RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
>
> I'm using the tomcat out-of-the-box tomcat instance in the archive from
> apache.org, and the version of java was installed using the jdk-6u15-
> linux-i586.bin binary file obtained from java.com. I have no trouble
> actually accessing the tomcat instance after startup. The server OS in
> question is RHEL 4.
Since there are many, many people using Tomcat 6 on a variety of systems with JDK 6u15, it's likely something unique with your RHEL 4 installation. Try JDK 6u16 and/or check on an RH list.
- 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by Dan Denton <dd...@remitpro.com>.
I have tested this on another server, and this time not a VM, which I think rules out issues with it being a virtual machine. The entire server hung immediately after issuing a shutdown to tomcat.
To summarize, this issue only seems to come about when using a tomcat 6 instance while running JDL 6.0_15 and does not occur when using a version 5 release of JDK. This occurs when shutting down the canned instance, or any other webapp such as artifactory.
I'm using the tomcat out-of-the-box tomcat instance in the archive from apache.org, and the version of java was installed using the jdk-6u15-linux-i586.bin binary file obtained from java.com. I have no trouble actually accessing the tomcat instance after startup. The server OS in question is RHEL 4.
Sorry to be a pest, but I'd really appreciate any input from the community on this. I could always use JDK 5, but my developers would like to use 6 and I don't see a logical reason why such a major release would have so much negative impact on tomcat 6, or the host OS.
Thanks again...
> Hello all.
>
> I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this.
>
> When I use JDK 5.0, this doesn't happen. The tomcat instance logs don't show anything useful. I've attempted to use jstack and pstack to get a trace of the process during shutdown, but the server dies before anything useful is logged. Has this happened to anyone else out there? Google yields lots of "tomcat hung" hits, but nothing about the OS hanging in response to a shutdown.
>
> Any help on this is greatly appreciated!
>
> Dan
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by Steve Ochani <oc...@ncc.edu>.
Send reply to: Tomcat Users List <us...@tomcat.apache.org>
From: Dan Denton <dd...@remitpro.com>
To: Tomcat Users List <us...@tomcat.apache.org>
Date sent: Tue, 11 Aug 2009 08:51:46 -0500
Subject: RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
> Thanks Filip for the reply, but as I said in my original post, this is
> running on a virtual machine, so hardware isn't a factor. In addition,
> this only started when I began using JDK 6 instead of 5, and only
> continues to happen if I use JDK 6. If I use 5, there's no problem.
>
> I will test this on another VM and a non-VM system to see if they
> behave the same way, but I would still appreciate more input if it's
> available.
>
Perhaps you should upgrade the vmware app and jdk 6 to update 16. I've run centos 5 under
vmware desktop 6.5 with jdk 6 (forgot exact version) and tomcat 6 (again don't remember
exact version) and it ran just fine.
Also there is still a slight possibility it could be a hardware issue such as bad RAM, try a ram
test program like memtest86.
-Steve O.
> Thanks in advance!
>
> -----Original Message-----
> From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com]
> Sent: Monday, August 10, 2009 4:22 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15
>
> if you entire server dies, then it sounds more hardware related, could
> be software triggered, but no, tomcat shouldn't kill your system :)
>
> Filip
>
> On 08/10/2009 02:57 PM, Dan Denton wrote:
> > Hello all.
> >
> > I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using
> > JDK 6.0_15. When I attempt to shutdown any tomcat instance, the
> > entire server (VM) hangs and has to be rebooted. Even out of the box
> > tomcat installations cause this.
> >
> > When I use JDK 5.0, this doesn't happen. The tomcat instance logs
> > don't show anything useful. I've attempted to use jstack and pstack
> > to get a trace of the process during shutdown, but the server dies
> > before anything useful is logged. Has this happened to anyone else
> > out there? Google yields lots of "tomcat hung" hits, but nothing
> > about the OS hanging in response to a shutdown.
> >
> > Any help on this is greatly appreciated!
> >
> > Dan
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For
> additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For
> additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by Dan Denton <dd...@remitpro.com>.
Thanks Filip for the reply, but as I said in my original post, this is running on a virtual machine, so hardware isn't a factor. In addition, this only started when I began using JDK 6 instead of 5, and only continues to happen if I use JDK 6. If I use 5, there's no problem.
I will test this on another VM and a non-VM system to see if they behave the same way, but I would still appreciate more input if it's available.
Thanks in advance!
-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com]
Sent: Monday, August 10, 2009 4:22 PM
To: Tomcat Users List
Subject: Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15
if you entire server dies, then it sounds more hardware related, could
be software triggered, but no, tomcat shouldn't kill your system :)
Filip
On 08/10/2009 02:57 PM, Dan Denton wrote:
> Hello all.
>
> I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this.
>
> When I use JDK 5.0, this doesn't happen. The tomcat instance logs don't show anything useful. I've attempted to use jstack and pstack to get a trace of the process during shutdown, but the server dies before anything useful is logged. Has this happened to anyone else out there? Google yields lots of "tomcat hung" hits, but nothing about the OS hanging in response to a shutdown.
>
> Any help on this is greatly appreciated!
>
> Dan
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
if you entire server dies, then it sounds more hardware related, could
be software triggered, but no, tomcat shouldn't kill your system :)
Filip
On 08/10/2009 02:57 PM, Dan Denton wrote:
> Hello all.
>
> I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this.
>
> When I use JDK 5.0, this doesn't happen. The tomcat instance logs don't show anything useful. I've attempted to use jstack and pstack to get a trace of the process during shutdown, but the server dies before anything useful is logged. Has this happened to anyone else out there? Google yields lots of "tomcat hung" hits, but nothing about the OS hanging in response to a shutdown.
>
> Any help on this is greatly appreciated!
>
> Dan
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by Dan Denton <dd...@remitpro.com>.
Upgrading the system from kernel release 2.6.9-5 (ancient, I know) to release 89 seems to have resolved the problem. As of now, no server hangs when tomcat is restarted.
Thanks for the suggestion Juha...
-----Original Message-----
From: Dan Denton [mailto:ddenton@remitpro.com]
Sent: Wednesday, August 12, 2009 3:43 PM
To: Tomcat Users List
Subject: RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Thanks for the reply Juha. I've gotten some suggestions from a previous responder, but I will also give this a shot on RHEL5.3 and see if I can reproduce it. I will report the result to the list.
Thanks!
-----Original Message-----
From: Juha Laiho [mailto:Juha.Laiho@iki.fi]
Sent: Wednesday, August 12, 2009 2:53 PM
To: Tomcat Users List
Subject: Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Dan Denton wrote:
> Hello all.
>
> I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this.
>
> When I use JDK 5.0, this doesn't happen. The tomcat instance logs don't show anything useful. I've attempted to use jstack and pstack to get a trace of the process during shutdown, but the server dies before anything useful is logged. Has this happened to anyone else out there? Google yields lots of "tomcat hung" hits, but nothing about the OS hanging in response to a shutdown.
Isn't RHEL4 quite old (depending on the update level, of course)?
Also, I saw your message telling that you've managed to do this same
on a non-VM RHEL4.
Especially, if your Tomcat (Java VM) runs as a non-root user id,
I would classify this as an OS issue: a process run as regular user
is able to hang the system. This is a definite no-no, and as such
you should take it up with Red Hat. And even if you did run the
Tomcat as root, this still should not happen at the OS level.
So, my recommendation would be to check that you're up-to-date with
updates published to RHEL4, and if this still occurs, take this up
with Red Hat.
--
..Juha
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by Dan Denton <dd...@remitpro.com>.
Thanks for the reply Juha. I've gotten some suggestions from a previous responder, but I will also give this a shot on RHEL5.3 and see if I can reproduce it. I will report the result to the list.
Thanks!
-----Original Message-----
From: Juha Laiho [mailto:Juha.Laiho@iki.fi]
Sent: Wednesday, August 12, 2009 2:53 PM
To: Tomcat Users List
Subject: Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Dan Denton wrote:
> Hello all.
>
> I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this.
>
> When I use JDK 5.0, this doesn't happen. The tomcat instance logs don't show anything useful. I've attempted to use jstack and pstack to get a trace of the process during shutdown, but the server dies before anything useful is logged. Has this happened to anyone else out there? Google yields lots of "tomcat hung" hits, but nothing about the OS hanging in response to a shutdown.
Isn't RHEL4 quite old (depending on the update level, of course)?
Also, I saw your message telling that you've managed to do this same
on a non-VM RHEL4.
Especially, if your Tomcat (Java VM) runs as a non-root user id,
I would classify this as an OS issue: a process run as regular user
is able to hang the system. This is a definite no-no, and as such
you should take it up with Red Hat. And even if you did run the
Tomcat as root, this still should not happen at the OS level.
So, my recommendation would be to check that you're up-to-date with
updates published to RHEL4, and if this still occurs, take this up
with Red Hat.
--
..Juha
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15
Posted by Juha Laiho <Ju...@iki.fi>.
Dan Denton wrote:
> Hello all.
>
> I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this.
>
> When I use JDK 5.0, this doesn't happen. The tomcat instance logs don't show anything useful. I've attempted to use jstack and pstack to get a trace of the process during shutdown, but the server dies before anything useful is logged. Has this happened to anyone else out there? Google yields lots of "tomcat hung" hits, but nothing about the OS hanging in response to a shutdown.
Isn't RHEL4 quite old (depending on the update level, of course)?
Also, I saw your message telling that you've managed to do this same
on a non-VM RHEL4.
Especially, if your Tomcat (Java VM) runs as a non-root user id,
I would classify this as an OS issue: a process run as regular user
is able to hang the system. This is a definite no-no, and as such
you should take it up with Red Hat. And even if you did run the
Tomcat as root, this still should not happen at the OS level.
So, my recommendation would be to check that you're up-to-date with
updates published to RHEL4, and if this still occurs, take this up
with Red Hat.
--
..Juha
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org