Operating System - Linux
1753731 Members
4547 Online
108799 Solutions
New Discussion юеВ

insufficient memory or swap space problem

 
Amber Goel
Occasional Contributor

insufficient memory or swap space problem

Hi,

I am working on HP-UX 64bit OS.When I am running a program My program is getting kiled with the following messages.
This is a small program which read the data from Inter server queues and fill some structurs.
when My program going to assign memeory to the structur using meset, then program gets crash.

> Pid 6071 received a SIGSEGV for stack growth failure.
> Possible causes: insufficient memory or swap space,
> or stack size exceeded maxssiz.
> os: 6071 Memory fault(coredump)


Current memory stack size is 16777216 i.e 16 K and maxssize_64bit size is 262144.
Please help in this regards.
3 REPLIES 3
likid0
Honored Contributor

Re: insufficient memory or swap space problem

You should also have a look at your swap.

With #swapinfo -atm you can see if you are running out of swap, and you can't reserve swap for the process.

Here I found some info about swap,adn the swapinfo command:

http://www.hpuxtips.es/?q=node/80


Hope it helps.

Windows?, no thanks
Venkatesh BL
Honored Contributor

Re: insufficient memory or swap space problem

Your process may just be a victim of heavy system load. Do you see any messages in the system log files?
Dennis Handly
Acclaimed Contributor

Re: insufficient memory or swap space problem

>My program is getting killed with the following messages.

This is likely a coding error, a recursive stack overflow.

>My program going to assign memory to the structure using memset, then program gets crash.

Are you sure you have the right address and length?

>Current memory stack size is 16777216 i.e 16 K and maxssiz_64bit size is 262144.

You need to have consistent units. Is this 16 Mb and 256 Mb?
16 Mb may be a little too small.