Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

out of memory exception on HP-UX 11.i - help needed

Status
Not open for further replies.

SSG1

Programmer
Jan 17, 2002
48
US
Hi,
I am trying to execute a java program(JDK 1.3.1) on HP-UX 11.i(64 bit machine). Initially, it ran into an error where it was not able to create new threads. It was suggested that the kernel parameter max_thread_procs be increased to 1024. However,after this was changed the program starts up and after a little while exits with "out of memory exception - possible causes
- out of swap space
- too small MAXDSZ "

The swap space lloks fine to me and I increased the value of MAXDSZ too but it has not helped.

It will really helpful if someone can suggest how to fix this problem.

Thanks in advance
 
Just an addition ..The exact error that I am getting is :

Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 324567891 bytes
Possible causes:
- not enough swap space left, or
- kernel parameter MAXDSIZ is very small.


If anyone has seen this error and solved the problem, your help will be highly appreciated. Thanks

 
If you post the output of #swapinfo, the memoy info from #dmesg and the tunable kernel parameter settings we would be able to help further.

Kind Regards
Clare
 
I am posting the requested information. I will appreciate if you can suggest anything that I can do to not get the "out of memory" error.

Thanks in advance.

Here is the output from swapinfo:

Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1638400 996 1637404 0% 0 - 1 /dev/vg00/lvol2
dev 524288 1004 523284 0% 8367268 - 1 /dev/dsk/c2t2d0
reserve - 734108 -734108
memory 740824 42352 698472 6%
total 2903512 778460 2125052 27% - 0 -


Here is the output from dmesg:
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: autofs_link(): File system was registered at index 3.
NOTICE: cachefs_link(): File system was registered at index 5.
NOTICE: nfs3_link(): File system was registered at index 6.
0 sba
0/0 lba
0/0/0/0 btlan
0/0/1/0 c720
0/0/1/0.7 tgt
0/0/1/0.7.0 sctl
0/0/1/1 c720
0/0/1/1.2 tgt
0/0/1/1.2.0 sdisk
0/0/1/1.7 tgt
0/0/1/1.7.0 sctl
0/0/2/0 c720
0/0/2/0.2 tgt
0/0/2/0.2.0 sdisk
0/0/2/0.7 tgt
0/0/2/0.7.0 sctl
0/0/2/1 c720
0/0/2/1.2 tgt
0/0/2/1.2.0 sdisk
0/0/2/1.7 tgt
0/0/2/1.7.0 sctl
0/0/4/0 asio0
0/0/5/0 asio0
0/1 lba
0/2 lba
0/3 lba
0/4 lba
0/4/0/0 c720
0/4/0/0.7 tgt
0/4/0/0.7.0 sctl
0/4/0/1 c720
0/4/0/1.7 tgt
0/4/0/1.7.0 sctl
0/5 lba
0/6 lba
0/7 lba
8 memory
160 processor
btlan: Initializing 10/100BASE-TX card at 0/0/0/0....

System Console is on the Built-In Serial Interface
Entering cifs_init...
Initialization finished successfully... slot is 9
Logical volume 64, 0x3 configured as ROOT
Logical volume 64, 0x2 configured as SWAP
Logical volume 64, 0x2 configured as DUMP
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 3276800
Dump device table: (start & size given in 1-Kbyte blocks)
entry 0000000000000000 - major is 31, minor is 0x12000; start = 117600, size = 1638400
Starting the STREAMS daemons-phase 1
Create STCP device files
$Revision: vmunix: vw: -proj selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 buil
d' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108' Wed Nov 8 19:24:56 PST 2000 $
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 1048576 Kbytes, lockable: 740128 Kbytes, available: 857836 Kbytes


Some of the tunable kernel parameters are as follows:
max_thread_proc 3000
maxdsiz 1073741824
maxdsiz_64bit 1073741824
maxfiles 4096
maxfiles_lim 4096
maxssiz 8388608
maxssiz_64bit 8388608
maxuprc 512
maxusers 32
msgmap 1026
msgmax 65535
msgmnb 65535
msgmni 256
msgseg 32767
msgssz 16
msgtql 1024
nbuf 0
ncallout 6000
nfile 30000
nflocks 8192
ninode 3596
nkthread 6000
nproc 2068
semmni 512
shmmax 966367642
shmmni 300
shmseg 120
 
Hi SSG1,

I've done quite a lot of reading and found the following information for you to consider regarding your java error.

You might see the following java error if you are running out of heap space:

java.lang.OutOfMemoryError <<no stack trace available>>
java.lang.OutOfMemoryError <<no stack trace available>>
Exception in thread &quot;main&quot;

It descibes how to set heap size.

This information is echoed by a thread on the HP forums, but also gives you a tool to help. This is the link


Hope that this leads you in the right direction.

Kind Regards
Clare
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top