Saludos.

Ese fue el primer archivo que revise, y tal como encontre en este enlace:

http://elrinconcito-carlos.blogspot.com/2009/02/aumentar-memoria-para-java-en-openfire.html

<http://elrinconcito-carlos.blogspot.com/2009/02/aumentar-memoria-para-java-en-openfire.html>Supuestamente
deberia existir una linea y quedaria como esta:
INSTALL4J_ADD_VM_PARAMS="-Xms128m -Xmx256m"
*
*
Pero luego un amigo me dijo que ese parametro ya no existe en esta version
de OpenFire y que segun el ya no es a traves de ese archivo, lo edite con:

vim /etc/inir.t/openfire

y esto es lo que contiene

#!/bin/sh
#
# Written by Miquel van Smoorenburg <[email protected]>.
# Modified for Debian
# by Ian Murdock <[email protected]>.
#
# Version: @(#)skeleton  1.9  26-Feb-2001  [email protected]
#

# Attempt to locate JAVA_HOME, code borrowed from jabref package
if [ -z $JAVA_HOME ]
then
t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t
fi

PATH=/sbin:/bin:/usr/sbin:/usr/bin:${JAVA_HOME}/bin
JAVA=${JAVA_HOME}/bin/java
NAME=openfire
DESC=openfire
DAEMON_DIR=/usr/share/openfire
DAEMON_LIB=${DAEMON_DIR}/lib

test -x $JAVA || exit 0

# Include openfire defaults if available
if [ -f /etc/default/openfire ] ; then
. /etc/default/openfire
fi

DAEMON_OPTS="$DAEMON_OPTS -server -DopenfireHome=${DAEMON_DIR} \
 -Dopenfire.lib.dir=${DAEMON_LIB} -classpath ${DAEMON_LIB}/startup.jar\
 -jar ${DAEMON_LIB}/startup.jar"

#set -e

#Helper functions
start() {
        start-stop-daemon --start --quiet --background --make-pidfile \
                --pidfile /var/run/$NAME.pid --chuid openfire:openfire \
                --exec $JAVA -- $DAEMON_OPTS
}

stop() {
        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $JAVA --retry 4
}

case "$1" in
  start)
echo -n "Starting $DESC: "
start
echo "$NAME."
;;
  stop)
echo -n "Stopping $DESC: "
stop
echo "$NAME."
;;
  restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
#set +e
stop
#set -e
#sleep 1
start
 echo "$NAME."
;;
  *)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac

exit 0



-- 
- - - - - - - - - - - - - - - - - - -
Orlando Nuñez
Minha vida eu dedico, a arte da Capoeira!



El 27 de abril de 2010 12:14, Iván Sánchez Ortega
<[email protected]>escribió:

> El 27/04/2010 18:40, Orlando Nuñez escribió:
>
>> $ locate openfire
>>
> [...]
>
>> /etc/init.d/openfire
>>
>
> ¡Alehop! Ahí tienes el script de arranque. Si lo miras con un editor de
> texto deberías ser capaz de modificar los parámetros de arranque del .jar y
> aumentarle la memoria disponible.
>
>
> --
> Iván Sánchez Ortega <[email protected]>
>
>
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact
> [email protected]
> Archive: http://lists.debian.org/[email protected]
>
>

Responder a