A thread dump is a snap shot of the JVM at a particular moment in time.
I find it useful to take consective thread dumps about 5 seconds apart.
That gives a moving picture of the JVM.  You may want to vary the number
of dumps or the time apart.

The thing to look for is how long are the threads waiting for a lock.
Lots of time I found things to be transient.  (ie the first dump showing many
threads waiting for lock(s) but in the dump 5 seconds later they are done).

You can use the thread id to following what is happening to a thread over
multiple thread dumps.

Bill

On 10/13/06, sksamuel <[EMAIL PROTECTED]> wrote:
Further to my deadlocks issue,

Is it normal to have lots of threads waiting for a lock on SSL sockets? I
know I don't have that many people trying to connect through SSL - certainly
the number of threads waiting is disproportionate to the number of visitors.
Example:


"resin-tcp-connection-127.0.0.1:6802-15" daemon prio=1 tid=0x095bbb80
nid=0x7dbf waiting for monitor entry [0xa0c09000..0xa0c0a0b0]
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java :382)
- waiting to lock <0x681975a0> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at com.caucho.vfs.QServerSocketWrapper.accept (QServerSocketWrapper.java:97)
at com.caucho.server.port.Port.accept(Port.java:798)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:492)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516)
at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
at java.lang.Thread.run(Thread.java:595)



I also have a few threads waiting for a lock on ServletMapping - again is
that normal? Example:


"resin-tcp-connection-*:80-85" daemon prio=1 tid=0xb1edba48 nid=0x13a5
waiting for monitor entry [0xac862000..0xac862eb0]
at
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java :577)
- waiting to lock <0x6a01ad00> (a
com.caucho.server.dispatch.ServletMapping)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:97)
at org.global7.epublisher.iface.filters.RewriteFilter.doFilter (Unknown
Source)
at
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
at
com.caucho.server.dispatch.ServletInvocation.service (ServletInvocation.java:229)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
- locked <0x6d819818> (a java.lang.Object )
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516)
at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
at java.lang.Thread.run(Thread.java:595)




_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to