REST service times out SocketTimeoutException (PRPC 6.3sp1)
REST service times out with an error as below :-
- Mon Oct 12 13:25:00 IST 2015:INFO:Error getting response for [.:]; java.net.SocketTimeoutException: Read timed out
On analyzing the SMA, I am seeing the Idle count of threads as "0" and only then this issue comes up.. This is a stateful authenticated service. Below screenshot from SMA.
I had purposefully set the max idle count as "0" and Max Active count as "0" in the pooling tab. This should not affect as this is a stateful-authneticated package. I also made it as - setting max active to 1 and the issue comes up again.
Any idea on how to debug this ?
I checked the weblogic logs and saw the below error :-
####<Oct 9, 2015 12:14:03 AM PDT> <Error> <WebLogicServer> <stage2cpp087> <stage2cpp087_unify_L2_1> <[ACTIVE] ExecuteThread: '40' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1444374843831> <BEA-000337> <[STUCK] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "608" seconds working on the request "Workmanager: default, Version: 0, Scheduled=true, Started=true, Started time: 608245 ms
REST service times out with an error as below :-
- Mon Oct 12 13:25:00 IST 2015:INFO:Error getting response for [.:]; java.net.SocketTimeoutException: Read timed out
On analyzing the SMA, I am seeing the Idle count of threads as "0" and only then this issue comes up.. This is a stateful authenticated service. Below screenshot from SMA.
I had purposefully set the max idle count as "0" and Max Active count as "0" in the pooling tab. This should not affect as this is a stateful-authneticated package. I also made it as - setting max active to 1 and the issue comes up again.
Any idea on how to debug this ?
I checked the weblogic logs and saw the below error :-
####<Oct 9, 2015 12:14:03 AM PDT> <Error> <WebLogicServer> <stage2cpp087> <stage2cpp087_unify_L2_1> <[ACTIVE] ExecuteThread: '40' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1444374843831> <BEA-000337> <[STUCK] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "608" seconds working on the request "Workmanager: default, Version: 0, Scheduled=true, Started=true, Started time: 608245 ms
", which is more than the configured time (StuckThreadMaxTime) of "600" seconds in "server-failure-trigger". Stack trace:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:503)
com.pega.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:743)
com.pega.pegarules.session.internal.mgmt.RequestorPool.borrowRequestor(RequestorPool.java:455)
com.pega.pegarules.session.internal.mgmt.RequestorPoolManager.borrowRequestor(RequestorPoolManager.java:61)
com.pega.pegarules.session.internal.PRSessionProviderImpl.borrowRequestor(PRSessionProviderImpl.java:573)
com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:883)
com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:771)
com.pega.pegarules.integration.engine.internal.services.ServiceAPI.getServiceMethod(ServiceAPI.java:2624)
com.pega.pegarules.integration.engine.internal.services.http.HTTPService.invoke(HTTPService.java:199)
com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:312)
com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:263)
com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:221)
sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:349)
com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:390)
com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingException(PRBootstrap.java:412)
com.pega.pegarules.internal.etier.ejb.EngineBeanBoot.invokeEngine(EngineBeanBoot.java:168)
com.pega.pegarules.internal.etier.ejb.EngineBMT_h449u3_ELOImpl.__WL_invoke(Unknown Source)
weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:33)
com.pega.pegarules.internal.etier.ejb.EngineBMT_h449u3_ELOImpl.invokeEngine(Unknown Source)
com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:277)
com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:222)
com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:400)
com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:278)
sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:349)
com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:390)
com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:439)
com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:118)
com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:89)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3432)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
>
***Updated by Moderator: Marissa to add Doc Bug group tag***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.