title: JAX-WS threads consuming %100 CPU
body: <p>I have a web service exposed with Spring and JAX-WS. I used jax-ws commons to do that (http://jax-ws-commons.java.net/spring/). Application is deployed on weblogic 10.3 and sometimes some of the threads seem to be stucked. Tha last time I get a thread dump, I saw that 6 threads were marked as "STUCK" and those threads were consuming %100 CPU. The trace of the threads were like the following:</p>
  
  <pre><code>        "[STUCK] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=10 tid=0x00002aaaec5f8800 nid=0x3d99 run
  nable [0x0000000048ca4000]
      java.lang.Thread.State: RUNNABLE
          at java.util.HashMap.put(HashMap.java:374)
          at java.util.HashSet.add(HashSet.java:200)
          at weblogic.wsee.jaxws.ServerLateInitTube.initializeCopy(ServerLateInitTube.java:56)
          at weblogic.wsee.jaxws.ServerLateInitTube.copy(ServerLateInitTube.java:45)
          at weblogic.wsee.jaxws.ServerLateInitTube.copy(ServerLateInitTube.java:24)
          at com.sun.xml.ws.api.pipe.TubeCloner.copy(TubeCloner.java:102)
          at com.sun.xml.ws.api.pipe.TubeCloner.clone(TubeCloner.java:74)
          at com.sun.xml.ws.server.WSEndpointImpl$2.&lt;init&gt;(WSEndpointImpl.java:251)
          at com.sun.xml.ws.server.WSEndpointImpl.createPipeHead(WSEndpointImpl.java:250)
          at com.sun.xml.ws.api.server.Adapter$Toolkit.&lt;init&gt;(Adapter.java:108)
          at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.&lt;init&gt;(HttpAdapter.java:434)
          at com.sun.xml.ws.transport.http.HttpAdapter.createToolkit(HttpAdapter.java:203)
          at com.sun.xml.ws.transport.http.HttpAdapter.createToolkit(HttpAdapter.java:99)
          at com.sun.xml.ws.api.server.Adapter$1.create(Adapter.java:117)
          at com.sun.xml.ws.api.server.Adapter$1.create(Adapter.java:115)
          at com.sun.xml.ws.util.Pool.take(Pool.java:78)
          at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:248)
          at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)
          at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
          at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
          at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
          at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
          at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
          at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
          at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
          at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
          at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
          at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
          at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
          at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
  </code></pre>
  
  <p>Do you have any ideas why there are stucked threads?</p>