Reputation: 1084
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
Upvotes: 2
Views: 2522
Reputation: 288
See my answer at OutOfMemory exception selenium server 2.0b3 and discussion / patches linked to therein.
There are memory leaks in the logging code for selenium-server. There are some patches more recent than 2.0b3, even. If you can't apply the patches, turning off logging should fix it in the meantime, or at least confirm that that is the source of the problem. It took care of it for me.
Upvotes: 0
Reputation: 1084
Problem was java 1.5... with 1.6 working ok.
EDIT: Well, not realy, now java.lang.OutOfMemoryError: Java heap space
Upvotes: 0
Reputation: 22438
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
Upvotes: 2