Operating System - HP-UX
1752388 Members
5898 Online
108788 Solutions
New Discussion

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

 
senthil_kumar_1
Super Advisor

Possible cause : insufficient memroy or swap space or stack size exceeded maxsize in HPUX 11.00

Hi All,

 

We are facing the issue "Possible cause : insufficient memroy or swap space" in one of HPUX server (11.00) while running some scripts..

 

Please find the attachment for more info...

 

 

Please help me to resolve the issue

9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: Possible cause : insufficient memroy or swap space or stack size exceeded maxsize in HPUX 11.00

Your maxssize kernel parameter is too small.

 

On HP-UX 11.0, you need to increase the value, regen the kernel and then reboot your server.

Dennis Handly
Acclaimed Contributor

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

>We are facing the issue "insufficient memory or swap space"

 

What is your current maxssiz value?

Do you have a corefile that you can debug to see if you have a recursive stack overflow?

 

>Your maxssiz kernel parameter is too small.

 

Or there is a programming error that causes a recursive stack overflow.

Nighwish
Frequent Advisor

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

hi

 

 

Check:

 

kctune | grep -i maxssiz
maxssiz                       134217728  134217728           Immed
maxssiz_64bit                1073741824  1073741824          Immed

 

swapinfo -tam

 

Regards.

senthil_kumar_1
Super Advisor

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

Hi All,

 

Please find the details...

 

#kmtune | grep -i maxssiz
maxssiz              400000000
maxssiz_64bit        1073741824


#swapinfo -tam
             Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev        1024       0    1024    0%       0       -    1  /dev/vg00/lvol2
dev        3000       0    3000    0%       0       -    1  /dev/vg00/lvol5
reserve       -     166    -166
memory     3141    2632     509   84%
total      7165    2798    4367   39%       -       0    -

 

 

 

My Questions:

 

1)How to find the core dump of this error? Please tell me the command.

 

2)How to increase maxssiz and how much value? Please give me detailed steps.

 

3)Please let me know how to this by SAM and is it safe then manually editing kernel parameters?

 

 

Dennis Handly
Acclaimed Contributor

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

>maxssiz              400,000,000

 

This is way too much maxssiz, unless you are running a poorly written Fortran program.

 

>1)How to find the core dump of this error?

 

Do you see a recent file called "core" somewhere?  In your app/ directory?

 

>2)How to increase maxssiz and how much value?

 

This isn't your problem and you should really decrease it when you have a downtime.  You have a recursive stack overflow.

 

>3) Please let me know how to this by SAM and is it safe then manually editing kernel parameters?

 

You just change the kernel parm value.

senthil_kumar_1
Super Advisor

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

Hi Dennis,



my questions:

1)Could you please suggest the correct value?

2)If we are changing kernel parameter from SAM, Will it take backup of old kernel?


3)What precaution steps have to be done before changing kernel parameters such as taking backup of kernel?


4)How much critical changing kernel parameters?


5)How to boot through old kernel if we are facing any issues?
Dennis Handly
Acclaimed Contributor

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

>1) Could you please suggest the correct value?

 

Since this isn't your problem, you could leave it alone for now.

 

>2) If we are changing kernel parameter from SAM, Will it take backup of old kernel?

 

It should.

 

3) What precaution steps have to be done before changing kernel parameters such as taking backup of kernel?

 

Yes, they recommend that.

 

>4) How much critical changing kernel parameters?

 

Critical to do it?  Or to fix your problem?

 

>5) How to boot through old kernel if we are facing any issues?

 

There should be a "prev" kernel.

senthil_kumar_1
Super Advisor

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

Hi,

 

 

I need to solve this issue as a HPUX admin.

 

 

Could you please suggest correct value.

Dennis Handly
Acclaimed Contributor

Re: Possible cause: insufficient memory or swap space or stack size exceeded maxssiz in HP-UX 11.00

>I need to solve this issue as a HP-UX admin.

 

This must be solved by the developer, not sysadmin.

What is the name of the executable that gets Signal 11?

If you have a core file and you can get a gdb stack trace, then we may be able to help at sysadmin level.