Asterisk-java ManagerReader exception

Hello There!

We have an application initiates calls using AMI. Everything is working fine with limited load. When there are simultaneous calls of 200+ getting below exception. Exception definitely on socket from client side, but what to look for to resolve the issue. TIA.

java.io.IOException: No more lines available: null
at org.asteriskjava.util.internal.SocketConnectionFacadeImpl.readLine(SocketConnectionFacadeImpl.java:202)
at org.asteriskjava.manager.internal.ManagerReaderImpl.run(ManagerReaderImpl.java:163)
at java.lang.Thread.run(Unknown Source)

Thank you
Dev I

As far as I know, the Java library is third party code.

However, I would guess that you simply ran out of file descriptors. You could try increasing the relevant ulimit setting.