-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential memory leak #49
Comments
Can you provide more details? A simple complete case is always helpful. |
The simplest thing I could come up with which is not project related is a google search. I bet it can be replaced by simple requests on any other web page. |
Attachment didn't work, here is the code:
|
Is there any further information I can provide to track this issue down? |
Hope this is fixed. Please try with the latest snapshot. |
I tested the 2.29-SNAPSHOT of htmlunit driver and didn't run into any memory problems any more. |
Thanks for the feedback. Feel free to open a new issue if you think there is a new performance problem. |
We are using HtmlUnitDriver to run many tests in parallel, usually about 40.
With HtmlUnitDriver 2.23.2, a maximum heap of 6 GB was enough for that purpose. Now that we switched to 2.26, we are getting OutOfMemoryErrors.
I reduced parallelity down to 25 test threads and went up to 10 GB max heap. Still, heap is always full, garbage collection running non-stop but no free memory can be allocated.
When I'm looking at the heap, the class which uses most of the heap ist net.sourceforge.htmlunit.corejs.javascript.ScriptableObject with several million instances.
Strange thing is, we have JavaScript disabled in the WebClient, so I don't even see why all these instances are necessary.
The text was updated successfully, but these errors were encountered: