Project

General

Profile

Actions

Bug #3721

closed

Error on Rudder about lack of RAM memory should be explicit

Added by Nicolas PERRON almost 11 years ago. Updated about 9 years ago.

Status:
Released
Priority:
3
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

If Rudder Server is installed on a machine with less than 1Gb, it will never work but there is no indication about it.

The installation of rudder-webapp contains this:

[...]
Restarting Rudder webapp and inventory-endpoint
Stopping Jetty: No process in pidfile '/var/rudder/run/jetty.pid' found running; none killed.
OK
Setting umask to 0027
Starting Jetty: FAILED

Manually restarting jetty:

# /etc/init.d/jetty restart
Stopping Jetty: start-stop-daemon: warning: failed to kill 15682: No such process
1 pids were not killed
No process in pidfile '/var/rudder/run/jetty.pid' found running; none killed.
OK

But I search for the java command to launch the application:

# /etc/init.d/jetty check
Checking arguments to Jetty:
[...]
RUN_CMD        =  /usr/lib/jvm/java-6-sun/bin/java -server -Xms1024m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -Drudder.configFile=/opt/rudder/etc/rudder-web.properties -Drudder.authFile=/opt/rudder/etc/rudder-users.xml -Dinventoryweb.configFile=/opt/rudder/etc/inventory-web.properties -Dlogback.configurationFile=/opt/rudder/etc/logback.xml -Drun.mode=production -Djetty.logs=/var/log/rudder/webapp/ -Djetty.home=/opt/rudder/jetty7 -Djava.io.tmpdir=/tmp -jar /opt/rudder/jetty7/start.jar OPTIONS=Server --pre=etc/jetty-logging.xml

And then launch it:

# /usr/lib/jvm/java-6-sun/bin/java -server -Xms1024m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -Drudder.configFile=/opt/rudder/etc/rudder-web.properties -Drudder.authFile=/opt/rudder/etc/rudder-users.xml -Dinventoryweb.configFile=/opt/rudder/etc/inventory-web.properties -Dlogback.configurationFile=/opt/rudder/etc/logback.xml -Drun.mode=production -Djetty.logs=/var/log/rudder/webapp/ -Djetty.home=/opt/rudder/jetty7 -Djava.io.tmpdir=/tmp -jar /opt/rudder/jetty7/start.jar OPTIONS=Server --pre=etc/jetty-logging.xml
Error occurred during initialization of VM
Could not reserve enough space for object heap

Here, it is obvious that the error came from a lack of RAM but not before. We should explicit it.

How to do that ? Use a check of RAM in rudder-webapp postinst and in the /etc/init.d/rudder-server-root file before any re/start of jetty ?

Actions

Also available in: Atom PDF