When ever there are more messages to process, our server goes to a hung state and not responding. The server status shows that it is running but it is not responding to any aplication calls. Even the Jmx console is not opening.
If the symptoms are really as you assert then it sounds to me like a jvm issue,
i.e. it has crashed or hung internally?
The limit on the number of threads is determined by your available virtual memory.
We use the following JVM options
-Xms3g -Xmx3g -XX:ThreadStackSize=128 -XX:+UseParallelGC -XX:MaxPermSize=256m -XX:NewRatio=1
And we use SunOS.
I am not sure whether these parameters matches between them and with the operating system.
Can you please shed some light on this?
We observed that the server goes to a hung state after an application exception is thrown. Earlier the server was not hanging even after the same exception was thrown. So we ignored that time.
The exception was not handled in that bit of code and it goes back to the jvm and sever fails after some time. We are in the process of improving that part of code.