java/lang/OutOfMemoryError":"Failed to fork OS thread请教

> OS Name:        AIX> OS Version:     5.3xms768mxmx1024mjavacore:heap space free: asfcfb58heap space allocated:30000000在运行一天左右,就会出现java/lang/OutOfMemoryError":"Failed to fork OS thread的异...显示全部
> OS Name:        AIX
> OS Version:     5.3

xms768m
xmx1024m

javacore:
heap space free: asfcfb58
heap space allocated:30000000

在运行一天左右,就会出现java/lang/OutOfMemoryError":"Failed to fork OS thread的异常,jvm打出一个core文件。这时,大部分线程将进入wait状态,导致很多业务不能运行,请教各位大侠是否遇到过同样的情况。
上周突然就这样了,之前一直也没有事。到底什么原因啊???收起
参与9

查看其它 7 个回答luckydevil_2001的回答

luckydevil_2001luckydevil_2001其它others
以下是一种可能:
This section explains the following error:
java.lang.OutOfMemoryError: Failed to fork OS thread

This error occurs when thousands of threads are started in very quick succession (almost simultaneously). The error indicates that the upper limit on the number of concurrent threads for the JVM has been reached.

Normally this error occurs when a Javascript loop starts thousands of threads in a very short period of time. This error should not occur in normal conditions in which Tivoli® Directory Integrator solutions usually operate.

You can avoid this error by inserting a very small delay between starting successive threads (even as small as 1 millisecond). This delay can cause performance to decrease a little, but the error would disappear.
互联网服务 · 2015-08-06
浏览1612

回答者

luckydevil_2001
其它others

luckydevil_2001 最近回答过的问题

回答状态

  • 发布时间:2015-08-06
  • 关注会员:1 人
  • 回答浏览:1612
  • X社区推广