Title: java.lang.OutOfMemoryError: PermGen space Axis2 Jboss
Hi Sai,

I had the same problem with Tomcat when I had 6 web services deployed to an Axis 2 (along with other wars running in the Tomcat), and simply upgraded my Tomcat's PermGen to 128 megabytes.

Is your issue that your server is at a certain level above the default Perm Gen (64 megs) or is it that it continually increases the Perm Gen without ever levelling off?

Perm Gen increases when you load new web services or jars/classes into your Axis 2 OR if you are hot redeploying your web services or webapps it will also increase without reclaiming the memory formerly used by that redeployment.

I found it useful to turn on the garbage collection logging where it tells you what levels your Perm Gen is getting up to.

Ants.

Sairam Vengala wrote:

Hi,

I have axis2 1.3 web archive deployed in jboss 4.2.2.GA. Server works fine for few days after start but perm gen memory keep on increasing and finally it is crashing. I am using JDK 1.5.0_14. I created web service skeletons using wsdl2java utility and web archive is in server deploy folder. I have many users accessing this web service.

I found these errors in server log.

2008-08-19 11:19:10,584 ERROR [org.apache.coyote.http11.Http11Protocol] Error reading request, ignored
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:19:17,601 INFO  [STDOUT] [ERROR] PermGen space
[ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:19:24,862 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:19:28,611 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:19:33,090 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:19:38,331 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:19:43,686 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sso].[action]] Servlet.service() for servlet action threw exception

java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:19:56,990 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:20:00,080 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:20:36,180 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:20:59,715 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:21:05,039 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:21:13,556 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:21:22,785 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:21:26,026 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:21:27,572 ERROR [STDERR] Exception in thread "RMI RenewClean-[127.0.0.1:1098]"
2008-08-19 11:21:27,572 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:22:11,992 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:22:46,402 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:22:47,163 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:22:53,072 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:22:58,600 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:23:03,478 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:23:18,256 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:23:35,286 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:23:39,103 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sso].[action]] Servlet.service() for servlet action threw exception

java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:23:42,130 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:23:49,407 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sso].[action]] Servlet.service() for servlet action threw exception

java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:24:12,595 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:24:34,234 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:24:50,732 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:25:31,106 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:27:14,271 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:27:44,737 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:27:51,722 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:28:07,269 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:28:09,085 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sso].[action]] Servlet.service() for servlet action threw exception

java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:28:46,689 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:28:58,449 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:29:00,229 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:29:35,137 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:30:15,229 WARN  [org.jboss.util.threadpool.RunnableTaskWrapper] Unhandled throwable for runnable: [EMAIL PROTECTED]

java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:30:15,992 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:30:51,505 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space
2008-08-19 11:30:58,104 INFO  [STDOUT] [ERROR] PermGen space
java.lang.OutOfMemoryError: PermGen space

I Googled and found that axis2 have class loader issues. Is this causing problem for me? I tried to use profiler and found perm gen space increasing like anything for every invocation.

Please help me how to resolve this. Completely blocked with this issue.

Appreciate your help.

Thanks,
Sai



-- 

Anthony
------------------------------------- 
Anthony Bull
Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand
 
[EMAIL PROTECTED]
Ph  +64 4 472 8818
Fax +64 4 472 8811
------------------------------------- 
www.bcsoft.co.nz
--------------------------------------------------------------- 
This email may contain confidential or privileged information, 
and is intended for use only by the addressee, or addressees. 
If you are not the intended recipient please advise the sender 
immediately and do not copy, use or disclose the contents to 
any other person or organisation.
Black Coffee Software Ltd accepts no responsibility for viruses 
received with this email, or to any changes made to the original 
content. Any views or opinions expressed in this email may be
personal to the sender and are not necessarily those of Black 
Coffee Software Ltd.
--------------------------------------------------------------- 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to