java.lang.OutOfMemoryError: unable to create new native thread error using ChromeDriver and Chrome through Selenium in Spring boot

前端 未结 3 2135
不知归路
不知归路 2020-12-21 14:10

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 usin

3条回答
  •  情书的邮戳
    2020-12-21 14:27

    The amount of RAM your server has doesn't matter if you don't allocate that memory to your java process.

    If you run your application with (any variant of) java -jar command, then add a maximum allowed memory parameter -xmx (check this question). If the application runs inside Tomcat (or any application server), you'll need to increase the maximum allowed memory of it (check its parameters and docs).

提交回复
热议问题