Success: optimizing the Etherpad Java VM

After weeks of tweeking i finally found an environment that works smoothly
2GB VM
I kept my ${MXRAM} at 1800M
$JAVA -classpath $CP \
-server \
-Xmx${MXRAM} \
-Xms${MXRAM} \
-Djava.awt.headless=true \
-XX:MaxGCPauseMillis=500 \
-XX:+UseParallelGC \
-Dappjet.jmxremote=true \
$JAVA_OPTS \
net.appjet.oui.main \
–configFile=${cfg_file} \
“$@”
Note the lack of logging etc.

Rebranding Etherpad

Changing the logos & brand name from Etherpad to your own requires modifying the following files:
(Images)
/usr/local/etherpad/trunk/etherpad/src/static/img/jun09/pad/protop.gif
/usr/local/etherpad/trunk/etherpad/src/static/img/jun09/pad/padtop5.gif
/usr/local/etherpad/trunk/etherpad/src/static/img/pro/header/pro-header-logo.png
/usr/local/etherpad/trunk/etherpad/src/static/favicon.ico
(Text)
/usr/local/etherpad/trunk/etherpad/src/templates/main/home.ejs
/usr/local/etherpad/trunk/etherpad/src/templates/html.ejs
/usr/local/etherpad/trunk/etherpad/src/templates/pad/create_body.ejs

My Etherpad start up script

I like my etherpad to run in a screen so I can jump in and out:

I know it’s messy but it’s all I have. I recommend not using this on a box running anything other than etherpad.  I paste this to /etc/init.d/etherpad and chmod it


/etc/init.d/nrpe start

killall java -9

killall soffice.bin

/usr/bin/soffice -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service"  &

cd /usr/local/etherpad/trunk/etherpad

screen bin/run-local.sh