Randhir Singh wrote:
Hi,

I increased the Heap & PermGen memory as per trail mail but the performance
seemed to deteriorate. On the day I increased the memory in the morning,
the system hung 3 times in the day whereas the maximum times it has got
hang before is 2 times in a day. I changed the memory settings for Heap &
PermGen back to before when it hung again the next day, I reverted to the
old memory values.

The catalina.out showed the entries like below when I monitored it twice
after the system hung with the new memory values:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[ 22-May-2014 03:15:40 ] [ TRACE ] [http-30080-56] [ CHECK SESSION ] :
Inside doInit Method
May 22, 2014 3:16:14 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1351
SEVERE: >>org.zkoss.zk.ui.UiException:
org.jboss.remoting.InvocationFailureException: Socket timed out.  Waited
300000 milliseconds for response while calling on InvokerLocator [socket://
bssossapp01.snl.com:4173/?invokerDestructionDelay=5000&timeout=300000];
nested exception is:
java.net.SocketTimeoutException: Read timed out
org.jboss.remoting.InvocationFailureException: Socket timed out.  Waited
300000 milliseconds for response while calling on InvokerLocator [socket://
bssossapp01.snl.com:4173/?invokerDestructionDelay=5000&timeout=300000];
nested exception is:
java.net.SocketTimeoutException: Read timed out
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I would be eager to respond in case of any clarification.

Requesting a reply to resolve this as the attempt to resolve this by
increasing Heap & PermGen memory has failed. I have worked on this issue a
lot and have been trying to interact with the experts on the forum.

Regards


Hi.
I am jumping in here in the middle, and have not followed the previous correspondence. (Which is hard anyway, considering that you keep on top-posting).
(And I do not know Jboss at all, so maybe I am misinterpreting all of this).

But if I go by what you are mentioning above - and despite the apparent subject - it looks to me as follows : - the application (not part of any Tomcat code per se) is trying to connect to, and read from, some (for Tomcat) external server - and that external service is not responding, within the timeout set for this connection (300,000 ms = 5 minutes)
- thus you see the above exceptions happening

So it is a bit hard from there, to figure out what the Tomcat Heap and Permgen sizes (or Tomcat performance for that matter) have to do with this. Intuitively, I would tend to think that if you give more memory to Tomcat to play with, then maybe it tries to handle more simultaneous requests that cause more of these external connections to be opened, all of them ultimately failing because the external server does not respond.
Should you not look at what causes the external server to be slow to respond, 
first of all ?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to