Operating System - HP-UX
1833685 Members
3756 Online
110062 Solutions
New Discussion

Re: Is it possible to monitor or measure the stack size of a process

 
C.O'Shea
New Member

Is it possible to monitor or measure the stack size of a process

We have problem with an Ingres 2.6 database on a HP-UX 11.11 model 9000/800/N4000-55
ulimit output shows:

time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303

Is it possible to monitor or measure the stack size of an ingres process?
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Is it possible to monitor or measure the stack size of a process

Hi,
glance would be probably your best option to monitor stack size growth.

If systems maxssiz is too small, change with SAM and reboot.

Sometimes the problem is an indication of coding problem.
Don Morris_1
Honored Contributor

Re: Is it possible to monitor or measure the stack size of a process

Glance, or if you wish to do it programatically, you can use the pstat interfaces (in this case pstat_getprocvm() called until you get the one for PS_STACK and that's all of your information).
Dennis Handly
Acclaimed Contributor

Re: Is it possible to monitor or measure the stack size of a process

What is the problem you have? A stack overflow message? Your 128 MB stack should be plenty big.
Peter Godron
Honored Contributor

Re: Is it possible to monitor or measure the stack size of a process

Hi,
could you please complete the thread by awarding points to helpful answers and summarising the solution for you.
This will help resolution of similar problems in the future.

Please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !