jboss问题,请各位高手指教!

liy_online 05-09-20

最近在用jboss4部署一个应用。但是应用每次启动一段时间就出现
Exception in thread "http-0.0.0.0-8080"
2005-09-19 16:29:46,768 INFO [STDOUT] java.lang.OutOfMemoryError: unable to create new native thread
2005-09-19 16:29:46,768 INFO [STDOUT] at java.lang.Thread.start0(Native Method)
2005-09-19 16:29:46,768 INFO [STDOUT] at java.lang.Thread.start(Thread.java:574)
2005-09-19 16:29:46,769 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.start(MasterSlaveWorkerThread.java:135)
2005-09-19 16:29:46,769 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.newWorkerThread(PoolTcpEndpoint.java:595)
2005-09-19 16:29:46,769 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.createWorkerThread(PoolTcpEndpoint.java:574)
2005-09-19 16:29:46,769 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.run(PoolTcpEndpoint.java:631)
2005-09-19 16:29:46,769 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)

一会就
2005-09-20 09:38:19,939 DEBUG [org.jboss.system.server.Server] Shutting down
2005-09-20 09:38:19,939 DEBUG [org.jboss.system.server.Server] exitOnShutdown: true
2005-09-20 09:38:19,939 DEBUG [org.jboss.system.server.Server] blockingShutdown: false
2005-09-20 09:38:19,939 INFO [org.jboss.system.server.Server] LifeThread.run exits!
2005-09-20 09:38:19,941 INFO [org.jboss.system.server.Server] Shutting down the JVM now!
2005-09-20 09:38:19,942 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified to shutdown
2005-09-20 09:38:19,942 INFO [STDOUT] Exception in thread "Thread-685"
2005-09-20 09:38:19,943 INFO [STDOUT] java.lang.OutOfMemoryError: unable to create new native thread
2005-09-20 09:38:19,943 INFO [STDOUT] at java.lang.Thread.start0(Native Method)
2005-09-20 09:38:19,943 INFO [STDOUT] at java.lang.Thread.start(Thread.java:574)
2005-09-20 09:38:19,943 INFO [STDOUT] at java.lang.Shutdown.runHooks(Shutdown.java:128)
2005-09-20 09:38:19,943 INFO [STDOUT] at java.lang.Shutdown.sequence(Shutdown.java:173)
2005-09-20 09:38:19,943 INFO [STDOUT] at java.lang.Shutdown.exit(Shutdown.java:218)
2005-09-20 09:38:19,943 INFO [STDOUT] at java.lang.Runtime.exit(Runtime.java:90)
2005-09-20 09:38:19,944 INFO [STDOUT] at org.jboss.system.server.ServerImpl$2.run(ServerImpl.java:652)

没反映了,jboss进程还在,真奇怪。

服务器初始虚拟机参数如下:
JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Xss512k -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewSize=500m"

banq
2005-09-20 15:21

可能你参数中有些问题,你使用无参数启动看看是否还这样?