Firefox's ram usage keeps increasing

587 views
Skip to first unread message

Arya

unread,
Apr 5, 2010, 3:00:47 AM4/5/10
to webdriver
Hello

I run all my tests in Firefox and after running them for a day I find
that Firefox uses a lot of ram, to a point which firefox will crash.
I'm not sure why this happens. If someone has the solution please let
me know.


Best Regards!

QA_manager

unread,
Apr 5, 2010, 9:38:45 AM4/5/10
to webdriver
In order to help you we will need to know:
- what version of Firefox
- what OS (and version)
- What version of Selenium (or Webdriver) you are using
- what scripts you are running.

Ideally, please reduce your script to the bare minimum that is
required to reproduce the problem, then post the source here.

Jason Leyba

unread,
Apr 5, 2010, 10:10:33 AM4/5/10
to webd...@googlegroups.com
Do you reuse the same driver instance for each test (in other words do you call WebDriver.quit()?)  We haven't made any memory-based optimizations, so this will cause problems if you keep the same instance running.  We probably should clean things up, but it's not a high priority item for us at the moment.  In the meantime, I'd be happy to review any patches if you'd like to contribute to the project :-)

-- Jason


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.


Arya

unread,
Apr 6, 2010, 4:46:35 PM4/6/10
to webdriver
FF Version: 3.5.8
OS: Win XP
Webdriver a1

I never call WebDriver.quit() its just keep on going in an endless
loop. Although adding WebDriver.quit() I think will fix my problem. If
I'm not mistaking there was something in Selenium which disabled the
"back" feature of firefox which made it use less memory. Is such thing
available in Webdriver?

Regards

Eran M.

unread,
Apr 7, 2010, 6:23:22 AM4/7/10
to webd...@googlegroups.com
There are tips around the web on how to reduce Firefox's memory consumption (some of them are, as you mentioned, related to reducing the history Firefox keeps). Howewer, as Jason mentioned, there are no memory optimizations for WebDriver in Firefox currently, so you may just postpone the problem by tweaking Firefox's settings, not avoid it.

Eran

Reply all
Reply to author
Forward
0 new messages