2 Replies Latest reply on May 19, 2011 1:32 PM by Avet Matsakian

    JBOSS-GateIn: Connections are prematurely closed.

    Avet Matsakian Newbie

      Hi GateIn-ers,

       

      I'm a newbie in GateIn and need your help. We developed our Web application on JBOSS-GateIn-3.0.0 platform.

      Before deploying it into production, we decided to conduct some perfomance tests using Java LoadRunner.

       

      We got some strange results, which is hard to explain.

      After 5 or 6 requests connections are being prematurely closed on server. Please look at the output below: (1st part).

       

       

      Investigating further we got the Java stack trace output (please see 2nd part), which indicates that threads are being Blocked.

      Is anyone encountered the same kind of problem(s)?

       

      How we can configure and optimize the JBOSS-GateIn for the best performance and scalability?

       

      Please Help!

      I'll greatly appreciate.

       

      Thanks,

      Avet.

       

       

      1) Action.c(4): Redirecting "http://dev3.st.org/"(redirection depth is 0)     [MsgId: MMSG-26694]

      Action.c(4): To location "http://dev3.st.org/public/Users/"         [MsgId: MMSG-26693]

      Action.c(4): t=64001ms: Request done "http://dev3.st.org/"      [MsgId: MMSG-26000]

      Action.c(4): t=64001ms: Connecting to host128.146.156.21:80    [MsgId: MMSG-26000]

      Action.c(4): t=64002ms: Connected socket from128.146.95.223:56575 to 128.146.156.21:80 in 1 ms          [MsgId: MMSG-26000]

      Action.c(4): t=64002ms: 383-byte request headers for "http://idm-dev3.st.org/public/Users"(RelFrameId=1, Internal ID=2)

      Action.c(4):     GET/public/IdentityManagement/ HTTP/1.1\r\n

      Action.c(4):     User-Agent: Mozilla/4.0(compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR

      Action.c(4):      2.0.50727; .NETCLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)\r\n

      Action.c(4):     Accept-Encoding: gzip,deflate\r\n

      Action.c(4):     Accept-Language:en-us\r\n

      Action.c(4):     Accept: */*\r\n

      Action.c(4):     Connection:Keep-Alive\r\n

      Action.c(4):     Host:idm-dev3.it.ohio-state.edu\r\n

      Action.c(4):     Cookie:JSESSIONID=7D58A80E310CC4D42E017423351ED281\r\n

      Action.c(4):     \r\n

      Action.c(4): t=64003ms: Server idm-dev3.it.ohio-state.eduhas shut down the connection prematurely (empty response, no HTTP headersreceived). No retry attempted             [MsgId: MMSG-26000]

      Action.c(4): t=64003ms: Closed connection todev3.st.org:80 after completing 0 requests             [MsgId:MMSG-26000]

      Action.c(4): Error -27791: Server"idm-dev3.it.ohio-state.edu" has shut down the connectionprematurely           [MsgId:MERR-27791]

      Action.c(4): Warning -26000: Empty or no response forURL="http://dev3.st.org/public/Users/"            [MsgId:MWAR-26000]

      Action.c(4): web_url("dev3.st.org")highest severity level was "ERROR", 0 body bytes, 349 headerbytes                [MsgId: MMSG-26388]

      Ending action Action.      [MsgId: MMSG-15918]

      Ending iteration1.           [MsgId:MMSG-15965]

       

      2)

      "http-127.0.0.1-8080-46"daemon prio=10 tid=0x126ca000 nid=0x1ad5 waiting for monitor entry[0x84ce6000..0x84cea030]

        java.lang.Thread.State: BLOCKED (on object monitor)

             at java.lang.ClassLoader.loadClass(ClassLoader.java:296)

             - waiting to lock <0xc6f08850> (aorg.exoplatform.container.PortalContainerClassLoader)

             at java.lang.ClassLoader.loadClass(ClassLoader.java:300)

             - locked <0xf31a1730> (a groovy.lang.GroovyClassLoader)

             at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:660)

             at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:527)

             atorg.codehaus.groovy.control.ResolveVisitor.resolveToClass(ResolveVisitor.java:618)

             at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:264)

             atorg.codehaus.groovy.control.ResolveVisitor.transformPropertyExpression(ResolveVisitor.java:799)

             atorg.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:652)

             at org.codehaus.groovy.ast.expr.Expression.transformExpressions(Expression.java:49)

             atorg.codehaus.groovy.ast.expr.ArgumentListExpression.transformExpression(ArgumentListExpression.java:67)

             atorg.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:667)

             at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:911)

             atorg.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:658)

             at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionStatement(ClassCodeExpressionTransformer.java:148)