JBOSS内存溢出

07-08-20 sayschi
最近jboss服务每过几天出现以下信息:

数据库服务器: oracle9i

应用服务器:jboss3.2.5

采用struts1.1框架,jboss散居据库联接池,并且启动内存设置为-Xms128m -Xmx512m

公司内部系统,每天最多大概80个人同时访问。出现异常服务器宕机,不能访问。

请banq大哥看看,

异常信息如下:

2007-08-17 16:54:06,687 INFO [STDOUT] real servletPath is /member/consoleOrders.do

2007-08-17 16:54:06,687 INFO [STDOUT] real servletPath is /top.jsp

2007-08-17 16:54:07,328 INFO [STDOUT] real servletPath is /member/initComplaintCreate.do

2007-08-17 16:54:07,328 INFO [STDOUT] real servletPath is /menu/end.jsp

2007-08-17 16:54:13,250 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:14,531 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:15,156 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:15,171 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:17,062 INFO [STDOUT] real servletPath is /member/complaintAdd.do

2007-08-17 16:54:19,640 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:20,906 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:22,859 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:22,875 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:22,875 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:27,312 ERROR [org.apache.tomcat.util.threads.ThreadPool] Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomcat.util.net.TcpWorkerThread@6e893a, terminating thread

2007-08-17 16:54:28,531 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null

java.lang.OutOfMemoryError

2007-08-17 16:54:28,546 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=kewise, password=--hidden--}

2007-08-17 16:54:34,156 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception

...

2007-08-17 16:54:34,156 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null

java.lang.OutOfMemoryError

banq
2007-08-20 18:25
>OutOfMemoryError

内存溢出,这是你的应用程序存在内存漏洞,可以使用Jprofiler测试找出哪个类内存泄漏。

fangsimple
2007-08-30 14:28
也可能是jboss设置的问题

修改run.bat文件

我是如下设置:

set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1024m -XX:MaxPermSize=128m

猜你喜欢