[EMAIL PROTECTED] 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


Reply via email to