Stack usage of an application
Dear Team,
I would like find a maximum stack usage of an application. Kindly let me know how it is possible. I hope are there are some standard tool/solution available for it. Please reply me back. Thanking you, T.Senthil Nathan |
you do so with the ulimit command
see the bash man page |
Dear Mr.taxtropel & Linux users
I just saw the man page of ulimit with stack usages, it is just displaying the maximum allowable limit for an application. Sorry my question is, how do you find, how much stack is used/utilized by an application with in the given limit. Kindly reply me back. Thanking you, T.Senthil Nathan. |
reply, oh, that's easy...first you need to find the programs PID
(process ID) do that with ps Code:
ps -A next go to the /proc folder Code:
cd /proc Code:
cd 17109 Code:
cat status Code:
Name: X hope this helps |
Ok, is it a peak usage of stack or the current utilization of stack ?. Any way I would like to know the peak utilization of stack. It would be better, if it displays in terms of byte level granularity.
Thanking you, T.Senthil Nathan. |
Dear Mr.taxtropel & Linux users,
Basically I would like to plot a graph which contains time in X-Axis and Stack usage in Y-Axis over the time. Please let me know how you can track the stack usage for an application over the time, the application may run only for few milliseconds. Kindly reply me back ASAP. Thanking you, T.Senthil Nathan. |
All times are GMT -5. The time now is 08:44 PM. |