Java:无法创建新的本机线程

编程入门 行业动态 更新时间:2024-10-23 05:38:09
本文介绍了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:无法创建新的本机线程

本文发布于:2023-11-25 18:48:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630915.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:本机   线程   Java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!