java.lang.OutOfMemoryError in CompileThread0 on HP-UX Java 2 Software Development Kit (SDK)
 Technote (troubleshooting)
 
Problem(Abstract)
When the IBM® WebSphere® Application Server security component is enabled, a Java™ exception similar to the following occurs:

Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 536870920 bytes

This exception appears in the stdout or stderr file of the Java Virtual Manager (JVM) process that encountered the problem. The number of bytes requested is typically large, meaning greater than 64 MB.

The problem does not occur If security is disabled.
 
Cause
Possible causes
  • Not enough swap space left

  • Kernel parameter MAXDSIZ is very small.

Stack_Trace: error while unwinding stack
( 0) 0xcb030988 vm_exit_out_of_memory__FiPCc + 0x1e0 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 1) 0xcafaa0d0 grow__5ArenaFUl + 0x90 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 2) 0xcafaa440 Arealloc__5ArenaFPvUlT2 + 0xf8 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 3) 0xcb2d1460 grow__10Node_ArrayFUi + 0x80 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 4) 0xcb29b05c build_loop_late__14PhaseIdealLoopFP4NodeR9VectorSetR9Node_ListPC14PhaseIdealLoop + 0x36c [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 5) 0xcb299264 __ct__14PhaseIdealLoopFR12PhaseIterGVNPC14PhaseIdealLoop_2 + 0x9f0 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 6) 0xcb23cd14 Optimize__7CompileFv + 0x43c [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 7) 0xcb2399dc __ct__7CompileFP5ciEnvP7ciScopeP8ciMethodibT5_2 + 0x6a0 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 8) 0xcb22122c compile_method__10C2CompilerFP5ciEnvP7ciScopeP8ciMethodib + 0xec [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
( 9) 0xcb18e190 invoke_compiler_on_method__13CompileBrokerSFP11CompileTask + 0x1f0 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
(10) 0xcb18dc98 compiler_thread_loop__13CompileBrokerSFv + 0x190 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
(11) 0xcb157250 compiler_thread_entry__FP10JavaThreadP6Thread + 0x20 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
(12) 0xcb15452c run__10JavaThreadFv + 0x3d4 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
(13) 0xcb0f59e0 _start__FPv + 0xe8 [/opt1/WebSphere/AppServer/java/jre/bin/../lib/PA_RISC2.0/server/libjvm.sl]
(14) 0xc0699df0 __pthread_create_system + 0x420 [/usr/lib/libpthread.1]
 
Resolving the problem
Alternatives for resolving the problem
  1. Disable security.
  2. Disable the HotShot compiler. The command line argument for doing this is -Xint.
  3. Use the Just in Time (JIT) compiler instead of the HotSpot compiler. The command line argument to do this is -classic.
  4. Upgrade the Developer Kit to Java 2 SDK 1.3.1_08 or later.
  5. Use the Sun JSSE libraries instead of the IBM JSSE libraries.

Notes:

  • Raising the -Xmx setting will probably not resolve this problem.
  • Switching to -client mode will probably not address this problem.
  • This is very similar to SunBug 4724509 for the Sun JDK and might be the same problem on the HP developer kit.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java SDK
Operating system(s): HP-UX
Software version: 5.0
Software edition:
Reference #: 1156025
IBM Group: Software Group
Modified date: Apr 1, 2006