Operating System - HP-UX
1755595 Members
3880 Online
108836 Solutions
New Discussion юеВ

Re: allocation memory problem

 
ITT_ITZ
Occasional Advisor

allocation memory problem

I have a problem with a memory.
I suspect that my 64 bit application when crash when alloc more than 4 Gb of memory.
I need a script that can be alloc more than 4 Gb
8 Gb is perfect .
the kernel parameter and ulimit are ok.
ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4194300
stack(kbytes) 392192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096

4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: allocation memory problem

Hi:

Why do you need a script if your application just does fine running out of memory?

What error (the 'errno' and the message does your application report? I assume that it is a well-behaved one that does.

What does your swap space look like when your application dies?

For what is 'maxdsiz_64' set?

Regards!

...JRF...
Alzhy
Honored Contributor

Re: allocation memory problem

What makes you think your application is 64bit? Are you sure?

Please do:

file nameofexe

It could be you have a 32bit app good sir and even if you re-quadrant, your 32 bit app will not be able to use no more than 3.9GB of memory (total of data, text and stack).

Cheers!
Hakuna Matata.
ITT_ITZ
Occasional Advisor

Re: allocation memory problem

maxdsiz 4294963200 4294963200 Immed
maxdsiz_64bit 4396972765184 4396972765184 Immed
maxrsessiz 8388608 Default
maxrsessiz_64bit 8388608 Default
maxssiz 401604608 401604608 Immed
maxssiz_64bit 2147483648 2147483648 Immed
pa_maxssiz_32bit 83648512 Default
pa_maxssiz_64bit 536870912 Default
shmmax 68719476736 68719476736 Immed
shmmni 2896 2896 Immed
shmseg 1024 1024 Immed


This is my kernel parameter ...

My application is :
file /sas_SNA/CLA/SAS_SW/SASFoundation/9.2/sasexe/sas
/sas_SNA/CLA/SAS_SW/SASFoundation/9.2/sasexe/sas: ELF-64 executable object file - IA64

I suppose that this script call a java that failed over 4Gb.
how can test start of java with more of 4 Gb ?
Dennis Handly
Acclaimed Contributor

Re: allocation memory problem

>I need a script that can be alloc more than 4 Gb

Good luck, only if you have a 64 bit shell.

>the kernel parameter and ulimit are ok.

ulimit is useless for setting sizes for 64 bit apps, what are the kernel parms:
kctune | grep "max.*siz"

Note: maxssiz 401604608
This may be too big for a 32 bit app. Every byte in maxssiz takes away a byte in your heap.

>I suppose that this script call a java that failed over 4Gb.

No scripts here, only executables.

>how can test start of java with more of 4 Gb?

You have to tell java to use a 64 bit version: -d64