Error: “java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method)

After installing a Diagnostics Probe on the application server, if the following error occurs in the application log:

java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method)

The number of connections available on the JBoss/Linux server is the cause for this problem. Linux only allows 1024 connections.

Workaround:

The presence of the agent can create the requirement for many more connections than usual.

The fix – set "ulimit -n" in the shell that is running the application server (such as the run.sh).

"ulimit -n" sets unlimited connections to the Linux/JBoss server, thereby allowed the agent and application to function properly.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s