[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Keep the sessions after a redeploy
|
Now I have another problem when I redeploy. Whenever I logout by
invalidating the session, the CPU is 100% busy.
Here is a thread dump
2010-12-16 00:07:54
Full thread dump Java HotSpot(TM) 64-Bit Server VM (17.1-b03 mixed mode):
"RMI TCP Connection(2)-192.168.0.1" daemon prio=10
tid=0x00007f9250005800 nid=0x277d runnable [0x00007f924befd000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
- locked <0x00007f9319905d08> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:517)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- <0x00007f93198dfba8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
"JMX server connection timeout 31" daemon prio=10
tid=0x00007f9244009800 nid=0x2778 in Object.wait()
[0x00007f924bffe000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f93210ca808> (a [I)
at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:150)
- locked <0x00007f93210ca808> (a [I)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"RMI Scheduler(0)" daemon prio=10 tid=0x00007f9244005800 nid=0x2777
waiting on condition [0x00007f92c012e000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f9320f1d608> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:609)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:602)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"RMI TCP Connection(1)-192.168.0.1" daemon prio=10
tid=0x00007f9250004000 nid=0x2776 runnable [0x00007f92c0330000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
- locked <0x00007f932111c438> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:517)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- <0x00007f93210c9fb8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
"RMI TCP Accept-0" daemon prio=10 tid=0x00007f924c01d800 nid=0x2774
runnable [0x00007f92c0431000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
- locked <0x00007f93210c99b8> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:34)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:369)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Attach Listener" daemon prio=10 tid=0x00007f929c001000 nid=0x2772
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Scanner-2" daemon prio=10 tid=0x00007f9278027000 nid=0x2771 in
Object.wait() [0x00007f9350a0c000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320f798d0> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320f798d0> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"HashSessionScavenger-1" daemon prio=10 tid=0x00007f9278025800
nid=0x2770 in Object.wait() [0x00007f935090b000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320f7ba88> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320f7ba88> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"qtp1701700764-24" prio=10 tid=0x00007f934c52c000 nid=0x275f waiting
on condition [0x00007f92c095c000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-23 - Acceptor0 SelectChannelConnector@0.0.0.0:8080"
prio=10 tid=0x00007f934c52a000 nid=0x275e runnable
[0x00007f92c0a5d000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:210)
at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:65)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
- locked <0x00007f9320feb690> (a sun.nio.ch.Util$1)
- locked <0x00007f9320feb678> (a java.util.Collections$UnmodifiableSet)
- locked <0x00007f9320fd11b8> (a sun.nio.ch.EPollSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:481)
at org.eclipse.jetty.io.nio.SelectorManager.doSelect(SelectorManager.java:219)
at org.eclipse.jetty.server.nio.SelectChannelConnector.accept(SelectChannelConnector.java:122)
at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:837)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-22" prio=10 tid=0x00007f934c528000 nid=0x275d waiting
on condition [0x00007f92c0b5e000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-21" prio=10 tid=0x00007f934c51a000 nid=0x275c waiting
on condition [0x00007f93501fa000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-20" prio=10 tid=0x00007f934c519000 nid=0x275b waiting
on condition [0x00007f93502fb000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-19" prio=10 tid=0x00007f934c518800 nid=0x275a waiting
on condition [0x00007f93503fc000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-18" prio=10 tid=0x00007f934c518000 nid=0x2759 runnable
[0x00007f93504fa000]
java.lang.Thread.State: RUNNABLE
at org.eclipse.jetty.util.MultiMap.containsKey(MultiMap.java:316)
at org.eclipse.jetty.server.session.HashSessionIdManager.invalidateAll(HashSessionIdManager.java:132)
at org.eclipse.jetty.server.session.AbstractSessionManager.removeSession(AbstractSessionManager.java:687)
at org.eclipse.jetty.server.session.AbstractSessionManager$Session.invalidate(AbstractSessionManager.java:1048)
at org.eclipse.jetty.server.session.HashSessionManager$HashedSession.invalidate(HashSessionManager.java:630)
at pt.ipb.ects.server.AuthServiceImpl.logout(AuthServiceImpl.java:40)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$logout$1(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
at pt.ipb.ects.server.guice.GwtMethodInterceptor.invoke(GwtMethodInterceptor.java:42)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:44)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.logout(<generated>)
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:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$processCall$4(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.processCall(<generated>)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$service$13(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.service(<generated>)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$service$14(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.service(<generated>)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:261)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:175)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:468)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-17" prio=10 tid=0x00007f934c4ab800 nid=0x2758 runnable
[0x00007f93505fe000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
- locked <0x00007f9320fd0358> (a java.lang.Object)
at org.eclipse.jetty.server.nio.SelectChannelConnector$2.run(SelectChannelConnector.java:287)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Scanner-1" daemon prio=10 tid=0x00007f934c522000 nid=0x2757 in
Object.wait() [0x00007f93506ff000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320fff850> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320fff850> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"com.google.inject.internal.util.$Finalizer" daemon prio=10
tid=0x00007f934c3ee000 nid=0x2756 in Object.wait()
[0x00007f935080a000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f932109fb60> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00007f932109fb60> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at com.google.inject.internal.util.$Finalizer.run(Finalizer.java:114)
Locked ownable synchronizers:
- None
"Low Memory Detector" daemon prio=10 tid=0x00007f934c0a3000 nid=0x2750
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"CompilerThread1" daemon prio=10 tid=0x00007f934c0a0800 nid=0x274f
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"CompilerThread0" daemon prio=10 tid=0x00007f934c09e000 nid=0x274e
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Command Reader" daemon prio=10 tid=0x00007f92a0001000 nid=0x274a
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Event Helper Thread" daemon prio=10 tid=0x00007f934c09b800
nid=0x2749 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Transport Listener: dt_socket" daemon prio=10
tid=0x00007f934c098000 nid=0x2748 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Signal Dispatcher" daemon prio=10 tid=0x00007f934c08c000 nid=0x2744
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Finalizer" daemon prio=10 tid=0x00007f934c06e000 nid=0x2742 in
Object.wait() [0x00007f935181b000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61c5bd0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00007f92c61c5bd0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
Locked ownable synchronizers:
- None
"Reference Handler" daemon prio=10 tid=0x00007f934c06c000 nid=0x2741
in Object.wait() [0x00007f935191c000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61c5b88> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x00007f92c61c5b88> (a java.lang.ref.Reference$Lock)
Locked ownable synchronizers:
- None
"main" prio=10 tid=0x00007f934c00a800 nid=0x2737 in Object.wait()
[0x00007f9353676000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61953d0> (a java.lang.Object)
at java.lang.Object.wait(Object.java:485)
at org.eclipse.jetty.util.thread.QueuedThreadPool.join(QueuedThreadPool.java:363)
- locked <0x00007f92c61953d0> (a java.lang.Object)
at org.eclipse.jetty.server.Server.join(Server.java:406)
at pt.ipb.ects.JettyServer.run(JettyServer.java:45)
at pt.ipb.ects.JettyServer.main(JettyServer.java:50)
Locked ownable synchronizers:
- None
"VM Thread" prio=10 tid=0x00007f934c067800 nid=0x2740 runnable
"GC task thread#0 (ParallelGC)" prio=10 tid=0x00007f934c01d800
nid=0x2739 runnable
"GC task thread#1 (ParallelGC)" prio=10 tid=0x00007f934c01f000
nid=0x273a runnable
"GC task thread#2 (ParallelGC)" prio=10 tid=0x00007f934c021000
nid=0x273d runnable
"GC task thread#3 (ParallelGC)" prio=10 tid=0x00007f934c023000
nid=0x273e runnable
"VM Periodic Task Thread" prio=10 tid=0x00007f934c0b5800 nid=0x2751
waiting on condition
JNI global references: 4799
Now I have another problem when I redeploy. Whenever I logout by
invalidating the session, the CPU is 100% busy.
Here is a thread dump
2010-12-16 00:07:54
Full thread dump Java HotSpot(TM) 64-Bit Server VM (17.1-b03 mixed mode):
"RMI TCP Connection(2)-192.168.0.1" daemon prio=10
tid=0x00007f9250005800 nid=0x277d runnable [0x00007f924befd000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
- locked <0x00007f9319905d08> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:517)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- <0x00007f93198dfba8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
"JMX server connection timeout 31" daemon prio=10
tid=0x00007f9244009800 nid=0x2778 in Object.wait()
[0x00007f924bffe000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f93210ca808> (a [I)
at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:150)
- locked <0x00007f93210ca808> (a [I)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"RMI Scheduler(0)" daemon prio=10 tid=0x00007f9244005800 nid=0x2777
waiting on condition [0x00007f92c012e000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f9320f1d608> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:609)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:602)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"RMI TCP Connection(1)-192.168.0.1" daemon prio=10
tid=0x00007f9250004000 nid=0x2776 runnable [0x00007f92c0330000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
- locked <0x00007f932111c438> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:517)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- <0x00007f93210c9fb8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
"RMI TCP Accept-0" daemon prio=10 tid=0x00007f924c01d800 nid=0x2774
runnable [0x00007f92c0431000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
- locked <0x00007f93210c99b8> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:34)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:369)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Attach Listener" daemon prio=10 tid=0x00007f929c001000 nid=0x2772
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Scanner-2" daemon prio=10 tid=0x00007f9278027000 nid=0x2771 in
Object.wait() [0x00007f9350a0c000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320f798d0> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320f798d0> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"HashSessionScavenger-1" daemon prio=10 tid=0x00007f9278025800
nid=0x2770 in Object.wait() [0x00007f935090b000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320f7ba88> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320f7ba88> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"qtp1701700764-24" prio=10 tid=0x00007f934c52c000 nid=0x275f waiting
on condition [0x00007f92c095c000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-23 - Acceptor0 SelectChannelConnector@0.0.0.0:8080"
prio=10 tid=0x00007f934c52a000 nid=0x275e runnable
[0x00007f92c0a5d000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:210)
at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:65)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
- locked <0x00007f9320feb690> (a sun.nio.ch.Util$1)
- locked <0x00007f9320feb678> (a java.util.Collections$UnmodifiableSet)
- locked <0x00007f9320fd11b8> (a sun.nio.ch.EPollSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:481)
at org.eclipse.jetty.io.nio.SelectorManager.doSelect(SelectorManager.java:219)
at org.eclipse.jetty.server.nio.SelectChannelConnector.accept(SelectChannelConnector.java:122)
at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:837)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-22" prio=10 tid=0x00007f934c528000 nid=0x275d waiting
on condition [0x00007f92c0b5e000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-21" prio=10 tid=0x00007f934c51a000 nid=0x275c waiting
on condition [0x00007f93501fa000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-20" prio=10 tid=0x00007f934c519000 nid=0x275b waiting
on condition [0x00007f93502fb000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-19" prio=10 tid=0x00007f934c518800 nid=0x275a waiting
on condition [0x00007f93503fc000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-18" prio=10 tid=0x00007f934c518000 nid=0x2759 runnable
[0x00007f93504fa000]
java.lang.Thread.State: RUNNABLE
at org.eclipse.jetty.util.MultiMap.containsKey(MultiMap.java:316)
at org.eclipse.jetty.server.session.HashSessionIdManager.invalidateAll(HashSessionIdManager.java:132)
at org.eclipse.jetty.server.session.AbstractSessionManager.removeSession(AbstractSessionManager.java:687)
at org.eclipse.jetty.server.session.AbstractSessionManager$Session.invalidate(AbstractSessionManager.java:1048)
at org.eclipse.jetty.server.session.HashSessionManager$HashedSession.invalidate(HashSessionManager.java:630)
at pt.ipb.ects.server.AuthServiceImpl.logout(AuthServiceImpl.java:40)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$logout$1(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
at pt.ipb.ects.server.guice.GwtMethodInterceptor.invoke(GwtMethodInterceptor.java:42)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:44)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.logout(<generated>)
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:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$processCall$4(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.processCall(<generated>)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$service$13(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.service(<generated>)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$service$14(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.service(<generated>)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:261)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:175)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:468)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-17" prio=10 tid=0x00007f934c4ab800 nid=0x2758 runnable
[0x00007f93505fe000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
- locked <0x00007f9320fd0358> (a java.lang.Object)
at org.eclipse.jetty.server.nio.SelectChannelConnector$2.run(SelectChannelConnector.java:287)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Scanner-1" daemon prio=10 tid=0x00007f934c522000 nid=0x2757 in
Object.wait() [0x00007f93506ff000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320fff850> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320fff850> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"com.google.inject.internal.util.$Finalizer" daemon prio=10
tid=0x00007f934c3ee000 nid=0x2756 in Object.wait()
[0x00007f935080a000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f932109fb60> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00007f932109fb60> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at com.google.inject.internal.util.$Finalizer.run(Finalizer.java:114)
Locked ownable synchronizers:
- None
"Low Memory Detector" daemon prio=10 tid=0x00007f934c0a3000 nid=0x2750
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"CompilerThread1" daemon prio=10 tid=0x00007f934c0a0800 nid=0x274f
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"CompilerThread0" daemon prio=10 tid=0x00007f934c09e000 nid=0x274e
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Command Reader" daemon prio=10 tid=0x00007f92a0001000 nid=0x274a
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Event Helper Thread" daemon prio=10 tid=0x00007f934c09b800
nid=0x2749 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Transport Listener: dt_socket" daemon prio=10
tid=0x00007f934c098000 nid=0x2748 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Signal Dispatcher" daemon prio=10 tid=0x00007f934c08c000 nid=0x2744
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Finalizer" daemon prio=10 tid=0x00007f934c06e000 nid=0x2742 in
Object.wait() [0x00007f935181b000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61c5bd0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00007f92c61c5bd0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
Locked ownable synchronizers:
- None
"Reference Handler" daemon prio=10 tid=0x00007f934c06c000 nid=0x2741
in Object.wait() [0x00007f935191c000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61c5b88> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x00007f92c61c5b88> (a java.lang.ref.Reference$Lock)
Locked ownable synchronizers:
- None
"main" prio=10 tid=0x00007f934c00a800 nid=0x2737 in Object.wait()
[0x00007f9353676000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61953d0> (a java.lang.Object)
at java.lang.Object.wait(Object.java:485)
at org.eclipse.jetty.util.thread.QueuedThreadPool.join(QueuedThreadPool.java:363)
- locked <0x00007f92c61953d0> (a java.lang.Object)
at org.eclipse.jetty.server.Server.join(Server.java:406)
at pt.ipb.ects.JettyServer.run(JettyServer.java:45)
at pt.ipb.ects.JettyServer.main(JettyServer.java:50)
Locked ownable synchronizers:
- None
"VM Thread" prio=10 tid=0x00007f934c067800 nid=0x2740 runnable
"GC task thread#0 (ParallelGC)" prio=10 tid=0x00007f934c01d800
nid=0x2739 runnable
"GC task thread#1 (ParallelGC)" prio=10 tid=0x00007f934c01f000
nid=0x273a runnable
"GC task thread#2 (ParallelGC)" prio=10 tid=0x00007f934c021000
nid=0x273d runnable
"GC task thread#3 (ParallelGC)" prio=10 tid=0x00007f934c023000
nid=0x273e runnable
"VM Periodic Task Thread" prio=10 tid=0x00007f934c0b5800 nid=0x2751
waiting on condition
JNI global references: 4799
Now I have another problem when I redeploy. Whenever I logout by
invalidating the session, the CPU is 100% busy.
Here is a thread dump
2010-12-16 00:07:54
Full thread dump Java HotSpot(TM) 64-Bit Server VM (17.1-b03 mixed mode):
"RMI TCP Connection(2)-192.168.0.1" daemon prio=10
tid=0x00007f9250005800 nid=0x277d runnable [0x00007f924befd000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
- locked <0x00007f9319905d08> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:517)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- <0x00007f93198dfba8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
"JMX server connection timeout 31" daemon prio=10
tid=0x00007f9244009800 nid=0x2778 in Object.wait()
[0x00007f924bffe000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f93210ca808> (a [I)
at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:150)
- locked <0x00007f93210ca808> (a [I)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"RMI Scheduler(0)" daemon prio=10 tid=0x00007f9244005800 nid=0x2777
waiting on condition [0x00007f92c012e000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f9320f1d608> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:609)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:602)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"RMI TCP Connection(1)-192.168.0.1" daemon prio=10
tid=0x00007f9250004000 nid=0x2776 runnable [0x00007f92c0330000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
- locked <0x00007f932111c438> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:517)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- <0x00007f93210c9fb8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
"RMI TCP Accept-0" daemon prio=10 tid=0x00007f924c01d800 nid=0x2774
runnable [0x00007f92c0431000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
- locked <0x00007f93210c99b8> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:34)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:369)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Attach Listener" daemon prio=10 tid=0x00007f929c001000 nid=0x2772
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Scanner-2" daemon prio=10 tid=0x00007f9278027000 nid=0x2771 in
Object.wait() [0x00007f9350a0c000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320f798d0> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320f798d0> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"HashSessionScavenger-1" daemon prio=10 tid=0x00007f9278025800
nid=0x2770 in Object.wait() [0x00007f935090b000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320f7ba88> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320f7ba88> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"qtp1701700764-24" prio=10 tid=0x00007f934c52c000 nid=0x275f waiting
on condition [0x00007f92c095c000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-23 - Acceptor0 SelectChannelConnector@0.0.0.0:8080"
prio=10 tid=0x00007f934c52a000 nid=0x275e runnable
[0x00007f92c0a5d000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:210)
at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:65)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
- locked <0x00007f9320feb690> (a sun.nio.ch.Util$1)
- locked <0x00007f9320feb678> (a java.util.Collections$UnmodifiableSet)
- locked <0x00007f9320fd11b8> (a sun.nio.ch.EPollSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:481)
at org.eclipse.jetty.io.nio.SelectorManager.doSelect(SelectorManager.java:219)
at org.eclipse.jetty.server.nio.SelectChannelConnector.accept(SelectChannelConnector.java:122)
at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:837)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-22" prio=10 tid=0x00007f934c528000 nid=0x275d waiting
on condition [0x00007f92c0b5e000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-21" prio=10 tid=0x00007f934c51a000 nid=0x275c waiting
on condition [0x00007f93501fa000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-20" prio=10 tid=0x00007f934c519000 nid=0x275b waiting
on condition [0x00007f93502fb000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-19" prio=10 tid=0x00007f934c518800 nid=0x275a waiting
on condition [0x00007f93503fc000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00007f93210829b0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:320)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:480)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-18" prio=10 tid=0x00007f934c518000 nid=0x2759 runnable
[0x00007f93504fa000]
java.lang.Thread.State: RUNNABLE
at org.eclipse.jetty.util.MultiMap.containsKey(MultiMap.java:316)
at org.eclipse.jetty.server.session.HashSessionIdManager.invalidateAll(HashSessionIdManager.java:132)
at org.eclipse.jetty.server.session.AbstractSessionManager.removeSession(AbstractSessionManager.java:687)
at org.eclipse.jetty.server.session.AbstractSessionManager$Session.invalidate(AbstractSessionManager.java:1048)
at org.eclipse.jetty.server.session.HashSessionManager$HashedSession.invalidate(HashSessionManager.java:630)
at pt.ipb.ects.server.AuthServiceImpl.logout(AuthServiceImpl.java:40)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$logout$1(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
at pt.ipb.ects.server.guice.GwtMethodInterceptor.invoke(GwtMethodInterceptor.java:42)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:44)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.logout(<generated>)
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:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$processCall$4(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.processCall(<generated>)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$service$13(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.service(<generated>)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.CGLIB$service$14(<generated>)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d$$FastClassByGuice$$27af16f.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.ProxyFactory$1.intercept(ProxyFactory.java:54)
at pt.ipb.ects.server.AuthServiceImpl$$EnhancerByGuice$$738b5b4d.service(<generated>)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:261)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:175)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:468)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"qtp1701700764-17" prio=10 tid=0x00007f934c4ab800 nid=0x2758 runnable
[0x00007f93505fe000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
- locked <0x00007f9320fd0358> (a java.lang.Object)
at org.eclipse.jetty.server.nio.SelectChannelConnector$2.run(SelectChannelConnector.java:287)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:662)
Locked ownable synchronizers:
- None
"Scanner-1" daemon prio=10 tid=0x00007f934c522000 nid=0x2757 in
Object.wait() [0x00007f93506ff000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f9320fff850> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:509)
- locked <0x00007f9320fff850> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)
Locked ownable synchronizers:
- None
"com.google.inject.internal.util.$Finalizer" daemon prio=10
tid=0x00007f934c3ee000 nid=0x2756 in Object.wait()
[0x00007f935080a000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f932109fb60> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00007f932109fb60> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at com.google.inject.internal.util.$Finalizer.run(Finalizer.java:114)
Locked ownable synchronizers:
- None
"Low Memory Detector" daemon prio=10 tid=0x00007f934c0a3000 nid=0x2750
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"CompilerThread1" daemon prio=10 tid=0x00007f934c0a0800 nid=0x274f
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"CompilerThread0" daemon prio=10 tid=0x00007f934c09e000 nid=0x274e
waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Command Reader" daemon prio=10 tid=0x00007f92a0001000 nid=0x274a
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Event Helper Thread" daemon prio=10 tid=0x00007f934c09b800
nid=0x2749 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"JDWP Transport Listener: dt_socket" daemon prio=10
tid=0x00007f934c098000 nid=0x2748 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Signal Dispatcher" daemon prio=10 tid=0x00007f934c08c000 nid=0x2744
runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"Finalizer" daemon prio=10 tid=0x00007f934c06e000 nid=0x2742 in
Object.wait() [0x00007f935181b000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61c5bd0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00007f92c61c5bd0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
Locked ownable synchronizers:
- None
"Reference Handler" daemon prio=10 tid=0x00007f934c06c000 nid=0x2741
in Object.wait() [0x00007f935191c000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61c5b88> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x00007f92c61c5b88> (a java.lang.ref.Reference$Lock)
Locked ownable synchronizers:
- None
"main" prio=10 tid=0x00007f934c00a800 nid=0x2737 in Object.wait()
[0x00007f9353676000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00007f92c61953d0> (a java.lang.Object)
at java.lang.Object.wait(Object.java:485)
at org.eclipse.jetty.util.thread.QueuedThreadPool.join(QueuedThreadPool.java:363)
- locked <0x00007f92c61953d0> (a java.lang.Object)
at org.eclipse.jetty.server.Server.join(Server.java:406)
at pt.ipb.ects.JettyServer.run(JettyServer.java:45)
at pt.ipb.ects.JettyServer.main(JettyServer.java:50)
Locked ownable synchronizers:
- None
"VM Thread" prio=10 tid=0x00007f934c067800 nid=0x2740 runnable
"GC task thread#0 (ParallelGC)" prio=10 tid=0x00007f934c01d800
nid=0x2739 runnable
"GC task thread#1 (ParallelGC)" prio=10 tid=0x00007f934c01f000
nid=0x273a runnable
"GC task thread#2 (ParallelGC)" prio=10 tid=0x00007f934c021000
nid=0x273d runnable
"GC task thread#3 (ParallelGC)" prio=10 tid=0x00007f934c023000
nid=0x273e runnable
"VM Periodic Task Thread" prio=10 tid=0x00007f934c0b5800 nid=0x2751
waiting on condition
JNI global references: 4799
On Wed, Dec 15, 2010 at 11:28 PM, Filipe Sousa <natros@xxxxxxxxx> wrote:
> After much digging I finally managed to solve the problem. For those
> interested, here's the solution:
> <Set name="lazyLoad">true</Set>
> Apparently, version 6 does not require this parameter
> On Wed, Dec 15, 2010 at 4:53 PM, Filipe Sousa <natros@xxxxxxxxx> wrote:
>>
>> Hi,
>> I'm using embedded jetty 7.2.2 in a project and I need to redeploy without
>> losing sessions.
>> I'm using the following contents on file WEB-INF/jetty-web.xml. I am also
>> using a realm for application security.
>>
>> <Set name="sessionHandler">
>> <New class="org.eclipse.jetty.server.session.SessionHandler">
>> <Arg>
>> <New class="org.eclipse.jetty.server.session.HashSessionManager">
>> <Set name="storeDirectory">/tmp/jetty</Set>
>> </New>
>> </Arg>
>> </New>
>> </Set>
>> The redeploy is triggered when I touch a xml file in /contexts folder:
>> <?xml version="1.0"?>
>> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN"
>> "http://www.eclipse.org/jetty/configure.dtd">
>> <Configure class="org.eclipse.jetty.webapp.WebAppContext">
>> <Set name="contextPath">/guia-ects</Set>
>> <Set name="resourceBase"><SystemProperty name="jetty.home" default="."
>> />/WebContent</Set>
>> </Configure>
>> After doing a redeploy, I got a NullPointerException when accessing a
>> protected URL. After tracing the error, I detected that the parameter user
>> is null
>> MappedLoginService.class:
>> public boolean validate(UserIdentity user)
>> {
>> if (_users.containsKey(user.getUserPrincipal().getName()))
>> return true;
>>
>> if (loadUser(user.getUserPrincipal().getName())!=null)
>> return true;
>>
>> return false;
>> }
>> This is the code for running jetty7:
>> public class JettyServer {
>> private final String PATH = System.getProperty("user.dir");
>> private Server server;
>> private final ContextHandlerCollection handlers = new
>> ContextHandlerCollection();
>> private DeploymentManager deploymentManager;
>> public JettyServer() {
>> System.setProperty("jetty.home", PATH);
>> System.setProperty("javax.net.ssl.trustStore", PATH +
>> "/etc/keystore.jks");
>> System.setProperty("javax.net.ssl.trustStorePassword", "password");
>> createServer();
>> createDeploymentManager();
>> createContextProvider();
>> }
>> private void createContextProvider() {
>> ContextProvider provider = new ContextProvider();
>> provider.setMonitoredDirName(PATH + "/contexts");
>> provider.setScanInterval(1);
>> deploymentManager.addAppProvider(provider);
>> }
>> private void createDeploymentManager() {
>> deploymentManager = new DeploymentManager();
>> deploymentManager.setContexts(handlers);
>> server.addBean(deploymentManager);
>> }
>> private void createServer() {
>> server = new Server(8080);
>> server.setStopAtShutdown(true);
>> server.setHandler(handlers);
>> }
>> private void run() throws Exception {
>> server.start();
>> server.join();
>> }
>> public static void main(String[] args) throws Exception {
>> JettyServer server = new JettyServer();
>> server.run();
>> }
>> }
>> I don't have this problem with Jetty 6.1.26. Is this a bug?
>> Thanks.
>> --
>> Filipe Sousa
>
>
>
> --
> Filipe Sousa
>
--
Filipe Sousa