views:

55

answers:

2

Im trying to run Selenium RC with Nagios3. Everything works ok up to 3h... then selenium engine takes sometimes even 1.4G RAM and stop responding.

I'm starting selenium by:

java -server -Xss64k -Xms512m -Xmx1024m -Xverify:none -XX:+UseAdaptiveSizePolicy -XX:+PrintGCDetails -XX:MaxPermSize=160m -XX:+UseParallelGC -jar /usr/local/selenium/selenium-server.jar -log /var/log/selenium-server.log -browserSideLog &> /var/log/selenium-server.log &

Any idea how to limit memory aviable to selenium? Or how to dectect/fix memory leak

+2  A: 

There was a memory leak in Selenium RC and this has been fixed when the patch in issue 814 was applied. If you get the latest server you shouldnt have this issue

AutomatedTester
I have latest version from http://seleniumhq.org/download/
DreamCatch
A: 

Problem was java 1.5... with 1.6 working ok.

EDIT: Well, not realy, now java.lang.OutOfMemoryError: Java heap space

DreamCatch
After 3 days stable working, today in logs:java.lang.OutOfMemoryError: Java heap space
DreamCatch