Is there a recommended java -Xmx setting for phantomjs automated testing of a service?

116 views
Skip to first unread message

Joseph Finkel

unread,
Dec 9, 2014, 4:06:45 PM12/9/14
to phan...@googlegroups.com
I am trying to use phantomjs as a browser in some automated tests for a java product I am working on. These tests consistently crash the service after repeated testing (30 runs of a module with 17 tests). I am using version 1.9.8 of phantomjs. I would like to try increasing the maximum size of the memory allocation pool from its default 256 MB, is there a recommended value I should increase it to? 

Thanks

James M. Greene

unread,
Dec 9, 2014, 6:43:02 PM12/9/14
to phan...@googlegroups.com

PhantomJS is a C++ application, so JVM settings are irrelevant.

On Dec 9, 2014 3:06 PM, "Joseph Finkel" <josephf...@gmail.com> wrote:
I am trying to use phantomjs as a browser in some automated tests for a java product I am working on. These tests consistently crash the service after repeated testing (30 runs of a module with 17 tests). I am using version 1.9.8 of phantomjs. I would like to try increasing the maximum size of the memory allocation pool from its default 256 MB, is there a recommended value I should increase it to? 

Thanks

--
You received this message because you are subscribed to the Google Groups "phantomjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phantomjs+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phantomjs.
For more options, visit https://groups.google.com/d/optout.

Eloi Tay

unread,
Jan 27, 2015, 2:07:40 AM1/27/15
to phan...@googlegroups.com
Hi
I think perhaps you need to check your java product, because I believe it is crashing because of memory leak since this only occurred during recursive testing and not manual testing right?
Like James Greene had mentioned, phantomjs is based on C++ and not affected by JVM and definitely will not caused your server side program to crash unless it have bugs. If you are saying phantomjs died after a while then it is another issue that I personally experienced. Unfortunately I have no work around for that yet.
Reply all
Reply to author
Forward
0 new messages