we had developed a java application. We are using jar eslclient0.9.3 to connect with freeswitch.Parser we had used is netty. Now when we start the application the thread count continually keep on increasing till they reach 32000. when we use jstack to analyse the behavior we are getting following output.
Threads in state Blocked by Locks
3054 threads running in org.freeswitch.esl.client.internal.AbstractEslClientHandler.messageReceived(AbstractEslClientHandler.java:81)
515 threads running in org.freeswitch.esl.client.internal.AbstractEslClientHandler$SyncCallback.get(AbstractEslClientHandler.java:234)
515 threads running in org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112)
268 threads running in System Thread
8 threads running in org.apache.tomcat.util.threads.TaskQueue.poll(TaskQueue.java:86)
Total Blocked by Locks Threads: 4360
Any help on this is greatly appreciated.