ulimit not reflected for jenkins slave

Posted by techastute on Server Fault See other posts from Server Fault or by techastute
Published on 2012-10-08T20:28:11Z Indexed on 2012/11/14 23:02 UTC
Read the original article Hit count: 743

Filed under:
|
|
|

Problem

Got java.io.IOException: Too many open files in solr indexing through jenkins.

Did some googling and found we have to set the ulimit for the box in where we are running the job.

So set the ulimit in a linux box with spec

Linux x86_64 GNU/Linux

in both of the following fashions

  1. ulimit -n 1000000

  2. /etc/security/limits.conf

    userx soft nofile 1000000
    userx hard nofile 1000000
    

Given

  1. userx is the user through which the jenkins job is being executed.
  2. when doing ssh to the box as userx manually through terminal and check ulimit -n am getting 10000000

Question

But when executing the same ulimit -n through a jenkins job, only getting 1024 which is the default.

Any advice would be much helpful?

© Server Fault or respective owner

Related posts about linux

Related posts about ssh