Operating System - HP-UX
1752777 Members
6625 Online
108789 Solutions
New Discussion юеВ

insufficient memory error with application

 
SOLVED
Go to solution
VINCENT SPURGEON
Frequent Advisor

insufficient memory error with application

I recive this error from an application:

Pid 4130 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.

It dones NOT happen on a consistant basis.

This same server is running Oracle 8.1.7.

Here are my kernel parameters,
STRMSGSZ 65535
dbc_max_pct 35
max_thread_proc 512
maxdsiz 0X10000000
maxfiles 1024
maxfiles_lim 2048
maxssiz 0X10000000
maxssiz_64bit 0X10000000
maxswapchunks 8193
maxuprc 1024
maxusers 900
msgmax 65535
msgmnb 65535
msgmni 256
msgseg 7168
msgssz 1024
msgtql 1024
ncallout 8192
nflocks 8192
nkthread (20+32*MAXUSERS)
nstrpty 60
num_tachyon_adapters 5
semaem 32767
semmni 1024
semmns 16384
semmnu 2048
semume 256
semvmx 65535
shmmax 0X40000000
shmmni 1024
shmseg 1024

We have recently increased the maxssiz parameters to see if it fixed the above error, and it did not.

Anyone come across the above error, if so what direction should I be proceeding in?
It's only a flesh wound...
3 REPLIES 3
Roger Baptiste
Honored Contributor
Solution

Re: insufficient memory error with application

Hi,

What userid is this application running as?
Check the "ulimit" setting of the userid which
it is using.

Some more things to check:

Swap -> swapinfo -mt

maxdsiz -> increase this parameter

The problem normally occurs if the application is asking for malloc and does not get it.

Have a closer look at your application too.

-raj

Take it easy.
T G Manikandan
Honored Contributor

Re: insufficient memory error with application

Hello,
The HP-UX kernel has a default stack size of 8MB(?) per process.
You need to extend maxssiz and recompile the kernel (and reboot).
You can use SAM to do this.
(While at it, check out the maxdsiz parameter for the maximum amount
of data a program can use. It depends on your applications, if the
default of 64MB is enough or not.)
Tune maxssiz
maxdsiz
for 32 bit
tune maxssiz_64
maxdsiz_64 for 64 bit
T G Manikandan
Honored Contributor

Re: insufficient memory error with application

Hello,
These links might help you.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x29f9c6af36b7d5118ff10090279cd0f9,00.html

check for the description for the kernel parameters using this link
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x29f9c6af36b7d5118ff10090279cd0f9,00.html

Also increase the parameter maxtsiz-shared text segment size as you can avoid a another reboot.

Another thing is that you cannot increase the parameter maxdsiz >2gb using SAM.
So you have to tune the parameter by using the command line
11.0 Manual Kernel Configuration
$ cd /stand/build
$ /usr/lbin/sysadm/system_prep -v -s system

kmtune parm_name=value | kmtune parm_name+value
kmsystem -c y driver_name # these utilities modify the system
file at 11.0
$ /usr/sbin/mk_kernel -s ./system

$ mv /stand/system /stand/system.prev #new for dynamically
linked modules at 11.0
$ mv /stand/build/system /stand/system
$ kmupdate # kmupdate automates moving
the kernel files into the
proper directory

$ shutdown -ry 0