EasyBeans

blocking shutdown on Tomcat 6

Details

  • Description:
    Hide
    Deployed the freshly downloaded EasyBeans war file in a near-stock Tomcat distribution (only modified a few logging configuration).
    Start the Tomcat with the war inside... some deployment messages are logged, no error message, all seems fine.
    Try to shutdown the Tomcat: some shutdown messages are logged from easybeans and tomcat, without apparent error, but...
    the shutdown doesn't end, and I have to manually kill the java server process.
    I repeated the procedure several times to ensure it wasn't a first-launch problem, and it is not.
    I first saw this on version 1.0.0, then tried the new 1.0.1 and it shows the same behaviour.

    I am considering EasyBeans as a candidate container for development and production of J2EE 5 applications, but this is cleary a show-stopper for production systems. I only rank it "critical" because it could be used for development anyway, if this issue is eventually solved.
    Show
    Deployed the freshly downloaded EasyBeans war file in a near-stock Tomcat distribution (only modified a few logging configuration). Start the Tomcat with the war inside... some deployment messages are logged, no error message, all seems fine. Try to shutdown the Tomcat: some shutdown messages are logged from easybeans and tomcat, without apparent error, but... the shutdown doesn't end, and I have to manually kill the java server process. I repeated the procedure several times to ensure it wasn't a first-launch problem, and it is not. I first saw this on version 1.0.0, then tried the new 1.0.1 and it shows the same behaviour. I am considering EasyBeans as a candidate container for development and production of J2EE 5 applications, but this is cleary a show-stopper for production systems. I only rank it "critical" because it could be used for development anyway, if this issue is eventually solved.
  • Environment:
    Tomcat 6.0.16, Java SE 1.6.0.6
    System: Debian GNU/Linux "etch", kernel 2.6.24.6 on 32-bits x86 dual-core
  1. tomcat-ezb-shutdown-bug.log
    (3 kB)
    John. H. Smith
    19/Jul/08 2:03 PM
  2. tomcat-ezb-shutdown-threaddump.log
    (16 kB)
    John. H. Smith
    19/Jul/08 4:52 PM

Activity

Hide
Florent BENOIT added a comment - 18/Jul/08 2:03 PM
  Hi, Could you provide a dump of the threads that are still running in your configuration ?

Maybe this is linked to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4457683
but you've a JDK 6
Show
Florent BENOIT added a comment - 18/Jul/08 2:03 PM   Hi, Could you provide a dump of the threads that are still running in your configuration ? Maybe this is linked to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4457683 but you've a JDK 6
Hide
John. H. Smith added a comment - 19/Jul/08 2:02 PM
I can't tell about the maybe-linked bug... however I've only got _JRE_ 6 not JDK, but I think I'm allowed to do this with tomcat 5 and later.

I don't know what the "thread dump" thing means... Can you tell how to get it ?

I've checked the OS process list and listening ports:
- some threads remain,
- and there's a listening TCP port (but a different one at each launch).
(Attaching the log file)
Show
John. H. Smith added a comment - 19/Jul/08 2:02 PM I can't tell about the maybe-linked bug... however I've only got _JRE_ 6 not JDK, but I think I'm allowed to do this with tomcat 5 and later. I don't know what the "thread dump" thing means... Can you tell how to get it ? I've checked the OS process list and listening ports: - some threads remain, - and there's a listening TCP port (but a different one at each launch). (Attaching the log file)
Hide
John. H. Smith added a comment - 19/Jul/08 2:03 PM
This is what I get after a simple startup-shutdown cycle.
Show
John. H. Smith added a comment - 19/Jul/08 2:03 PM This is what I get after a simple startup-shutdown cycle.
John. H. Smith made changes - 19/Jul/08 2:03 PM
Field Original Value New Value
Attachment tomcat-ezb-shutdown-bug.log [ 10024 ]
Hide
Florent BENOIT added a comment - 19/Jul/08 3:49 PM
   Hi,

In order to get a thread dump, send a "kill -3" command on the process id of the java process.
This will show you a full dump of the JVM

Florent
Show
Florent BENOIT added a comment - 19/Jul/08 3:49 PM    Hi, In order to get a thread dump, send a "kill -3" command on the process id of the java process. This will show you a full dump of the JVM Florent
Hide
John. H. Smith added a comment - 19/Jul/08 4:52 PM
Ok here it is.
Show
John. H. Smith added a comment - 19/Jul/08 4:52 PM Ok here it is.
John. H. Smith made changes - 19/Jul/08 4:52 PM
Attachment tomcat-ezb-shutdown-threaddump.log [ 10025 ]
Hide
Florent BENOIT added a comment - 23/Jul/08 9:28 AM
I'm now able to reproduce the problem. I will keep you informed
Show
Florent BENOIT added a comment - 23/Jul/08 9:28 AM I'm now able to reproduce the problem. I will keep you informed
Repository Revision Date User Message
EasyBeans #3717 Wed Jul 23 19:37:49 CEST 2008 benoitf Perform Unexport at stop
EZB-286
Files Changed
MODIFY /branches/easybeans_1_0_x/modules/components/component-jotm/src/main/java/org/ow2/easybeans/component/jotm/JOTMComponent.java
Repository Revision Date User Message
EasyBeans #3720 Wed Jul 23 19:39:46 CEST 2008 benoitf Use a carol version with fix for releasing RMI threads
EZB-286
Files Changed
MODIFY /branches/easybeans_1_0_x/pom.xml
Repository Revision Date User Message
EasyBeans #3725 Thu Jul 24 13:53:29 CEST 2008 benoitf Unexport RPC invoker
EZB-286
Files Changed
MODIFY /branches/easybeans_1_0_x/modules/core/src/main/java/org/ow2/easybeans/server/Embedded.java
Repository Revision Date User Message
EasyBeans #3726 Thu Jul 24 13:58:32 CEST 2008 benoitf Unbind JNDI names at stop
EZB-286
Files Changed
MODIFY /branches/easybeans_1_0_x/modules/components/component-joram/src/main/java/org/ow2/easybeans/component/joram/JoramComponent.java
Repository Revision Date User Message
EasyBeans #3728 Thu Jul 24 15:20:10 CEST 2008 benoitf Use daemon threads
EZB-286
Files Changed
MODIFY /branches/easybeans_1_0_x/modules/jca-workmanager/src/main/java/org/ow2/easybeans/jca/workmanager/ResourceWorkManager.java
Hide
Florent BENOIT added a comment - 24/Jul/08 5:49 PM
Show
Florent BENOIT added a comment - 24/Jul/08 5:49 PM Fixed, you can do a try on snapshot from the stable branch : http://maven.objectweb.org/maven2-snapshot/org/ow2/easybeans/ow2-easybeans-tomcat/1.0.2-SNAPSHOT/
Florent BENOIT made changes - 24/Jul/08 5:49 PM
Fix Version/s EasyBeans 1.0.2 [ 10076 ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s EasyBeans 1.1.0 M1 [ 10071 ]
Resolution Fixed [ 1 ]
Repository Revision Date User Message
EasyBeans #3733 Thu Jul 24 17:57:28 CEST 2008 benoitf Undo in stop() methods what is done in the start() methods.
Also, display a message when stopping carol for remaining objects in JNDI
EZB-286
Files Changed
MODIFY /trunk/easybeans/modules/ee/web-app/src/main/java/org/ow2/easybeans/server/war/EasyBeansContextListener.java
MODIFY /trunk/easybeans/modules/jca-workmanager/src/main/java/org/ow2/easybeans/jca/workmanager/ResourceWorkManager.java
MODIFY /trunk/easybeans/modules/components/component-joram/src/main/java/org/ow2/easybeans/component/joram/JoramComponent.java
MODIFY /trunk/easybeans/modules/components/component-jotm/src/main/java/org/ow2/easybeans/component/jotm/JOTMComponent.java
MODIFY /trunk/easybeans/modules/core/src/main/java/org/ow2/easybeans/server/Embedded.java
MODIFY /trunk/easybeans/modules/components/component-carol/src/main/java/org/ow2/easybeans/component/carol/CarolComponent.java
Hide
John. H. Smith added a comment - 24/Jul/08 6:53 PM
Yes, the snapshot works fine now. Super!
Now I've got to find configuration documentation...
Show
John. H. Smith added a comment - 24/Jul/08 6:53 PM Yes, the snapshot works fine now. Super! Now I've got to find configuration documentation...

People

Dates

  • Created:
    18/Jul/08 1:34 PM
    Updated:
    24/Jul/08 6:53 PM
    Resolved:
    24/Jul/08 5:49 PM