2 Replies Latest reply on Nov 8, 2006 5:34 AM by sylobsa

    My JBoss takes more than 6 minutes to stop ...

      Hi,

      I just installed a JBoss 3.2.6 on my new Linux Box.
      To test it, I just started jboss with :
      run.sh -c default
      JBoss starts in about 20s.
      Then I do a to stop JBoss. It takes more than 6 minutes.
      I get the following trace.
      Can anybody explain what happens and how to remedy to this too long shutdown time.

      Trace :
      --------
      18:49:59,333 INFO [TomcatDeployer] undeploy, ctxPath=/web-console, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/management/web-console.war/
      18:49:59,349 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/jmx-console.war/
      18:53:09,232 INFO [Http11Protocol] Suspension de Coyote HTTP/1.1 sur http-0.0.0.0-8080
      18:56:19,142 ERROR [CoyoteConnector] Protocol handler pause failed
      java.net.ConnectException: Connection timed out
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      at java.net.Socket.connect(Socket.java:516)
      at java.net.Socket.connect(Socket.java:466)
      at java.net.Socket.(Socket.java:366)
      at java.net.Socket.(Socket.java:208)
      at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:460)
      at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:272)
      at org.apache.jk.server.JkMain.pause(JkMain.java:657)
      at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:202)
      at org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1444)
      at org.jboss.web.tomcat.tc5.StandardService.stop(StandardService.java:583)
      at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
      at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.web.tomcat.tc5.Tomcat5.stopService(Tomcat5.java:398)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:319)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:223)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:884)
      at $Proxy18.stop(Unknown Source)
      at org.jboss.system.ServiceController.stop(ServiceController.java:496)
      at org.jboss.system.ServiceController.stop(ServiceController.java:487)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.stop(Unknown Source)
      at org.jboss.deployment.SARDeployer.stop(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:498)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:471)
      at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:358)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:903)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:878)
      at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:865)
      18:56:20,146 INFO [StandardService] Stopping service jboss.web
      18:56:20,147 INFO [StandardHost] Create Host deployer for direct deployment ( non-jmx )
      18:56:20,153 INFO [StandardHostDeployer] Removing web application at context path /jbossmq-httpil
      18:56:20,155 INFO [StandardHostDeployer] Removing web application at context path /invoker
      18:56:20,158 INFO [StandardHostDeployer] Removing web application at context path
      18:56:20,161 INFO [Http11Protocol] Arrêt de Coyote HTTP/1.1 sur http-0.0.0.0-8080
      18:56:20,165 INFO [TomcatDeployer] undeploy, ctxPath=/invoker, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/http-invoker.sar/invoker.war/
      18:56:20,168 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
      18:56:20,169 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      18:56:20,230 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
      18:56:21,070 INFO [HypersonicDatabase] Database standalone closed clean
      Shutting down
      Shutdown complete
      Halting VM

        • 1. Re: My JBoss takes more than 6 minutes to stop ...


          Hey, nobody can help me ?
          I don't know where to search ...

          A. ROY

          • 2. Re: My JBoss takes more than 6 minutes to stop ...

            Hi,

            I'm sorry to insist like that but I'm really don't know what's wrong.
            If it was only to stop JBoss I could use kill -9 to stop JBoss, but the problem appears also in my application which blocks.

            I think the problem is about the network configuration of my Linux box because after a long moment, I got the error message :

            Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 66.226.75.118; nested exception is:
            java.net.ConnectException: Connection timed out]
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at org.jboss.Shutdown.main(Shutdown.java:188)
            Caused by: java.rmi.ConnectException: Connection refused to host: 66.226.75.118; nested exception is:
            java.net.ConnectException: Connection timed out
            at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
            at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
            at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
            at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
            ... 3 more

            I don't know neither why host 66.226.75.118 tries to connect to my JBoss nor why there is a lookup outside my local network.

            nslookup gives :

            # nslookup 66.226.75.118
            Server: 192.168.1.253
            Address: 192.168.1.253#53

            Non-authoritative answer:
            118.75.226.66.in-addr.arpa name = 66-226-75-118.dedicated.abac.net.

            Authoritative answers can be found from:
            75.226.66.in-addr.arpa nameserver = ns1.abac.com.
            75.226.66.in-addr.arpa nameserver = ns2.abac.com.
            ns1.abac.com internet address = 216.55.128.4
            ns2.abac.com internet address = 216.55.144.4

            Is there anybody to help me ?

            Regards
            A. ROY