Java: Unable to create new native thread

前端 未结 7 772
执念已碎
执念已碎 2020-11-28 10:25

I have a Java application that is hosted on by a web hosting company. Every few days my app goes down with:

[2011-03-09 15:52:14,501] ERROR http-12021-9 
ja         


        
7条回答
  •  借酒劲吻你
    2020-11-28 10:47

    When you fire up your process, the JVM has a limited heap size (default is 128MB). That server may well have more memory, but your JVM doesn't - you used it all.

    You can change this with the -Xms and -Xmx command line arguments, but I would suggest finding the memory leak first :)

提交回复
热议问题