Open VivaLosDoyers opened 7 years ago
@VivaLosDoyers You can set the JVM arguments in the selenium grid config file:
"grid_jvm_x_options": "-Xmx4g -XX:ParallelGCThreads=12"
I never have myself, but you can see the comment here , https://github.com/groupon/Selenium-Grid-Extras/issues/101#issuecomment-146579482 . And the PR that added it : https://github.com/groupon/Selenium-Grid-Extras/pull/160
I've got a test that gets run via Selenium Grid Extras to a Windows node. In this test, I use a Selenium file_detector to send a large file (about 1.2GB) from the running machine to the node:
I can perform this test with small files no problem. But when I send this larger file, my heap runs out.
On both the node and hub machines, I'm running GridExtras with an increased heap size:
/usr/bin/java -d64 -Xms512m -Xmx16g -jar SeleniumGridExtras-1.12.10-SNAPSHOT-jar-with-dependencies.jar
I noticed when probing the hub, it looks like the child web driver processes are the ones bailing out due to heap space. Since SeleniumGridExtras calls these processes, I presume they're using some sort of default heap space that isn't enough?
Is there a way I can run the grid in such a way that it will just use however much memory it needs? I hope this makes sense. I'm not really that familiar with the JVM.