Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Do you have recommended ulimit values? #4298

retzero ·

Hi.
Recently we faced Too many open files exception issue. So I changed the limits like following;

/etc/security/limits.conf
#* hard nofile 65535
#* soft nofile 65535
* hard nofile 500000
* soft nofile 500000

Do you have recommended values for this?

Exception log:

21:34:00,648 ERROR - Build is failed.
    java.lang.RuntimeException: Error executing step execution job.
        at com.pmease.quickbuild.stepsupport.StepExecutionTask.reduce(StepExecutionTask.java:29)
        at com.pmease.quickbuild.stepsupport.StepExecutionTask.reduce(StepExecutionTask.java:19)
        at com.pmease.quickbuild.grid.GridTaskFuture.get(GridTaskFuture.java:161)
        at com.pmease.quickbuild.DefaultBuildEngine.run(DefaultBuildEngine.java:609)
        at com.pmease.quickbuild.DefaultBuildEngine.process(DefaultBuildEngine.java:466)
        at com.pmease.quickbuild.DefaultBuildEngine.access$000(DefaultBuildEngine.java:146)
        at com.pmease.quickbuild.DefaultBuildEngine$2.run(DefaultBuildEngine.java:1248)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: com.pmease.quickbuild.QuickbuildException: Error testing job.
        at com.pmease.quickbuild.grid.GridTaskFuture.testJobs(GridTaskFuture.java:104)
        at com.pmease.quickbuild.grid.GridTaskFuture.get(GridTaskFuture.java:143)
        ... 7 more
    Caused by: com.caucho.hessian.client.HessianRuntimeException: java.net.SocketException: Too many open files
        at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:285)
        at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:171)
        at com.sun.proxy.$Proxy76.testGridJob(Unknown Source)
        at com.pmease.quickbuild.grid.GridTaskFuture.testJobs(GridTaskFuture.java:84)
        ... 8 more
    Caused by: java.net.SocketException: Too many open files
        at java.net.Socket.createImpl(Socket.java:460)
        at java.net.Socket.connect(Socket.java:587)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
        at sun.net.www.http.HttpClient.New(HttpClient.java:308)
        at sun.net.www.http.HttpClient.New(HttpClient.java:326)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1291)
        at com.caucho.hessian.client.HessianURLConnection.getOutputStream(HessianURLConnection.java:99)
        at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:283)
        ... 11 more
  • replies 1
  • views 35
  • stars 0
robinshen ADMIN ·

This value should be fine for even a busy site.