aspose file tools*
The moose likes Tomcat and the fly likes java.lang.OutOfMemoryError: Java heap space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "java.lang.OutOfMemoryError: Java heap space " Watch "java.lang.OutOfMemoryError: Java heap space " New topic
Author

java.lang.OutOfMemoryError: Java heap space

Phani Raj Kumar
Greenhorn

Joined: Feb 13, 2006
Posts: 12
Hi,
With our production application, I am getting "javax.management.InstanceAlreadyExistsException" error messeges repeatedly before resulting in "OutOfMemoryError".

SEVERE: Error registering Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest9845
javax.management.InstanceAlreadyExistsException: Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest9845
at com.sun.jmx.mbeanserver.RepositorySupport.addMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Jan 21, 2010 5:05:52 PM org.apache.jk.common.ChannelSocket registerRequest
WARNING: Error registering request

-------------------

SEVERE: Exception invoking periodic operation:
java.lang.OutOfMemoryError: Java heap space
at org.apache.catalina.session.ManagerBase.findSessions(ManagerBase.java:752)
at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:778)
at org.apache.catalina.session.StandardManager.backgroundProcess(StandardManager.java:795)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:4662)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
at java.lang.Thread.run(Unknown Source)

-------------------------

The below are the env details of our production system:
Apache Proxy: 2.2.11
Apache Tomcat: 5.0.30
JDK: 1.5.0_15

With JDK 1.4.2_15 on development, I could resolve this by adding request.registerRequests="false" in $TOMCAT_HOME/conf/jk2.properties. When applied the same to JDK 1.5.0_15, I am getting the below errors repeatedly before resulting in "OutOfMemoryError". Could you please provide me your valuable points on this?


SEVERE: Error unregistering mbean
javax.management.RuntimeOperationsException: Object name cannot be null
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(Unknown Source)
at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:642)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:706)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Object name cannot be null
... 7 more


Thanks,
Phani.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java.lang.OutOfMemoryError: Java heap space