Community

java.net.SocketException: Too many open files on Red Hat lin

reply from Kiran Krishnamurthy in Performance Tuning - View the full discussion

Yes.. I was able to resolve the problem. the executor was not mentioned which will close the connections/files that are open

 

 

Navigate to "jboss-5.1.0.GA/server/ottserver/deploy/jbossweb.sar" and edit server.xml as mentioned below.

 

Look for following xml snippet.

 

<Connector port="9090" address="${jboss.bind.address}" maxThreads="250" maxHttpHeaderSize="8192" emptySessionPath="true" protocol="HTTP/1.1" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />

 

Replace this snippet with below one.

 

<Executor name="appThreadpool" namePrefix="activeThread-" maxThreads="150" minSpareThreads="3" maxIdleTime="30000" />

    <Connector executor="appThreadpool" port="9090" address="${jboss.bind.address}"          maxThreads="150" maxHttpHeaderSize="8192"

         minSpareThreads="3" maxSpareThreads="20"          emptySessionPath="true" protocol="HTTP/1.1"

         enableLookups="false" redirectPort="8443" acceptCount="100"      connectionTimeout="120000" disableUploadTimeout="true" />

 

 

Look for following xml snippet.

 

<Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"  emptySessionPath="true" enableLookups="false" redirectPort="8443" />

 

Replace this snippet with below one.

 

<Connector executor="appThreadpool" port="8009" address="${jboss.bind.address}" protocol="AJP/1.3" emptySessionPath="true" enableLookups="false" redirectPort="8443" />

 

hope that helps.

 

thanks

Kiran

Reply to this message by going to Community

Start a new discussion in Performance Tuning at Community