Operating System - HP-UX
1828584 Members
2656 Online
109982 Solutions
New Discussion

Exception in thread "CompileThread0" java.lang.OutOfMemoryError

 
Rafael_4
New Member

Exception in thread "CompileThread0" java.lang.OutOfMemoryError

Hi,
I running my application over OC4J release 1 in HP UX and get the following error:
Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 33554440 bytes
Possible causes:
- not enough swap space left, or
- kernel parameter MAXDSIZ is very small

My environment is:
java version "1.3.1.05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.05-020425-12:07)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.05-JPSE_1.3.1.05_20020425 PA2.0, mixed mode)

OC4J 1.0.2.2.1



9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

This indicates that a request to allocate dynamic memory was denied by the OS.

Run these two commands and post the results and we can probably help.

1) sysdef
2) swapinfo -t

Also, how much physical memory is in this box?
If it ain't broke, I can fix that.
oiram
Regular Advisor

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

Hi,

Check the value of these kernel parameters too:
max_thread_proc and nkthread
Steve Steel
Honored Contributor

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

Hi
public class OutOfMemoryError
extends VirtualMachineError
Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.




if you are on 11.x

Go to
http://www.hp.com/products1/unix/java/

get

HPjconfig is a Java configuration tool for tuning your HP-UX 11.0 or 11i PA-RISC or Itanium system kernel parameters to match the characteristics of your application. HPjconfig provides kernel parameter recommendations tailored to your Java enterprise services (Web server, Application Server, etc.) and HP-UX hardware platform.

HPjconfig is a pure Java Application that runs on the HP-UX SDK or JRE for the Java??? 2 Platform version 1.2.2 or later (for which HP-UX 11.00 or later is required).

All HP-UX PA-RISC and Itanium systems are currently supported.


Also

HPjtune is a tool that helps you analyze garbage collection performance by graphically displaying instrumentation data from the garbage collector.


This may be useful




Steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)
isopkim_2
New Member

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

Hi,
I have same problem.
If you soleve the problem,
Would you let me know it?
Thanks in advance.

My environment is
java version "1.3.1.05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.05-020425-12:07)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.05-JPSE_1.3.1.05_20020425 PA2.0, mixed mode)


maxdsiz 2147483648
max_thread_proc 2048 nkthread 15226
ishtiaq ahmed
New Member

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

Hi ,
I have the same problem :
Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 33554440 bytes
My environment is:
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Server VM (build 1.3.1-b24, mixed mode)

Operating system : Windows 2002.

I would appreciate your help.

Thanks
IA

Vball23
Advisor

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

I'm getting the same problem:

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

This is with Dynamo Application Server from ATG. RP8400 with 12 750mhz and 20gb ram. Here's my output from sysdef and swapinfo -t:

ux27(root)/> sysdef
NAME VALUE BOOT MIN-MAX UNITS FLAGS
acctresume 4 - -100-100 -
acctsuspend 2 - -100-100 -
allocate_fs_swapmap 0 - - -
bufpages 312934 - 0- Pages -
create_fastlinks 0 - - -
dbc_max_pct 5 - - -
dbc_min_pct 5 - - -
default_disk_ir 0 - - -
dskless_node 0 - 0-1 -
eisa_io_estimate 768 - - -
eqmemsize 110 - - -
file_pad 10 - 0- -
fs_async 0 - 0-1 -
hpux_aes_override 0 - - -
maxdsiz 524288 - 0-503866 Pages -
maxdsiz_64bit 524288 - 1024-1073479679 Pages -
maxfiles 4096 - 30-2048 -
maxfiles_lim 4096 - 30-2048 -
maxssiz 98048 - 0-98048 Pages -
maxssiz_64bit 262144 - 4-262144 Pages -
maxswapchunks 16384 - 1-16384 -
maxtsiz 131072 - 0-503859 Pages -
maxtsiz_64bit 262144 - 1024-1073741823 Pages -
maxuprc 4096 - 3- -
maxvgs 256 - - -
msgmap 4115 - 3- -
nbuf 175746 - 0- -
ncallout 30016 - 6- -
ncdnode 150 - - -
ndilbuffers 30 - 1- -
netisr_priority -1 - -1-127 -
netmemmax 0 - - -
nfile 63798 - 14- -
nflocks 4116 - 2- -
ninode 34976 - 14- -
no_lvm_disks 0 - - -
nproc 4116 - 10- -
npty 500 - 1- -
nstrpty 250 - - -
nswapdev 10 - 1-25 -
nswapfs 10 - 1-25 -
public_shlibs 1 - - -
remote_nfs_swap 0 - - -
rtsched_numpri 32 - - -
sema 0 - 0-1 -
semmap 4114 - 4- -
shmem 0 - 0-1 -
shmmni 1600 - 3-1024 -
streampipes 0 - 0- -
swapmem_on 1 - - -
swchunk 4096 - 2048-16384 kBytes -
timeslice 10 - -1-2147483648 Ticks -
unlockable_mem 16664 - 0- Pages -



ux27(root)/> swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/swap2
dev 25165824 0 25165824 0% 0 - 0 /dev/vg01/devswap2
reserve - 14186056 -14186056
memory 19317204 986224 18330980 5%
total 52871636 15172280 37699356 29% - 0 -
Channing Benson
New Member

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

This reply is for Brett Jenkins who had very small values for maxdsiz and maxdsiz_64.

Make those bigger (like 2G or so) and try again.
Vball23
Advisor

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

They are actually bigger. Kmtune shows the following:

maxdsiz 0x80000000 - 0X80000000
maxdsiz_64bit 0x80000000 - 0X80000000
maxfiles 4096 - 4096
maxfiles_lim 4096 Y 4096
maxqueuetime - - 0
maxssiz 401604608 - 401604608
maxssiz_64bit 1073741824 - 1073741824
maxswapchunks 16384 - 16384
maxtsiz 0x20000000 Y 0X20000000
maxtsiz_64bit 0x40000000 Y 0X40000000

which works out to 2gb for maxdsiz.

So why does sysdef show less, or do I not know how to interpret it?
RAC_1
Honored Contributor

Re: Exception in thread "CompileThread0" java.lang.OutOfMemoryError

ps -efx|grep java

check java heap sizes. If they are very high, lower them a bit and try.

Also kernel parameters--
Increase them.

max_thread_proc and nkthread

There is no substitute to HARDWORK