glassfish
  1. glassfish
  2. GLASSFISH-20569

[osgi/javaee-test] Print jstack when requests time out

    Details

    • Type: Improvement Improvement
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.1.1
    • Component/s: OSGi-JavaEE
    • Labels:
      None

      Description

      We are occasionally seeing server threads getting stuck during http request execution. This causes the client to close the socket after a predefined timeout. We should do the following in our code which will collect the entire stack trace that we can use to analyse the hang:

      try {
      // read from socket using http client library
      } catch (java.net.SocketTimeoutException e) {
      throw new TimeoutException(e);
      } finally {
      // close the socket...
      }

        Activity

        Hide
        TangYong added a comment -

        Patch has been checked in.

        At revision: 62062

        Show
        TangYong added a comment - Patch has been checked in. At revision: 62062

          People

          • Assignee:
            TangYong
            Reporter:
            Sanjeeb Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: