kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #18129
Confluence memory..
Nick, thanks for steadily reporting any issues.
Even in the latest version, it seems that confluence is eventually hitting an OutOfMemory
situation, even for all the RAM java will let me give it…
So, I have set this into cron:
# restart confluence every saturday
* 0 * * 6 /sbin/service confluence restart
# check confluence every 5 minutes for Memory errors
*/5 * * * * /opt/atlassian/confluence-reviver.sh
And this is the confluence-reviver.sh:
#!/bin/sh
LOGFILE=/var/atlassian/application-data/confluence/logs/atlassian-confluence.log
LINES=2000
tail $LOGFILE --lines $LINES | grep java.lang.OutOfMemoryError
if [[ $? -ne 0 ]]; then
exit 0 # we are ok, no memory error
else
for i in {1..$LINES}
do
echo == BLANK == > $LOGFILE
done
service confluence restart
echo Confluence was restarted due to OutOfMemoryError
exit 1
fi
I guess they have memory leaks..
Miguel Ángel Ajo