本文介绍了Java:无法创建新的本机线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个由Web托管公司托管的Java应用程序。每隔几天我的应用就会失败:
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 java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597)托管公司表示这意味着我的应用程序正在泄漏内存,但我所拥有的工具正在显示免费记忆仍然可用。由于错误总是创建一个新的本机线程,我认为问题出在JVM配置/操作系统资源中。
The hosting company says it means my app is leaking memory, but the tools I have are showing free memory is still available. Since the error is always creating a new native thread my thinking is that the issue is in the JVM config/OS resources.
如何防止发生此错误?
推荐答案它最有可能是Web服务器端JVM的问题。请查看以下链接了解一些细节,
Its most likely the problem with JVM at web-server end. Please check out the following link for some details,
blog.egilh/2006/06/2811aspx.html
更多推荐
Java:无法创建新的本机线程
发布评论