hi y'all.
plosone started going up and down according to nagios around 4:20 AM - when the rss feeds are generated.
when i finally got a chance to look, i saw that plosone was thrashing hard.
i'm bad and hadn't installed systat yet, so i'm not sure if mulgara was also thrashing, but all three had to be force quit with -f.
yes, i got a thread dump from mulgara first. no, logging is not currently verbose.
looking at /etc/sysconfig/plosone, it looks like the memory being given to tomcat is rather ambitious!
MEM=`free -mo | grep Mem | awk '{print $2-128}'`
export plosone_TOMCAT_OPTS="-Xmx${MEM}m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.apache.tomcat.util.buf.UDecoder.
ALLOW_ENCODED_SLASH=true"
the MEM variable is being set to "total memory in the system - 128MB". 128MB is really not enough overhead!
if you want to dynamically set the memory usage, you should start with column 4 (the free memory) and then subtract some about (more than 128MB!)
i will hard code mine to 3GB.
would it make sense to limit the thread stack size as well with -Xss32m or something? is there an easy way to figure out memory usage per thread so i can tune?
thanks!