Thursday, July 05, 2018

StuckThreadMaxTime of "600" seconds In WebLogic

Symptom:

   In weblogic out logs, we see quite a few stuck threads alerts
   Error Stack is like:

<Apr 30, 2018, 11:01:02,922 AM UTC> <Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "637" seconds working on the request "Http Request Information: weblogic.servlet.internal.ServletRequestImpl@49cb4b67[GET /sites/Satellite]
", which is more than the configured time (StuckThreadMaxTime) of "600" seconds in "server-failure-trigger". Stack trace:
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
    java.net.SocketInputStream.read(SocketInputStream.java:170)
    java.net.SocketInputStream.read(SocketInputStream.java:141)
    oracle.net.nt.MetricsEnabledInputStream.read(TcpNTAdapter.java:759)
    oracle.net.ns.Packet.receive(Packet.java:312)
    oracle.net.ns.DataPacket.receive(DataPacket.java:106)
    oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:306)
    oracle.net.ns.NetInputStream.read(NetInputStream.java:250)
    oracle.net.ns.NetInputStream.read(NetInputStream.java:172)
    oracle.net.ns.NetInputStream.read(NetInputStream.java:90)
    oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket
(T4CSocketInputStreamWrapper.java:124)
    oracle.jdbc.driver.T4CSocketInputStreamWrapper.read
(T4CSocketInputStreamWrapper.java:80)


Diagnosis:

    The  [GET /sites/Satellite]  is causing problems. First we use web browser to test the url. ie http://test.domain.com/sites/Satellite
     It is possible that bad design of the page causes problem. Open developer tools of browser (Chrome) to check which sections take most of time

   Then we need to check any bad sql queries involved in the Database. Get AWR report and find top consumers.


9 comments:

  1. This was actually helpful thank you so much for sharing this! Gbwhatsapp

    ReplyDelete
  2. I accidentally searched and visited your site. I still saw several posts during my visit, but the text was neat and readable. GBWAMOD

    ReplyDelete
  3. Great insights on fixing the stuck thread issue! I've faced something similar when dealing with large Game Mod APK APKTodo files. Your tips will definitely help smooth things out!

    ReplyDelete