osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.OutOfMemoryError: GC overhead limit exceeded


Hi Everyone,

Can anyone please help me to give some solution on below error?
I am getting this error after every 2-3 Hours. 
My activeMQ configuration is as follow.

ActiveMQ configuration is as follow:
 ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Xms1g -Xmx1g"

and activemq.xml configuration as follow:
<policyEntry queue=">" producerFlowControl="true" memoryLimit="180mb">    
<pendingQueuePolicy>
<vmQueueCursor/>
</pendingQueuePolicy>
</policyEntry>


<systemUsage>
            <systemUsage>
                <memoryUsage>
                    <memoryUsage percentOfJvmHeap="50" />
                </memoryUsage>
                <storeUsage>
                    <storeUsage limit="100 gb"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="50 gb"/>
                </tempUsage>
            </systemUsage>
</systemUsage>

Tomcat Server Configration JVM Arguments:
-XX:+UseParallelOldGC -Xms3g -Xmx3g -XX:NewRatio=3 -XX:PermSize=256m
-XX:MaxPermSize=1024m

Exception in thread "ajp-nio-8009-ClientPoller-1" Exception in thread
"http-nio-8080-Acceptor-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "logback-1" java.lang.OutOfMemoryError: GC overhead
limit exceeded
05-Jun-2018 07:45:09.213 SEVERE
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run
Unexpected death of background thread
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.Arrays.copyOf(Arrays.java:3236)
        at java.util.zip.ZipCoder.getBytes(ZipCoder.java:89)
        at java.util.zip.ZipFile.getEntry(ZipFile.java:316)
        at java.util.jar.JarFile.getEntry(JarFile.java:240)
        at java.util.jar.JarFile.getJarEntry(JarFile.java:223)
        at
org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:98)
        at
org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:256)
        at
org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281)
        at org.apache.catalina.webresources.Cache.getResource(Cache.java:62)
        at
org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216)
        at
org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225)
        at
org.apache.catalina.loader.WebappClassLoaderBase.modified(WebappClassLoaderBase.java:691)
        at
org.apache.catalina.loader.WebappLoader.modified(WebappLoader.java:343)
        at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:287)
        at
org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5447)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1396)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1400)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1400)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1368)
        at java.lang.Thread.run(Thread.java:748)

Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.Arrays.copyOf(Arrays.java:3236)
        at java.util.zip.ZipCoder.getBytes(ZipCoder.java:89)
        at java.util.zip.ZipFile.getEntry(ZipFile.java:316)
        at java.util.jar.JarFile.getEntry(JarFile.java:240)
        at java.util.jar.JarFile.getJarEntry(JarFile.java:223)
        at
org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:98)
        at
org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:256)
        at
org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281)
        at org.apache.catalina.webresources.Cache.getResource(Cache.java:62)
        at
org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216)
        at
org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225)
        at
org.apache.catalina.loader.WebappClassLoaderBase.modified(WebappClassLoaderBase.java:691)
        at
org.apache.catalina.loader.WebappLoader.modified(WebappLoader.java:343)
        at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:287)
        at
org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5447)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1396)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1400)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1400)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1368)
        at java.lang.Thread.run(Thread.java:748)
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at
java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1038)
        at
org.apache.tomcat.util.net.NioEndpoint$Poller.timeout(NioEndpoint.java:933)
        at
org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:753)
        at java.lang.Thread.run(Thread.java:748)
Exception in thread "logback-1" java.lang.OutOfMemoryError: GC overhead
limit exceeded
05-Jun-2018 07:48:35.867 WARNING [ActiveMQ Connection Executor:
tcp://localhost/127.0.0.1:61616@123456]
org.springframework.jms.connection.SingleConnectionFactory.onException
Encountered a JMSException - resetting the underlying JMS Connection
 javax.jms.JMSException: java.io.EOFException
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:54)
        at
org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1952)
        at
org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1971)
        at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:114)
        at
org.apache.activemq.transport.ResponseCorrelator.onException(ResponseCorrelator.java:126)
        at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:114)
        at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:114)
        at
org.apache.activemq.transport.WireFormatNegotiator.onException(WireFormatNegotiator.java:173)
        at
org.apache.activemq.transport.AbstractInactivityMonitor.onException(AbstractInactivityMonitor.java:345)
        at
org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:219)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:392)
        at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:268)
        at
org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:240)
        at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:232)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:215)
        ... 1 more


Can anyone please help me out from this error? I am getting this error after
every 1-2 Hr on server. Please let me know if I am missing something.




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html