Migration Solutions for ColdFusion Applications to ASP.NET
      
New Atlanta Product Forums Profile | Search | Login | RSS
New Topic Reply   Previous Page  Page: 1   Next Page

Thread: Servlet Exec Hangs
Created on: 07/11/11 12:43 AM Replies: 15
mrfarhankhan


Joined: 07/11/11
Posts: 10
Servlet Exec Hangs
07/11/11 12:43 AM

Hi all,

I've installed servlet exec as an adapter to IIS. I have deployed my java code to servlet exec which is being accessed from flex through IIS. Everything works fine apart from the fact that servlet exec hangs when I try to reload the java code 3-4 times on servlet exec admin.

Please advise.

Thanks in advance
Farhan Khan
Link | Top | Bottom
paulbonfanti


Joined: 10/04/07
Posts: 451
RE: Servlet Exec Hangs
07/16/11 11:24 AM

When ServletExec hangs, try doing a java thread dump to determine exactly where in the code it is hanging. You can follow these steps to do this:

1. Open a command prompt window and "cd" to the bin directory of the JDK.
2. Enter the command "jps" to get a list of java processes and to identify the process number for ServletExec.
3. Enter the command "jstack <ServletExec process number>" to dump out the threads running in ServletExec.
Paul Bonfanti, New Atlanta
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/08/11 3:17 AM

Thanks for your reply. I have executed the commands as per your advice. Following is the output
C:\Program Files (x86)\Java\jdk1.6.0_06\bin>jstack 656

2011-08-08 12:14:39

Full thread dump Java HotSpot(TM) Client VM (14.2-b01 mixed mode):



"RTMP Proxy Connection" prio=6 tid=0x36101c00 nid=0x11f0 runnable [0x3e32f000]

java.lang.Thread.State: RUNNABLE

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(Unknown Source)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

- locked <0x0f09b2c0> (a java.io.BufferedInputStream)

at com.adobe.flexbuilder.monitors.network.httpproxy.RTMPConnection.readB

yte(RTMPConnection.java:153)

at com.adobe.flexbuilder.monitors.network.httpproxy.RTMPConnection.proce

ssRTMPRequest(RTMPConnection.java:244)

at com.adobe.flexbuilder.monitors.network.httpproxy.RTMPConnection.run(R

TMPConnection.java:89)



"DJAPI StreamListener" daemon prio=6 tid=0x36102c00 nid=0x59c runnable [0x3e12f0

00]

java.lang.Thread.State: RUNNABLE

at java.io.FileInputStream.readBytes(Native Method)

at java.io.FileInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

- locked <0x0f0a3d18> (a java.io.InputStreamReader)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.Reader.read(Unknown Source)

at flash.tools.debugger.concrete.StreamListener.run(StreamListener.java:

47)



"DJAPI StreamListener" daemon prio=6 tid=0x360fe000 nid=0x118c runnable [0x39f8f

000]

java.lang.Thread.State: RUNNABLE

at java.io.FileInputStream.readBytes(Native Method)

at java.io.FileInputStream.read(Unknown Source)

at java.io.BufferedInputStream.read1(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

- locked <0x0f0a7de8> (a java.io.BufferedInputStream)

at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

- locked <0x0f0a7e60> (a java.io.InputStreamReader)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.Reader.read(Unknown Source)

at flash.tools.debugger.concrete.StreamListener.run(StreamListener.java:

47)



"HTTP Intercept Server" prio=6 tid=0x360fc000 nid=0x1280 runnable [0x38b1f000]

java.lang.Thread.State: RUNNABLE

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(Unknown Source)

- locked <0x0f0a9f10> (a java.net.SocksSocketImpl)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at com.adobe.flexbuilder.monitors.network.httpproxy.InterceptServer$Inte

rceptServerThread.run(InterceptServer.java:118)



"RTMP Server Thread" prio=6 tid=0x36102000 nid=0x12d4 runnable [0x38a1f000]

java.lang.Thread.State: RUNNABLE

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(Unknown Source)

- locked <0x0f0aa038> (a java.net.SocksSocketImpl)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at com.adobe.flexbuilder.monitors.network.httpproxy.RTMPServer$1.run(RTM

PServer.java:100)

at java.lang.Thread.run(Unknown Source)



"Worker-13" prio=6 tid=0x360fe400 nid=0xf38 in Object.wait() [0x39e8f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0715c7c0> (a org.eclipse.core.internal.jobs.WorkerPool)

at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)

- locked <0x0715c7c0> (a org.eclipse.core.internal.jobs.WorkerPool)

at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:21

7)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:51)



"DJAPI StreamListener" daemon prio=6 tid=0x36102800 nid=0xd70 runnable [0x3a38f0

00]

java.lang.Thread.State: RUNNABLE

at java.io.FileInputStream.readBytes(Native Method)

at java.io.FileInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

- locked <0x0dc19d70> (a java.io.InputStreamReader)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.Reader.read(Unknown Source)

at flash.tools.debugger.concrete.StreamListener.run(StreamListener.java:

47)



"DJAPI StreamListener" daemon prio=6 tid=0x360fec00 nid=0x1380 runnable [0x38c1f

000]

java.lang.Thread.State: RUNNABLE

at java.io.FileInputStream.readBytes(Native Method)

at java.io.FileInputStream.read(Unknown Source)

at java.io.BufferedInputStream.read1(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

- locked <0x0dc157a8> (a java.io.BufferedInputStream)

at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

- locked <0x0dc17900> (a java.io.InputStreamReader)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.Reader.read(Unknown Source)

at flash.tools.debugger.concrete.StreamListener.run(StreamListener.java:

47)



"JavaScript indexing" daemon prio=4 tid=0x36103400 nid=0xf48 in Object.wait() [0

x3a70f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0cb5e478> (a org.eclipse.wst.jsdt.internal.core.search.i

ndexing.IndexManager)

at java.lang.Object.wait(Object.java:485)

at org.eclipse.wst.jsdt.internal.core.search.processing.JobManager.run(J

obManager.java:370)

- locked <0x0cb5e478> (a org.eclipse.wst.jsdt.internal.core.search.index

ing.IndexManager)

at java.lang.Thread.run(Unknown Source)



"AWT-Windows" daemon prio=6 tid=0x360fc800 nid=0x113c runnable [0x3a28f000]

java.lang.Thread.State: RUNNABLE

at sun.awt.windows.WToolkit.eventLoop(Native Method)

at sun.awt.windows.WToolkit.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)



"Java2D Disposer" daemon prio=10 tid=0x360ff000 nid=0xfdc in Object.wait() [0x3a

08f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0b8001d0> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(Unknown Source)

- locked <0x0b8001d0> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(Unknown Source)

at sun.java2d.Disposer.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)



"PHP Debugger Daemon Thread - Port: 9000" daemon prio=6 tid=0x36100800 nid=0x3f

c runnable [0x3c23f000]

java.lang.Thread.State: RUNNABLE

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(Unknown Source)

- locked <0x09848030> (a java.net.SocksSocketImpl)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at org.eclipse.php.internal.debug.core.daemon.AbstractDebuggerCommunicat

ionDaemon$ReceiverThread.run(AbstractDebuggerCommunicationDaemon.java:185)

at java.lang.Thread.run(Unknown Source)



"PHP Debugger Daemon Thread - Port: 10000" daemon prio=6 tid=0x36100400 nid=0x1

1e4 runnable [0x3c0ff000]

java.lang.Thread.State: RUNNABLE

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(Unknown Source)

- locked <0x09848210> (a java.net.SocksSocketImpl)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at org.eclipse.php.internal.debug.core.daemon.AbstractDebuggerCommunicat

ionDaemon$ReceiverThread.run(AbstractDebuggerCommunicationDaemon.java:185)

at java.lang.Thread.run(Unknown Source)



"DLTK indexing" daemon prio=4 tid=0x360ffc00 nid=0x2ec in Object.wait() [0x3be5f

000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0965d888> (a org.eclipse.dltk.core.search.indexing.Index

Manager)

at java.lang.Object.wait(Object.java:485)

at org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobMa

nager.java:426)

- locked <0x0965d888> (a org.eclipse.dltk.core.search.indexing.IndexMana

ger)

at java.lang.Thread.run(Unknown Source)



"Worker-2" prio=6 tid=0x026bd400 nid=0xd18 in Object.wait() [0x38d1f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0715c7c0> (a org.eclipse.core.internal.jobs.WorkerPool)

at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)

- locked <0x0715c7c0> (a org.eclipse.core.internal.jobs.WorkerPool)

at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:21

7)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:51)



"Java indexing" daemon prio=4 tid=0x360fd800 nid=0x86c in Object.wait() [0x3b2df

000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0945f2a8> (a org.eclipse.jdt.internal.core.search.indexi

ng.IndexManager)

at java.lang.Object.wait(Object.java:485)

at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobMan

ager.java:381)

- locked <0x0945f2a8> (a org.eclipse.jdt.internal.core.search.indexing.I

ndexManager)

at java.lang.Thread.run(Unknown Source)



"com.adobe.flexide.editorcore.editor.IdleTypingReconciler" daemon prio=2 tid=0x3

60fd400 nid=0xe6c in Object.wait() [0x3adaf000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x093aa958> (a org.eclipse.jface.text.reconciler.DirtyRegi

onQueue)

at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread

.run(AbstractReconciler.java:179)

- locked <0x093aa958> (a org.eclipse.jface.text.reconciler.DirtyRegionQu

eue)



"[ThreadPool Manager] - Idle Thread" daemon prio=6 tid=0x360fcc00 nid=0x330 in O

bject.wait() [0x3ac0f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0870f478> (a org.eclipse.equinox.internal.util.impl.tpt.

threadpool.Executor)

at java.lang.Object.wait(Object.java:485)

at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Ex

ecutor.java:106)

- locked <0x0870f478> (a org.eclipse.equinox.internal.util.impl.tpt.thre

adpool.Executor)



"Thread-4" prio=6 tid=0x026bf000 nid=0x10ac runnable [0x39d8f000]

java.lang.Thread.State: RUNNABLE

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(Unknown Source)

- locked <0x0794f260> (a java.net.SocksSocketImpl)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at com.adobe.flexbuilder.flexunitrunresults.data.ClientSocketsManager.li

sten(ClientSocketsManager.java:64)

at com.adobe.flexbuilder.flexunitrunresults.data.ClientSocketsManager.ru

n(ClientSocketsManager.java:113)

at java.lang.Thread.run(Unknown Source)



"Bundle File Closer" daemon prio=6 tid=0x026bec00 nid=0x568 in Object.wait() [0x

39c4f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x077ab160> (a org.eclipse.osgi.framework.eventmgr.EventMa

nager$EventThread)

at java.lang.Object.wait(Object.java:485)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextE

vent(EventManager.java:393)

- locked <0x077ab160> (a org.eclipse.osgi.framework.eventmgr.EventManage

r$EventThread)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even

tManager.java:333)



"Thread-1" prio=6 tid=0x026be000 nid=0x62c runnable [0x37f5f000]

java.lang.Thread.State: RUNNABLE

at com.adobe.flexide.nativelibs.BridgeTalk.WaitForMessages(Native Method

)

at com.adobe.flexide.nativelibs.BridgeTalkInterface$BridgeTalkMessageHan

dlerThread.run(BridgeTalkInterface.java:166)



"[Timer] - Main Queue Handler" daemon prio=6 tid=0x026bd800 nid=0x1258 in Object

.wait() [0x3665f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x072b65a0> (a java.lang.Object)

at org.eclipse.equinox.internal.util.impl.tpt.timer.TimerImpl.run(TimerI

mpl.java:141)

- locked <0x072b65a0> (a java.lang.Object)

at java.lang.Thread.run(Unknown Source)



"Provisioning Event Dispatcher" daemon prio=6 tid=0x026bcc00 nid=0xdbc in Object

.wait() [0x3645f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0715c700> (a org.eclipse.osgi.framework.eventmgr.EventMa

nager$EventThread)

at java.lang.Object.wait(Object.java:485)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextE

vent(EventManager.java:393)

- locked <0x0715c700> (a org.eclipse.osgi.framework.eventmgr.EventManage

r$EventThread)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even

tManager.java:333)



"Framework Event Dispatcher" daemon prio=6 tid=0x026bc000 nid=0xf30 in Object.wa

it() [0x35e5f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x06f80ca8> (a org.eclipse.osgi.framework.eventmgr.EventMa

nager$EventThread)

at java.lang.Object.wait(Object.java:485)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextE

vent(EventManager.java:393)

- locked <0x06f80ca8> (a org.eclipse.osgi.framework.eventmgr.EventManage

r$EventThread)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even

tManager.java:333)



"Start Level Event Dispatcher" daemon prio=6 tid=0x026bbc00 nid=0xedc in Object.

wait() [0x35d5f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x06f80d20> (a org.eclipse.osgi.framework.eventmgr.EventMa

nager$EventThread)

at java.lang.Object.wait(Object.java:485)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextE

vent(EventManager.java:393)

- locked <0x06f80d20> (a org.eclipse.osgi.framework.eventmgr.EventManage

r$EventThread)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even

tManager.java:333)



"State Data Manager" daemon prio=6 tid=0x026bb400 nid=0xf34 waiting on condition

[0x35c5f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

at java.lang.Thread.sleep(Native Method)

at org.eclipse.osgi.internal.baseadaptor.StateManager.run(StateManager.j

ava:306)

at java.lang.Thread.run(Unknown Source)



"Low Memory Detector" daemon prio=6 tid=0x026bb000 nid=0x138c runnable [0x000000

00]

java.lang.Thread.State: RUNNABLE



"CompilerThread0" daemon prio=10 tid=0x026cc800 nid=0x640 waiting on condition [

0x00000000]

java.lang.Thread.State: RUNNABLE



"Attach Listener" daemon prio=10 tid=0x026ba800 nid=0x1194 waiting on condition

[0x00000000]

java.lang.Thread.State: RUNNABLE



"Signal Dispatcher" daemon prio=10 tid=0x026ba400 nid=0x12dc runnable [0x0000000

0]

java.lang.Thread.State: RUNNABLE



"Finalizer" daemon prio=8 tid=0x0268cc00 nid=0x74 in Object.wait() [0x34dbf000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x06ed0370> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(Unknown Source)

- locked <0x06ed0370> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(Unknown Source)

at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)



"Reference Handler" daemon prio=10 tid=0x02688000 nid=0xf7c in Object.wait() [0x

34c7f000]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x06ed0090> (a java.lang.ref.Reference$Lock)

at java.lang.Object.wait(Object.java:485)

at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)

- locked <0x06ed0090> (a java.lang.ref.Reference$Lock)



"main" prio=6 tid=0x00479400 nid=0x13b8 runnable [0x0018f000]

java.lang.Thread.State: RUNNABLE

at org.eclipse.swt.internal.win32.OS.WaitMessage(Native Method)

at org.eclipse.swt.widgets.Display.sleep(Display.java:4281)

at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAd

visor.java:364)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2406)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja

va:332)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav

a:493)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBui

lderApplication.java:109)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl

e.java:194)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli

cation(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec

lipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja

va:368)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja

va:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

at org.eclipse.equinox.launcher.Main.run(Main.java:1311)



"VM Thread" prio=10 tid=0x02685400 nid=0x1058 runnable



"VM Periodic Task Thread" prio=10 tid=0x026d2800 nid=0xa88 waiting on condition





JNI global references: 1416





C:\Program Files (x86)\Java\jdk1.6.0_06\bin>C:\Program Files (x86)\Java\jdk1.6.0

_06\bin
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/08/11 3:19 AM

Waiting for your kind response.

Thanks in advance
Farhan Khan
Link | Top | Bottom
paulbonfanti


Joined: 10/04/07
Posts: 451
RE: Servlet Exec Hangs
08/08/11 9:40 AM

This wasn't the java process for ServletExec. Since ServletExec is running as a windows service, you'll need to use the Microsoft PsTools in order to be able to see it here. Here are the steps:

1. Download and install the Microsoft PsTools onto the machine where ServletExec is running. These can be downloaded from:

http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

2. Use the following command to get the process id for ServletExec:

psexec –s “C:\Program Files (x86)\Java\jdk1.6.0_06\bin\jps”

3. Create a java thread dump using the following command:

psexec –s “C:\Program Files (x86)\Java\jdk1.6.0_06\bin\jstack” <process id> > threaddump.txt
Paul Bonfanti, New Atlanta
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/09/11 2:37 AM

Thanks for helping. I really appreciate. Hope that we find a solution soon.

I've downloaded PsExec and I get the process id for ServletExec. When I try to get the thread dump, following happens.

F:\Test>;PsExec -s "C:\Program Files (x86)\Java\jdk1.6.0_06\bin\jstack.exe" 2192

> ThreadDump.txt



PsExec v1.98 - Execute processes remotely

Copyright (C) 2001-2010 Mark Russinovich

Sysinternals - www.sysinternals.com



Starting C:\Program Files (x86)\Java\jdk1.6.0_06\bin\jstack.exe on USER-PC...

2192: Unable to attach to 64-bit process

C:\Program Files (x86)\Java\jdk1.6.0_06\bin\jstack.exe exited on USER-PC with er

ror code 1.
Link | Top | Bottom
paulbonfanti


Joined: 10/04/07
Posts: 451
RE: Servlet Exec Hangs
08/10/11 2:09 PM

Try opening a command prompt window by clicking on the Start menu, right-clicking on Command Prompt and selecting "Run as administrator". Then try executing the jps and jstack commands using psexec to see if they now work. You should try it on a normally running ServletExec process to make sure it works before trying it on a hung ServletExec process.
Paul Bonfanti, New Atlanta
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/10/11 2:14 PM

Infact I did open the cmd as "Run as Administrator" ! What should I do now ?
Link | Top | Bottom
paulbonfanti


Joined: 10/04/07
Posts: 451
RE: Servlet Exec Hangs
08/10/11 2:31 PM

Did you try this while ServletExec wasn't hung?
Paul Bonfanti, New Atlanta
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/10/11 2:49 PM

No. I would do that and then get back to you.

Thanks a lot for staying with me
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/10/11 2:51 PM

"Unable to attach to 64-bit process"

Does this error have something to do with Servlet Exec hanging ? Isn't it because of a 32-bit app trying to connect with 64-bit process(Servlet Exec).
Link | Top | Bottom
paulbonfanti


Joined: 10/04/07
Posts: 451
RE: Servlet Exec Hangs
08/10/11 3:34 PM

Look at the StartServletExec.bat file to see which JVM it is using to run. Make sure you use the jps and jstack tools from the same JVM that ServletExec is using. This way you know both will be using the same bitness.

Note that I can tell you were using jps and jstack from a 32-bit JVM because the path starts with 'C:\Program Files (x86)'. If the path started with just 'C:\Program Files' without the (x86) then that would be a 64-bit JVM.
Paul Bonfanti, New Atlanta
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/11/11 1:52 AM

The jvm being used in StartServletExec.bat was a different one. Here it is:
C:\Program Files\Java\jdk1.6.0_24\bin

Now, I've run the jps and jstack commands when Servlet Exec is in running state and following is the output

2011-08-11 10:49:07

Full thread dump Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode):



"AcitveMQ Connection Worker: tcp://localhost/127.0.0.1:61616" daemon prio=6 tid=0x0000000005c95800 nid=0xb8 waiting on condition [0x000000000720f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c3879c18> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"Persistence Adaptor Task" daemon prio=10 tid=0x0000000005c94800 nid=0xf5c waiting on condition [0x000000000a27f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c35f2bc0> (a java.util.concurrent.SynchronousQueue$TransferStack)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:422)

   at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)

   at java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:857)

   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)



"pool-1-thread-4" prio=6 tid=0x0000000005c94000 nid=0x120c waiting on condition [0x000000000a17f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c39c4740> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"pool-1-thread-3" prio=6 tid=0x0000000006094000 nid=0xdd4 waiting on condition [0x000000000a07f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c39c4740> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"pool-1-thread-2" prio=6 tid=0x0000000006093800 nid=0x6d4 waiting on condition [0x0000000009f7f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c39c4740> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"pool-1-thread-1" prio=6 tid=0x0000000006092800 nid=0x12ac waiting on condition [0x0000000009e7f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c39c4740> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"NioSocketAcceptor-1" prio=6 tid=0x0000000006092000 nid=0x9a8 runnable [0x0000000009d7f000]

java.lang.Thread.State: RUNNABLE

   at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)

   at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:273)

   at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:255)

   at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:136)

   at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)

   - locked <0x00000000c3a7d9f0> (a sun.nio.ch.Util$2)

   - locked <0x00000000c3a7da00> (a java.util.Collections$UnmodifiableSet)

   - locked <0x00000000c3a7d978> (a sun.nio.ch.WindowsSelectorImpl)

   at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)

   at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:84)

   at org.apache.mina.transport.socket.nio.NioSocketAcceptor.select(NioSocketAcceptor.java:288)

   at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:402)

   at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)

   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)



"DefaultQuartzScheduler_QuartzSchedulerThread" prio=6 tid=0x0000000006091000 nid=0xe88 in Object.wait() [0x0000000009c7f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5d7b0> (a java.lang.Object)

   at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:297)

   - locked <0x00000000c3a5d7b0> (a java.lang.Object)



"DefaultQuartzScheduler_Worker-10" prio=6 tid=0x0000000006090800 nid=0x13a8 in Object.wait() [0x0000000009b7f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5f0a0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5f0a0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-9" prio=6 tid=0x0000000006090000 nid=0x630 in Object.wait() [0x0000000009a7f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5eeb0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5eeb0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-8" prio=6 tid=0x000000000608f000 nid=0xe38 in Object.wait() [0x000000000997f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5ecc0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5ecc0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-7" prio=6 tid=0x000000000608e800 nid=0x518 in Object.wait() [0x000000000987f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5ead0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5ead0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-6" prio=6 tid=0x000000000608d800 nid=0x1004 in Object.wait() [0x000000000977f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5e8c0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5e8c0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-5" prio=6 tid=0x000000000608d000 nid=0x11d0 in Object.wait() [0x000000000967f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5e6d0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5e6d0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-4" prio=6 tid=0x000000000608c000 nid=0xc0c in Object.wait() [0x000000000957f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5e4e0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5e4e0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-3" prio=6 tid=0x000000000608b800 nid=0xc18 in Object.wait() [0x000000000947f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5e2f0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5e2f0> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-2" prio=6 tid=0x000000000608a800 nid=0x1094 in Object.wait() [0x000000000937f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5e100> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5e100> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"DefaultQuartzScheduler_Worker-1" prio=6 tid=0x000000000608a000 nid=0x5e4 in Object.wait() [0x000000000927f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3a5df10> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)

   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:519)

   - locked <0x00000000c3a5df10> (a org.quartz.simpl.SimpleThreadPool$WorkerThread)



"pool-2-thread-1" prio=6 tid=0x0000000006089800 nid=0x9ac waiting on condition [0x000000000917f000]

java.lang.Thread.State: TIMED_WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c3a40ea8> (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)



"ActiveMQ Scheduler" daemon prio=6 tid=0x0000000006087000 nid=0x4bc in Object.wait() [0x0000000008e7f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3541840> (a java.util.TaskQueue)

   at java.util.TimerThread.mainLoop(Timer.java:509)

   - locked <0x00000000c3541840> (a java.util.TaskQueue)

   at java.util.TimerThread.run(Timer.java:462)



"ActiveMQ Data File Writer" daemon prio=10 tid=0x0000000006086800 nid=0x1274 in Object.wait() [0x000000000896f000]

java.lang.Thread.State: WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3545840> (a java.lang.Object)

   at java.lang.Object.wait(Object.java:485)

   at org.apache.activemq.kaha.impl.async.NIODataFileAppender.processQueue(NIODataFileAppender.java:80)

   - locked <0x00000000c3545840> (a java.lang.Object)

   at org.apache.activemq.kaha.impl.async.DataFileAppender$1.run(DataFileAppender.java:194)



"Thread-14" daemon prio=2 tid=0x0000000006085000 nid=0x584 waiting on condition [0x000000000779f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at ch.qos.logback.core.net.SocketAppenderBase$Connector.run(SocketAppenderBase.java:278)



"ServletExec: Session Invalidation Thread: host=default, app=flexjava" prio=2 tid=0x0000000006085800 nid=0x944 waiting on condition [0x000000000789f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at com.newatlanta.servletexec.SEHttpSessionContext.run(SEHttpSessionContext.java:457)

   at java.lang.Thread.run(Thread.java:662)



"ServletExec: HttpServerRequest" prio=6 tid=0x0000000005298000 nid=0x824 runnable [0x000000000700f000]

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 <0x00000000c3397830> (a java.io.BufferedInputStream)

   at com.newatlanta.servletexec.HttpServerRequest.getHeader(HttpServerRequest.java:552)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:451)



"ServletExec: HttpServerRequest" prio=6 tid=0x0000000005297800 nid=0x290 runnable [0x0000000006f0f000]

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 <0x00000000c331bbf0> (a java.io.BufferedInputStream)

   at com.newatlanta.servletexec.HttpServerRequest.getHeader(HttpServerRequest.java:552)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:451)



"ServletExec: HttpServerRequest" prio=6 tid=0x0000000005296800 nid=0x117c runnable [0x0000000006e0f000]

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 <0x00000000c3340240> (a java.io.BufferedInputStream)

   at com.newatlanta.servletexec.HttpServerRequest.getHeader(HttpServerRequest.java:552)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:451)



"ServletExec: HttpServerRequest" prio=6 tid=0x0000000005296000 nid=0x12b8 runnable [0x0000000006d0f000]

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 <0x00000000c334df60> (a java.io.BufferedInputStream)

   at com.newatlanta.servletexec.HttpServerRequest.getHeader(HttpServerRequest.java:552)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:451)



"ServletExec: HttpServerRequest" prio=6 tid=0x0000000005295000 nid=0x84c runnable [0x0000000006c0f000]

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 <0x00000000c33632d0> (a java.io.BufferedInputStream)

   at com.newatlanta.servletexec.HttpServerRequest.getHeader(HttpServerRequest.java:552)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:451)



"DestroyJavaVM" prio=6 tid=0x00000000005ac000 nid=0x968 waiting on condition [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"ServletExec: Main" prio=6 tid=0x0000000005e33800 nid=0xbe0 runnable [0x000000000690f000]

java.lang.Thread.State: RUNNABLE

   at java.net.PlainSocketImpl.socketAccept(Native Method)

   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)

   - locked <0x00000000c333a218> (a java.net.SocksSocketImpl)

   at java.net.ServerSocket.implAccept(ServerSocket.java:462)

   at java.net.ServerSocket.accept(ServerSocket.java:430)

   at ServletExec.run(ServletExec.java:137)

   at java.lang.Thread.run(Thread.java:662)



"ServletExec: Session Invalidation Thread: host=default, app=servletexec" prio=2 tid=0x0000000005d88800 nid=0xbd8 waiting on condition [0x0000000006b0f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at com.newatlanta.servletexec.SEHttpSessionContext.run(SEHttpSessionContext.java:457)

   at java.lang.Thread.run(Thread.java:662)



"ServletExec: Session Invalidation Thread: host=default, app=default-app" prio=2 tid=0x0000000005eb4000 nid=0xbc8 waiting on condition [0x0000000006a0f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at com.newatlanta.servletexec.SEHttpSessionContext.run(SEHttpSessionContext.java:457)

   at java.lang.Thread.run(Thread.java:662)



"Low Memory Detector" daemon prio=6 tid=0x0000000005145000 nid=0x998 runnable [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"CompilerThread1" daemon prio=10 tid=0x0000000005142000 nid=0x994 waiting on condition [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"CompilerThread0" daemon prio=10 tid=0x000000000513b000 nid=0x990 waiting on condition [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"Attach Listener" daemon prio=10 tid=0x000000000513a000 nid=0x98c waiting on condition [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"Finalizer" daemon prio=8 tid=0x000000000052a000 nid=0x988 in Object.wait() [0x00000000053df000]

java.lang.Thread.State: WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c33938b8> (a java.lang.ref.ReferenceQueue$Lock)

   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)

   - locked <0x00000000c33938b8> (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)



"Reference Handler" daemon prio=10 tid=0x0000000000529000 nid=0x984 in Object.wait() [0x00000000050df000]

java.lang.Thread.State: WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c331db20> (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 <0x00000000c331db20> (a java.lang.ref.Reference$Lock)



"VM Thread" prio=10 tid=0x0000000000523000 nid=0x980 runnable



"GC task thread#0 (ParallelGC)" prio=6 tid=0x0000000000478000 nid=0x970 runnable



"GC task thread#1 (ParallelGC)" prio=6 tid=0x0000000000479800 nid=0x974 runnable



"GC task thread#2 (ParallelGC)" prio=6 tid=0x000000000047b000 nid=0x978 runnable



"GC task thread#3 (ParallelGC)" prio=6 tid=0x000000000047d000 nid=0x97c runnable



"VM Periodic Task Thread" prio=10 tid=0x000000000515e000 nid=0x99c waiting on condition



JNI global references: 1677
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/11/11 2:08 AM

Now, reloading the FlexJava application 3 times, the ServletExec is again in hang state. I've again got the ThreadDump which is as follows:

2011-08-11 11:06:38

Full thread dump Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode):



"ServletExec: request: time=1313042520617, uri=/servletexec/admin/images/left_shim.gif" prio=6 tid=0x0000000006093800 nid=0x1034 waiting for monitor entry [0x0000000009b7f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at java.io.PrintStream.println(PrintStream.java:756)

   - waiting to lock <0x00000000c3280e20> (a java.io.PrintStream)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1279)

   - locked <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"ServletExec: request: time=1313042782532, uri=/servletexec/" prio=6 tid=0x0000000006094000 nid=0x538 waiting for monitor entry [0x0000000009a7f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1269)

   - waiting to lock <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"ServletExec: request: time=1313042782532, uri=/servletexec/admin/images/nav_bkgd.gif" prio=6 tid=0x000000000608d000 nid=0x16a4 waiting for monitor entry [0x000000000997f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1269)

   - waiting to lock <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"ServletExec: request: time=1313042782532, uri=/servletexec/admin/applications.jsp" prio=6 tid=0x000000000608a800 nid=0x16a8 waiting for monitor entry [0x000000000987f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1269)

   - waiting to lock <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"ServletExec: HttpServerRequest" prio=6 tid=0x0000000006092800 nid=0x16ac runnable [0x000000000957f000]

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 <0x00000000c432f868> (a java.io.BufferedInputStream)

   at com.newatlanta.servletexec.HttpServerRequest.getHeader(HttpServerRequest.java:552)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:451)



"Thread-40" daemon prio=2 tid=0x000000000608c000 nid=0x70c waiting on condition [0x000000000947f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at ch.qos.logback.core.net.SocketAppenderBase$Connector.run(SocketAppenderBase.java:278)



"ServletExec: Session Invalidation Thread: host=default, app=flexjava" prio=2 tid=0x0000000006090000 nid=0x13b0 waiting on condition [0x000000000977f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at com.newatlanta.servletexec.SEHttpSessionContext.run(SEHttpSessionContext.java:457)

   at java.lang.Thread.run(Thread.java:662)



"pool-19-thread-1" prio=6 tid=0x0000000005c96000 nid=0x120c waiting on condition [0x000000000b94f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c40b61c8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"ActiveMQ Scheduler" daemon prio=6 tid=0x0000000006085800 nid=0xe5c in Object.wait() [0x000000000967f000]

java.lang.Thread.State: WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   at java.lang.Object.wait(Object.java:485)

   at java.util.TimerThread.mainLoop(Timer.java:483)

   - locked <0x00000000c3f94c70> (a java.util.TaskQueue)

   at java.util.TimerThread.run(Timer.java:462)



"Thread-34" daemon prio=2 tid=0x0000000006089800 nid=0x310 waiting on condition [0x000000000917f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at ch.qos.logback.core.net.SocketAppenderBase$Connector.run(SocketAppenderBase.java:278)



"pool-14-thread-1" prio=6 tid=0x0000000005c97800 nid=0xc50 waiting on condition [0x000000000b34f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c3d55440> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"ActiveMQ Scheduler" daemon prio=6 tid=0x0000000006091000 nid=0x13dc waiting for monitor entry [0x000000000937f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at java.io.PrintStream.write(PrintStream.java:474)

   - waiting to lock <0x00000000c3280e20> (a java.io.PrintStream)

   at java.io.PrintStream.print(PrintStream.java:619)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:983)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)

   at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)



"ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" prio=6 tid=0x000000000608f000 nid=0xf88 waiting for monitor entry [0x000000000927f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at java.io.PrintStream.write(PrintStream.java:474)

   - waiting to lock <0x00000000c3280e20> (a java.io.PrintStream)

   at java.io.PrintStream.print(PrintStream.java:619)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:983)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)

   at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)



"Thread-28" daemon prio=2 tid=0x0000000006090800 nid=0xcb0 runnable [0x000000000755e000]

java.lang.Thread.State: RUNNABLE

   at java.util.LinkedHashMap.createEntry(LinkedHashMap.java:424)

   at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:406)

   at java.util.HashMap.put(HashMap.java:385)

   at sun.util.resources.OpenListResourceBundle.loadLookup(OpenListResourceBundle.java:118)

   - locked <0x00000000c4345280> (a sun.util.resources.TimeZoneNames)

   at sun.util.resources.OpenListResourceBundle.loadLookupTablesIfNecessary(OpenListResourceBundle.java:97)

   at sun.util.resources.OpenListResourceBundle.handleGetObject(OpenListResourceBundle.java:58)

   at sun.util.resources.TimeZoneNamesBundle.handleGetObject(TimeZoneNamesBundle.java:59)

   at java.util.ResourceBundle.getObject(ResourceBundle.java:368)

   at java.util.ResourceBundle.getObject(ResourceBundle.java:371)

   at java.util.ResourceBundle.getStringArray(ResourceBundle.java:351)

   at sun.util.TimeZoneNameUtility.retrieveDisplayNames(TimeZoneNameUtility.java:100)

   at sun.util.TimeZoneNameUtility.retrieveDisplayNames(TimeZoneNameUtility.java:81)

   at java.util.TimeZone.getDisplayNames(TimeZone.java:399)

   at java.util.TimeZone.getDisplayName(TimeZone.java:350)

   at java.util.Date.toString(Date.java:1025)

   at java.lang.String.valueOf(String.java:2826)

   at java.lang.StringBuilder.append(StringBuilder.java:115)

   at com.newatlanta.servletexec.SESystemOutputStream.write(SESystemOutputStream.java:131)

   at com.newatlanta.servletexec.SESystemOutputStream.write(SESystemOutputStream.java:163)

   at java.io.PrintStream.write(PrintStream.java:430)

   - locked <0x00000000c3280e20> (a java.io.PrintStream)

   at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)

   at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)

   at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:85)

   - locked <0x00000000c3280f58> (a java.io.OutputStreamWriter)

   at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:168)

   at java.io.PrintStream.write(PrintStream.java:477)

   - locked <0x00000000c3280e20> (a java.io.PrintStream)

   at java.io.PrintStream.print(PrintStream.java:619)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:983)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)

   at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)



"pool-9-thread-1" prio=6 tid=0x0000000005c94000 nid=0x618 waiting on condition [0x0000000009e7f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c3a1df70> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" prio=6 tid=0x000000000608a000 nid=0xd28 waiting for monitor entry [0x0000000008f7f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at java.io.PrintStream.write(PrintStream.java:474)

   - waiting to lock <0x00000000c3280e20> (a java.io.PrintStream)

   at java.io.PrintStream.print(PrintStream.java:619)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:983)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)

   at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)



"Thread-22" daemon prio=2 tid=0x000000000608d800 nid=0x428 waiting for monitor entry [0x000000000737f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at java.io.PrintStream.write(PrintStream.java:474)

   - waiting to lock <0x00000000c3280e20> (a java.io.PrintStream)

   at java.io.PrintStream.print(PrintStream.java:619)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:983)

   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)

   at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)



"AcitveMQ Connection Worker: tcp://localhost/127.0.0.1:61616" daemon prio=6 tid=0x0000000005c95800 nid=0xb8 waiting on condition [0x000000000720f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c351de88> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"Persistence Adaptor Task" daemon prio=10 tid=0x0000000005c94800 nid=0xf5c waiting on condition [0x000000000a27f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c339cfb0> (a java.util.concurrent.SynchronousQueue$TransferStack)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:422)

   at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)

   at java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:857)

   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)



"pool-4-thread-1" prio=6 tid=0x0000000006092000 nid=0x9a8 waiting on condition [0x0000000009d7f000]

java.lang.Thread.State: WAITING (parking)

   at sun.misc.Unsafe.park(Native Method)

   - parking to wait for <0x00000000c36459d8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)

   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)

   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)

   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)



"ActiveMQ Scheduler" daemon prio=6 tid=0x0000000006087000 nid=0x4bc in Object.wait() [0x0000000008e7f000]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   at java.util.TimerThread.mainLoop(Timer.java:509)

   - locked <0x00000000c3307680> (a java.util.TaskQueue)

   at java.util.TimerThread.run(Timer.java:462)



"ActiveMQ Data File Writer" daemon prio=10 tid=0x0000000006086800 nid=0x1274 in Object.wait() [0x000000000896f000]

java.lang.Thread.State: WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   - waiting on <0x00000000c3309bc0> (a java.lang.Object)

   at java.lang.Object.wait(Object.java:485)

   at org.apache.activemq.kaha.impl.async.NIODataFileAppender.processQueue(NIODataFileAppender.java:80)

   - locked <0x00000000c3309bc0> (a java.lang.Object)

   at org.apache.activemq.kaha.impl.async.DataFileAppender$1.run(DataFileAppender.java:194)



"Thread-14" daemon prio=2 tid=0x0000000006085000 nid=0x584 waiting on condition [0x000000000779f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at ch.qos.logback.core.net.SocketAppenderBase$Connector.run(SocketAppenderBase.java:278)



"ServletExec: request: time=1313042513410, uri=/servletexec/admin/images/icon_home.gif" prio=6 tid=0x0000000005298000 nid=0x824 waiting for monitor entry [0x000000000700f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1434)

   - waiting to lock <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"ServletExec: request: time=1313042512957, uri=/servletexec/admin/styleIE.css" prio=6 tid=0x0000000005297800 nid=0x290 waiting for monitor entry [0x0000000006f0f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1434)

   - waiting to lock <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"ServletExec: request: time=1313042513410, uri=/servletexec/admin/images/nav_rim.gif" prio=6 tid=0x0000000005296800 nid=0x117c waiting for monitor entry [0x0000000006e0f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1269)

   - waiting to lock <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"ServletExec: request: time=1313042513410, uri=/servletexec/admin/images/icon_logout.gif" prio=6 tid=0x0000000005296000 nid=0x12b8 waiting for monitor entry [0x0000000006d0f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1434)

   - waiting to lock <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"ServletExec: request: time=1313042513862, uri=/servletexec/admin/admin.js" prio=6 tid=0x0000000005295000 nid=0x84c waiting for monitor entry [0x0000000006c0f000]

java.lang.Thread.State: BLOCKED (on object monitor)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1269)

   - waiting to lock <0x00000000be2da440> (a java.lang.String)

   at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1178)

   at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

   at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

   at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:499)



"DestroyJavaVM" prio=6 tid=0x00000000005ac000 nid=0x968 waiting on condition [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"ServletExec: Main" prio=6 tid=0x0000000005e33800 nid=0xbe0 runnable [0x000000000690f000]

java.lang.Thread.State: RUNNABLE

   at java.net.PlainSocketImpl.socketAccept(Native Method)

   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)

   - locked <0x00000000c321add8> (a java.net.SocksSocketImpl)

   at java.net.ServerSocket.implAccept(ServerSocket.java:462)

   at java.net.ServerSocket.accept(ServerSocket.java:430)

   at ServletExec.run(ServletExec.java:137)

   at java.lang.Thread.run(Thread.java:662)



"ServletExec: Session Invalidation Thread: host=default, app=servletexec" prio=2 tid=0x0000000005d88800 nid=0xbd8 waiting on condition [0x0000000006b0f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at com.newatlanta.servletexec.SEHttpSessionContext.run(SEHttpSessionContext.java:457)

   at java.lang.Thread.run(Thread.java:662)



"ServletExec: Session Invalidation Thread: host=default, app=default-app" prio=2 tid=0x0000000005eb4000 nid=0xbc8 waiting on condition [0x0000000006a0f000]

java.lang.Thread.State: TIMED_WAITING (sleeping)

   at java.lang.Thread.sleep(Native Method)

   at com.newatlanta.servletexec.SEHttpSessionContext.run(SEHttpSessionContext.java:457)

   at java.lang.Thread.run(Thread.java:662)



"Low Memory Detector" daemon prio=6 tid=0x0000000005145000 nid=0x998 runnable [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"CompilerThread1" daemon prio=10 tid=0x0000000005142000 nid=0x994 waiting on condition [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"CompilerThread0" daemon prio=10 tid=0x000000000513b000 nid=0x990 waiting on condition [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"Attach Listener" daemon prio=10 tid=0x000000000513a000 nid=0x98c waiting on condition [0x0000000000000000]

java.lang.Thread.State: RUNNABLE



"Finalizer" daemon prio=8 tid=0x000000000052a000 nid=0x988 in Object.wait() [0x00000000053df000]

java.lang.Thread.State: WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)

   - locked <0x00000000c3266e80> (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)



"Reference Handler" daemon prio=10 tid=0x0000000000529000 nid=0x984 in Object.wait() [0x00000000050df000]

java.lang.Thread.State: WAITING (on object monitor)

   at java.lang.Object.wait(Native Method)

   at java.lang.Object.wait(Object.java:485)

   at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

   - locked <0x00000000c3201838> (a java.lang.ref.Reference$Lock)



"VM Thread" prio=10 tid=0x0000000000523000 nid=0x980 runnable



"GC task thread#0 (ParallelGC)" prio=6 tid=0x0000000000478000 nid=0x970 runnable



"GC task thread#1 (ParallelGC)" prio=6 tid=0x0000000000479800 nid=0x974 runnable



"GC task thread#2 (ParallelGC)" prio=6 tid=0x000000000047b000 nid=0x978 runnable



"GC task thread#3 (ParallelGC)" prio=6 tid=0x000000000047d000 nid=0x97c runnable



"VM Periodic Task Thread" prio=10 tid=0x000000000515e000 nid=0x99c waiting on condition



JNI global references: 1578


Waiting for your advise
Link | Top | Bottom
paulbonfanti


Joined: 10/04/07
Posts: 451
RE: Servlet Exec Hangs
08/12/11 4:11 PM

I can show you where the problem is but can't explain why it is happening or how to fix it. If you search your thread dump for "Thread-28" you'll find that this thread is inside of a java.io.PrintStream.write() method. For some reason this code has not returned causing all of the other threads that are trying to use java.io.PrintStream.write() to be BLOCKED. I can tell this because most of the BLOCKED threads state they are waiting to lock <0x00000000c3280e20> (a java.io.PrintStream). I don't understand why "Thread-28" hasn't returned from this call. It should just log something and return. The only things I can think of are:

1. Make sure you are using the latest JDK since this could be a JDK bug. You might even try JDK 7 which was recently released.

2. Email sales@newatlanta.com for a 30-day evaluation key. You are running ServletExec in developer mode which causes it to log more information. With a 30-day evaluation key, less would be logged which might limit the chances of a request hitting this BLOCKED state.

3. Use the ServletExec Java VM Settings admin page to configure it to use something other than com.newatlanta.servletexec.SESystemOutputStream for System output and error. If you leave these blank then the standard output and error will be used. Unfortunately you won't see any output in this case if you are running ServletExec as a service but it would be interesting to see if this fixes the problem.
Paul Bonfanti, New Atlanta
Link | Top | Bottom
mrfarhankhan


Joined: 07/11/11
Posts: 10
RE: Servlet Exec Hangs
08/19/11 1:56 AM

Thanks for the analysis. I have tried as follows:

1- I re-installed ServletExec with JDK 7 BUT no avail. The same problem still persists.

2- I have sent an email for the evaluation key. Still waiting for the response. I will let you know once I get to test with it.

3- I removed com.newatlanta.servletexec.SESystemOutputStream for System output and error in the ServletExec Java VM Settings admin page and kept these text boxes as blank. BUT this too, did not solve the problem.

:-( The problem still remains unresolved. Any help will be highly appreciated.

Thanks in advance
Farhan Khan !
Link | Top | Bottom

New Post
Please login to post a response.


company media information terms of use privacy policy contact us
This page was dynamically built on the BlueDragon CFML Engine