On Thu, Feb 15, 2018 at 10:02 AM, Kanduri, Rakesh Kumar X. -ND <rakesh.kumar.x.kanduri....@abc.com> wrote: > Hi All, > > We are facing Out Of Memory issue in our Tomcat Server v8.5.20 as shown in > the below logs. > Note: Though the error message says insufficient memory, we checked for the > available physical memory on the server and there is sufficient amount of > free memory available at the time of this Error. > The same set of applications are working fine without any issues on > TC/7.0.35.B.RELEASE; JRE/1.7.0_17-b02 > Hence any insights and recommendations to fix this issue will be very > helpful. Thank you. > > Error: > Exception in thread "JMX server connection timeout 16183" Hibernate: update > ONAIRAUTOMATION.IMAGINE_SCHEDULES_AUDIT_TBL set TIME_STARTED=?, TIME_ENDED=?, > FILENAME=?, SCHEDULES_COUNT=?, SCHEDULE_ELEMENTS_COUNT=?, AS_RUN_COUNT=?, > STATUS=?, ERROR_MESSAGE=? where AUDIT_ID=? > java.lang.OutOfMemoryError: Metaspace > Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: > Metaspace
You're running out of space in the JVM's Metaspace region (where class metadata is stored), not system memory. Metaspace is roughly equivalent to PermGen from Java 7 and prior versions. The exception means that you have more classes being loaded in the JVM than will fit in your currently defined Metaspace. My first suggestion would be to try increasing the size of Metaspace via the JVM argument MaxMetaSpaceSize. I'd also suggest reading up on the exception in the Oracle documentation for Java 8, here https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/memleaks002.html (search for Metaspace). > # > # There is insufficient memory for the Java Runtime Environment to continue. > # Native memory allocation (malloc) failed to allocate 1380048 bytes for > Chunk::new > # An error report file with more information is saved as: > # /tmp/hs_err_pid11058.log > > Regards, > Rakesh Kumar Kanduri > Disney ABC Television Group > Cognizant Technology Solutions Ltd. | > www.cognizant.com<http://www.cognizant.com/> > US Dial: +1 973 368 9600 Ext 670002 > Offshore Direct: +91-40-66690-002 | Cell: +91 9985429546 > DATG IT ESB On Call # +1 818 869 2690 > Email - > datg.dl-esb.infrastruct...@disney.com<mailto:datg.dl-esb.infrastruct...@disney.com> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org