Files
jenkins/debian/hudson.default
T
kohsuke 2fb288474e Activating this by default. Exceprt from the IRC chat:
(05:30:38 PM) feniix: hello kohsuke
(05:30:43 PM) kohsuke: hi
(05:31:23 PM) feniix: Just sent you a pull request of this commit http://github.com/feniix/hudson/commit/d13c08ea8f5a3fa730ba174305e6429b74853927
(05:31:25 PM) feniix: :)
(05:32:02 PM) feniix: its a workaround for the setup of the limits.conf on ubuntu and most likely debian too.
(05:33:00 PM) kohsuke: should it be enabled by default, then?
(05:33:18 PM) kohsuke: or maybe I should ask you why this is an issue
(05:34:23 PM) kohsuke: Oh, maybe I misunderstand the issue
(05:34:34 PM) kohsuke: it's to enforce ulimit?
(05:34:48 PM) kohsuke: presumably the root has infinite ulimit and sudo don't add this?
(05:37:18 PM) feniix: to be able to increase the max files open limits
(05:37:30 PM) feniix: on debian, the pam config for su
(05:37:43 PM) feniix: does not run the rules pam_limits.so
(05:37:54 PM) feniix: so it applies the default that is 1024
(05:38:09 PM) feniix: we have a project that has more than 3000 java files
(05:39:02 PM) feniix: also, if the shell of a user is /bin/false being a nologin shell, does not use pam_limits.so either.
(05:39:16 PM) feniix: even if you add:
(05:39:47 PM) feniix: *      soft   nfiles XXXX
(05:39:50 PM) feniix: and
(05:40:03 PM) feniix: *     hard    nfiles XXXX in your limits.conf
(05:40:11 PM) feniix: is not applied to the hudson user
(05:40:27 PM) kohsuke: I see.
(05:40:34 PM) kohsuke: So shall we enable this by default?
(05:40:43 PM) kohsuke: I bet most Hudson users aren't aware of anything like those
(05:40:44 PM) kohsuke: I wasn't
(05:41:27 PM) feniix: I don't think would have to much of a negative impact to have that enabled by default
(05:41:38 PM) feniix: could be setup to something not too big like 4096
(05:42:02 PM) feniix: the max limit is 65535 (on 32bit at least)
(05:42:18 PM) kohsuke: ok
(05:44:27 PM) feniix: cool
(05:44:36 PM) feniix: see ya



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23843 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-19 02:31:14 +00:00

48 lines
1.4 KiB
Plaintext

# defaults for hudson continuous integration server
# pulled in from the init script; makes things easier.
NAME=hudson
# location of java
JAVA=/usr/bin/java
# arguments to pass to java
#JAVA_ARGS="-Xmx256m"
PIDFILE=/var/run/hudson/hudson.pid
# user id to be invoked as (otherwise will run as root; not wise!)
HUDSON_USER=hudson
# location of the hudson war file
HUDSON_WAR=/usr/share/hudson/hudson.war
# hudson home location
HUDSON_HOME=/var/lib/hudson
# set this to false if you don't want Hudson to run by itself
# in this set up, you are expected to provide a servlet containr
# to host hudson.
RUN_STANDALONE=true
# log location. this may be a syslog facility.priority
HUDSON_LOG=/var/log/hudson/$NAME.log
#HUDSON_LOG=daemon.info
# OS LIMITS SETUP
# comment this out to observe /etc/security/limits.conf
# this is on by default because http://github.com/feniix/hudson/commit/d13c08ea8f5a3fa730ba174305e6429b74853927
# reported that Ubuntu's PAM configuration doesn't include pam_limits.so, and as a result the # of file
# descriptors are forced to 1024 regardless of /etc/security/limits.conf
MAXOPENFILES=8192
# arguments to pass to hudson.
# --javahome=$JAVA_HOME
# --httpPort=$HTTP_PORT (default 8080; disable with -1)
# --httpsPort=$HTTP_PORT
# --argumentsRealm.passwd.$ADMIN_USER=[password]
# --argumentsRealm.$ADMIN_USER=admin
# --webroot=~/.hudson/war
HUDSON_ARGS="--webroot=/var/run/hudson/war"