I'm using Selenium stanalone + Chrome headless + PHP + UwAmp server on my computer to parse some data (system: WIN7_32bit, 4GB RAM).
I need to start 22 Chrome sessions at the same time so I'm using selenium grid with this settings:
java -jar selenium-server-standalone-2.53.1.jar -role hub
java -jar selenium-server-standalone-2.53.1.jar -role node -hub http://localhost:4444/grid/register -browser "browserName=chrome,maxInstances=22,seleniumProtocol=WebDriver" -maxSession 22
My problem is that mainly 6 session are started (example on pictures)... Sometimes there are 2 or 4 active sessions. What am I doing wrong? I tried to make changes in php.ini but withouth success. These are the settings:
EDIT: my php.ini file
EDIT2: since same thing happens on other workstation (WIN10_64bit, Intel i7, 16GB RAM), I think that this problem has something to do with UwAmp server settings, or selenium-server-standalone-2.53.1.jar, or Google Chrome.
CPU Usage
is 100% which is the reason for only 2, 4, or 8 active sessions to spawn out. Shift yourTest Environment
to aTest Lab
with ample hardware to support yourHardware Requirement
. – DebanjanBquit()
in thetearDown()
to get rid of stale webdriver and webbrowser instances? Can you share your code block? – DebanjanB