Operating System - HP-UX
1847694 Members
6001 Online
110265 Solutions
New Discussion

java.lang.OutOfMemoryError

 
GnanaShekar
Regular Advisor

java.lang.OutOfMemoryError

Hi,

A user here is getting the following error while running weblogic.

Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested 42644 bytes for Chunk::new. Out of swap space?
Possible causes:
- not enough swap space left, or
- kernel parameter MAXDSIZ is very small.
Java out of memory messages are marked with pid: 24270 in /var/adm/syslog/syslog.log.

Following are the details of swap space and physical memory.

# swapinfo -ta
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 79252 4115052 2% 0 - 1 /dev/vg00/lvol2
localfs 524288 0 524288 0% 524288 0 1 /paging
reserve - 384356 -384356
memory 8372480 2995324 5377156 36%
total 13091072 3458932 9632140 26% - 0 -

# dmesg | grep Physical
Physical: 8372480 Kbytes, lockable: 6114236 Kbytes, available: 7108184 Kbytes

Please suggest,
Thanks & Regards,
2 REPLIES 2
Matti_Kurkela
Honored Contributor

Re: java.lang.OutOfMemoryError

Are there any memory management options added to the Java virtual machine startup command (in startup scripts of Weblogic)?

The -Xmx option might be the most interesting: it specifies the size of Java memory allocation pool. The default size is 64MB, which can be too small for large Java applications.

If this setting is too small, you might get Java "out of memory" errors regardless of the amount of the real memory.
MK
Steve Steel
Honored Contributor

Re: java.lang.OutOfMemoryError

Hi


www.hp.com/go/java


All sorts of tools and info there for using your application with success


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)