Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] High CPU, threads seem stuck on send1xx()...

Hi there,

 

I have a jetty server with high load and cpu utilization and am looking for some help in identifying the cause.

 

I’m not sure that this is a concern but after performing a thread dump I see over 100 threads waiting in the following:

 

"qtp808460461-119187" prio=10 tid=0x00002aaab83fc800 nid=0x4381 waiting on condition [0x000000004bb8c000]

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

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

        at org.eclipse.jetty.http.HttpGenerator.send1xx(HttpGenerator.java:336)

        at org.eclipse.jetty.server.AbstractHttpConnection.getInputStream(AbstractHttpConnection.java:334)

        at org.eclipse.jetty.server.Request.getInputStream(Request.java:565)

        at org.jivesoftware.multiplexer.net.http.HttpBindServlet.createDocument(HttpBindServlet.java:225)

        at org.jivesoftware.multiplexer.net.http.HttpBindServlet.doPost(HttpBindServlet.java:70)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)

        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)

        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

        at org.eclipse.jetty.server.Server.handle(Server.java:370)

        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)

        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933)

        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995)

        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:651)

        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

        at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)

        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)

        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

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

 

Could this be a cause or symptom of an issue related to high cpu utilization?

Any suggestions on how best to profile an issue like this on a remote production server? I’ve enabled hprof but it seems that the --exec parameter is preventing the webapp from launching. I do get some output to file but I don’t believe it is exercising the application.

 

Java(TM) SE Runtime Environment (build 1.6.0_30-b12)

Java HotSpot(TM) Server VM (build 20.5-b03, mixed mode)

 

Jetty Version: 7.6.15

 

Thanks in advance,

Pat.

 

 


Back to the top