directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Setting Mix Max memory sizes
Date Wed, 05 Jul 2006 06:47:22 GMT
NiroshanHewakoparage@synergy.com.au a écrit :

> Hi ,

Hi !

>    I want to run apacheds-1.0_RC1 with -Xms512M -Xmx512M. Does anyone 
> know where i can set these setting?
> I am running on redhat linux.

As apacheds is a service, you have to modify the /etc/init.d/apacheds 
file to add those parameters :

...
case "$1" in
  start)
    #
    # Start apacheds
    #
    echo -n $"Starting $prog: "
    ulimit -S -c 0 >/dev/null 2>&1
    RETVAL=0

    $DAEMON_HOME/apacheds \
    -user $APACHEDS_USER \
    -home $JAVA_HOME \
    -Xmx512M \                                             
<------------------------------------------ Add the parameters here
    -Xms512M \                                              
<------------------------------------------
    -Djava.io.tmpdir=$TMP_DIR \
    -Dlog4j.configuration=file://$SERVER_HOME/conf/log4j.properties\
    -pidfile $PID_FILE \
    -outfile $SERVER_HOME/var/log/apacheds-stdout.log \
    -errfile $SERVER_HOME/var/log/apacheds-stderr.log \
    -cp $CLASSPATH \
    org.apache.directory.daemon.JsvcBootstrapper \
    $APACHEDS_HOME start

Don't forget the \ at the end of line !


Emmanuel

> Kind Regards
> Niroshan Hewakoparage
>


Mime
View raw message