The java interpreter is using too much memory, the following works better:
nohup java -Xms128m -Xmx256m -jar jenkins.war & On Apr 14, 10:21 am, Erwin Coumans <erwin.coum...@gmail.com> wrote: > I tried to manually start Jenkins by invoking the java interpreter > directory instead of using a service: > It was not clear where jenkins.war is installed using yum, so > searching for it: > > yum install yum-utils > repoquery --list jenkins > /usr/lib/jenkins/jenkins.war > > Now manually running > java -jar jenkins.war > > and all works well, visitinghttp://localhost:8080locally or remotely > works fine. > > Unfortunately we need to run nohup to keep the process running after > logging out from the shell, and now it seems the service is running > out of memory: > > nohup java -jar jenkins.war > nohup: ignoring input and appending output to `nohup.out' > > cat nohup.out > Error occurred during initialization of VM > Could not reserve enough space for object heap > Could not create the Java virtual machine. > > I'll figure out how to deal with the lack of RAM memory. Hopefully > this helps someone else. > Thanks, > Erwin > > On Apr 14, 9:42 am, Erwin Coumans <erwin.coum...@gmail.com> wrote: > > > > > > > > > I installed jenkins (as root) and start the service but I cannot > > connect to the service: > > > wgethttp://localhost:8080/jenkins > > --09:31:54-- http://localhost:8080/jenkins > > => `jenkins' > > Resolving localhost... 127.0.0.1 > > Connecting to localhost|127.0.0.1|:8080... failed: Connection refused. > > > I installed as follows: > > > sudo wget -O > > /etc/yum.repos.d/jenkins.repohttp://pkg.jenkins-ci.org/redhat/jenkins.repo > > sudo rpm --importhttp://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key > > yum install jenkins > > > This is a virtual private server from Godaddy with Fedora release 7. > > It could be that port 8080 is blocked. > > I checked the port in /etc/sysconfig/jenkins and tried "8080" or "80" > > or "8081" without luck. Are there other ways to try it locally, in > > case some ports are blocked? Should I somehow route jenkins through > > Apache so that it doesn't require special 8080 ports? > > > Disabling the local Apache server, httpd, doesn't help either > > /sbin/service httpd stop > > > The Jenkins service can be started: > > /sbin/service jenkins start > > Starting Jenkins [ OK ] > > ls /var/run/jenkins > > /var/run/jenkins.pid > > > So there seems to be a jenkins process started. > > > /sbin/service jenkins stop > > Shutting down Jenkins [FAILED] > > > ls /var/run/jenkins > > reports no file. > > > Unfortunately there is no log file in /var/log/jenkins (the directory > > is empty) > > > cat /etc/*-release reports > > Fedora release 7 (Moonshine) > > > Is there a more verbose way to run Jenkins so that I can figure out > > what it wrong? > > Thanks a lot, > > Erwin