Too many open files error while invoking REST Connector
SummaryThe user is using Pega 7.2.1 with Event Strategy Manager ML-8. They reported observing "Too many open files" error messages while running of a large number of REST connectors. The number of file descriptors in the environment is set to more than 1 Million but still they are seeing error related to file descriptors.
Error Messages SendEvent ================================== com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: java.net.SocketException: Too many open files occurred while sending 00000000R3B90B3======================================================
Steps to Reproduce
- Run a large number of REST connectors.
Root CauseAn issue in the custom application code or rules is identified as root cause.
ResolutionPerform the following local-change:
- Check the "Maintain Session" option on Connect-REST rule form. If we check this option, it will have a group of connections share a session and state is maintained between the connections. The client will try to reuse the client object for the calls using a HTTP token passing mechanism.
Published April 27, 2017 - Updated April 29, 2017