mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-7951: Limit amount of memory used by cloudstack-agent jsvc
This closes #111 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
40f343ff4c
commit
b108648f65
@ -64,7 +64,7 @@ export CLASSPATH="/usr/share/java/commons-daemon.jar:$ACP:$PCP:/etc/cloudstack/a
|
|||||||
start() {
|
start() {
|
||||||
echo -n $"Starting $PROGNAME: "
|
echo -n $"Starting $PROGNAME: "
|
||||||
if hostname --fqdn >/dev/null 2>&1 ; then
|
if hostname --fqdn >/dev/null 2>&1 ; then
|
||||||
$JSVC -cp "$CLASSPATH" -pidfile "$PIDFILE" \
|
$JSVC -Xms256m -Xmx2048m -cp "$CLASSPATH" -pidfile "$PIDFILE" \
|
||||||
-errfile $LOGDIR/cloudstack-agent.err -outfile $LOGDIR/cloudstack-agent.out $CLASS
|
-errfile $LOGDIR/cloudstack-agent.err -outfile $LOGDIR/cloudstack-agent.out $CLASS
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user