How do i make a Selenium WebDriver run for many hours(CHO) without it causing a crash / OutOfMemory problems? How do i make a Selenium WebDriver run for many hours(CHO) without it causing a crash / OutOfMemory problems? selenium selenium

How do i make a Selenium WebDriver run for many hours(CHO) without it causing a crash / OutOfMemory problems?


I found this link:creating-firefox-profile-for-your-selenium-rc-tests, & was quite helpful. Created a new firefox profile with absolute minimal settings, & the test has been running without issues for the last 4 hours. Thanks a lot for the help guys !


What sort of testing are you doing? Selenium is used primarily for Acceptance tests. It sounds like what you're trying to do is more like a soak test on your system.

If that's the case, take a look at JMeter, it's much more suited to this type of work. However, a rather significant difference between the two technologies is that JMeter works at the protocol (HTTP Request) level as opposed to Selenium's use of the rendered HTML.


What does crash, your Java test code or Firefox itself? If it's the Java test code, then are you sure that you're not leaking memory? Or maybe the memory leak is in the server side?