R28.0.1 - OutOfMemoryError and Crash in Production Server running Solaris (Doc ID 1388706.1)

Last updated on JANUARY 03, 2012

Applies to:

Oracle JRockit - Version: R28 and later   [Release: JRockit and later ]
Oracle Solaris on SPARC (64-bit)

Symptoms

Getting the following OutOfMemoryError in Solaris production environment:

<May 11, 2011 3:09:12 PM PDT> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: class allocation, 51052560 loaded, 50M footprint in check_alloc (classalloc.c:213) 268 bytes requested.
Java heap 1G reserved, 1G committed
Paged memory=18014398506784784K/66983800K.
Your Java heap size might be set too high.
Try to reduce the Java heap s.
java.lang.OutOfMemoryError: class allocation, 51052560 loaded, 50M footprint in check_alloc (classalloc.c:213) 268 bytes requested.
Java heap 1G reserved, 1G committed
Paged memory=18014398506784784K/66983800K.
Your Java heap size might be set too high.
Try to reduce the Java heap s
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
at sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:76)
Truncated. see log file for complete stacktrace
>

Below is the stack trace from JRockit dump file:

Thread Stack Trace:
at findNext+340(refiter.c:633)@0xffffffff7e63b9dc
at findNextToReturn+144(refiter.c:302)@0xffffffff7e63bb18
at refIterFillFromFrame+343(refiter.c:340)@0xffffffff7e63bf18
at trProcessLocksForThread+55(roots.c:615)@0xffffffff7e6464fc
at get_all_locks+79(javalock.c:1265)@0xffffffff7e527874
at javaLockConvertLazyToThin+139(javalock.c:1760)@0xffffffff7e527a94
at
RJNI_jrockit_vm_Locks_checkAndTransferLazyLocked+427(javalock.c:2032)@0xfffff
fff7e528ca0
at <unknown>(???.c)@0xffffffff60133538
at <unknown>(???.c)@0xffffffff613b0c10
at <unknown>(???.c)@0xffffffff61751530
at <unknown>(???.c)@0xffffffff62117b44
at <unknown>(???.c)@0xffffffff616e54b0
at <unknown>(???.c)@0xffffffff6191b18c
at <unknown>(???.c)@0xffffffff603b0258
at <unknown>(???.c)@0xffffffff62548c74
at <unknown>(???.c)@0xffffffff6093cbc4
at <unknown>(???.c)@0xffffffff6093c9b4
at <unknown>(???.c)@0xffffffff61851a18
at <unknown>(???.c)@0xffffffff617d82c0
at <unknown>(???.c)@0xffffffff619b2684
at <unknown>(???.c)@0xffffffff61986b14
at <unknown>(???.c)@0xffffffff61fc1c1c
at <unknown>(???.c)@0xffffffff60353478
at <unknown>(???.c)@0xffffffff61966a7c
at <unknown>(???.c)@0xffffffff6192354c
at <unknown>(???.c)@0xffffffff6068d19c
at <unknown>(???.c)@0xffffffff6049a834
at <unknown>(???.c)@0xffffffff6049a2fc
at <unknown>(???.c)@0xffffffff6049a2b0
at <unknown>(???.c)@0xffffffff6049a1a8
at <unknown>(???.c)@0xffffffff604990e4
at <unknown>(???.c)@0xffffffff60002c7c
at stubsCallC2JavaStub+23(stubs_sparc.c:86)@0xffffffff7e673f94
at stubsCallJava+339(stubcall.c:150)@0xffffffff7e6716c0
at stubsCallJavaV+395(stubcall.c:276)@0xffffffff7e671a38
at javaInvokeVirtualVoidMethod+43(javacalls.c:178)@0xffffffff7e522300
at thread_stub+151(lifecycle.c:780)@0xffffffff7e5c6e28
-- Java stack --
at
jrockit/vm/Locks.checkAndTransferLazyLocked(Ljava/lang/Object;)I(Native
Method)
at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:962)[optimized]
at
java/io/ByteArrayOutputStream.write(ByteArrayOutputStream.java:91)[optimized]

at java/io/OutputStream.write(OutputStream.java:58)[optimized]
at
com/certicom/tls/record/Util.writeUInt8(ILjava/io/OutputStream;)V(Unknown
Source)[inlined]
at
com/certicom/tls/record/MessageEncryptor.compressEncryptSend(I[BII)V(Unknown
Source)[optimized]
at
com/certicom/tls/record/MessageEncryptor.compressEncryptSend(I[B)V(Unknown
Source)[inlined]
at
com/certicom/tls/record/MesII[BIILcom/certicom/tls/interfaceimpl/ProtocolVers
ion;)V(Unknown Source)[optimized]
at com/certicom/tls/record/ReadHandler.processRecord()I(Unknown
Source)[optimized]
at com/certicom/tls/record/ReadHandler.readRecord()I(Unknown
Source)[optimized]
at com/certicom/tls/record/ReadHandler.read([BII)I(Unknown
Source)[optimized]
at com/certicom/io/InputSSLIOStreamWrapper.read([BII)I(Unknown Source)
at
weblogic/socket/SSLFilter.isMessageComplete(SSLFilter.java:202)[optimized]
at
weblogic/socket/SocketMuxer.readReadySocketOnce(SocketMuxer.java:868)[optimiz
ed]
at weblogic/socket/SocketMuxer.readReadySocket(SocketMuxer.java:816)
at
weblogic/socket/DevPollSocketMuxer.processSockets(DevPollSocketMuxer.java:120
)
at weblogic/socket/SocketReaderRequest.run(SocketReaderRequest.java:29)
at
weblogic/socket/SocketReaderRequest.execute(SocketReaderRequest.java:42)
at weblogic/kernel/ExecuteThread.execute(ExecuteThread.java:145)
at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:117)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace

Environment : WLS 9.2.3, Oracle JRockit(R) Version R28.0.1-21-133393-1.5.0_24-20100512-2127-solaris-sparcv9 , Oracle Solaris 10 SPARC (64-bit).

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms