Breaking News
Home / Java / Java Issues / java.lang.OutOfMemoryError: nativeGetNewTLA

java.lang.OutOfMemoryError: nativeGetNewTLA

Exception

2011-11-22 13:07:43,988[IncomingMailProcessor]ERROR IncomingMailProcessor -Error while processing mail
javax.ejb.EJBException: EJB Exception: : java.lang.OutOfMemoryError: nativeGetNewTLA
        at sun.reflect.UTF8.encode(UTF8.java:18)
        at sun.reflect.ClassFileAssembler.emitConstantPoolUTF8(ClassFileAssembler.java:85)
        at sun.reflect.AccessorGenerator.emitBoxingContantPoolEntries(AccessorGenerator.java:326)
        at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:337)
        at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)
        at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:301)
        at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1191)
        at java.io.ObjectStreamClass.access$1300(ObjectStreamClass.java:47)
        at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:347)
        at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)
        at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:253)
        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1015)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1337)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1309)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1252)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1057)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)<!>

Insight

This error OutOfMemory is a very classic problem that more or less ever JVM suffers as the size of the application grows where large new objects are created in succesion before the old ones can be freed, resulting in out of Memory. In order to solve the application code need to reviewed to find out which component is causing the memory leak or is holding memory that should be freed. At times increasing heap space temporarily can solve the problem. Take garbage collection dumps and analying heap can provide more insight.

[pb_builder]

Check Also

Data truncation: Data too long for column – JDBC

Issue Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column ‘columname‘ at row 1     …

Advertisment ad adsense adlogger