Hi,
We are facing issues when we are trying to access the appp. deployed on Tomcat server.
Here is the error message we see in the catalina log :
java.io.IOException: Cannot run program "env": java.io.IOException: error=24, Too many open files
Everytime we are restarting the server to resolve this issue.

java.io.IOException: Cannot run program "env": java.io.IOException: error=24, Too many open files
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.softential.coxism.servlet.UserAuthenticationSe rvlet.doPost(UserAuthenticationServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:20
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:203)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:10
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:55
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:11
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:379)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:242)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:259)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:237)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:281)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files

ulimit settings:
root soft nofile 8192
root hard nofile 8192

java version "1.4.2"

Tomcat version 7.0.4

Any idea what might be the worng? Thanks in advance.
Sathish.