java.lang.OutOfMemoryError: unable to create new native thread error using ChromeDriver and Chrome through Selenium in Spring boot
问题 We have selenium based web application developed using spring boot. The server is located as VM Instance at google cloud server. We have a thread base mechanism using Executor . Using selenium we open a chrome browser (headless) to perform operation and for each operation we create new thread. After facing outOfMemory error, if we restart cloud instance then within 1 hour it breaks again with the same error. Please find below the snippet which we used to create a new instance of executor