I need to know what is the maximum stack size i.e. -Xss my java program is running with.
Is there a way to find that out from inside my java program code and outside of it.
What i am looking for is to read whatever the current set max limit -Xss (stack sie) is for a particular JVM(not Operating System) i.e. PID; be it default or set explicitly using -Xss parameter, from inside a unix shell script or a java program inorder to setup a monitoring alert script.
A third-party tool may also come handy only if we can use its API inorder to read the stack size inside the unix shell script or a java program.
Kindly help !!!
Regards,
Mohtashim
---------- Post updated at 08:28 PM ---------- Previous update was at 02:52 AM ----------
Quote:
Originally Posted by
mohtashims
I need to know what is the maximum stack size i.e. -Xss my java program is running with.
Is there a way to find that out from inside my java program code and outside of it.
What i am looking for is to read whatever the current set max limit -Xss (stack sie) is for a particular JVM(not Operating System) i.e. PID; be it default or set explicitly using -Xss parameter, from inside a unix shell script or a java program inorder to setup a monitoring alert script.
A third-party tool may also come handy only if we can use its API inorder to read the stack size inside the unix shell script or a java program.
Kindly help !!!
Regards,
Mohtashim
Ooops ... Did I post this in the wrong forum, or we do not have answers on this yet ?
---------- Post updated at 08:28 PM ---------- Previous update was at 08:28 PM ----------
Quote:
Originally Posted by
mohtashims
I need to know what is the maximum stack size i.e. -Xss my java program is running with.
Is there a way to find that out from inside my java program code and outside of it.
What i am looking for is to read whatever the current set max limit -Xss (stack sie) is for a particular JVM(not Operating System) i.e. PID; be it default or set explicitly using -Xss parameter, from inside a unix shell script or a java program inorder to setup a monitoring alert script.
A third-party tool may also come handy only if we can use its API inorder to read the stack size inside the unix shell script or a java program.
Kindly help !!!
Regards,
Mohtashim
Ooops ... Did I post this in the wrong forum, or we do not have answers on this yet ?
---------- Post updated at 08:28 PM ---------- Previous update was at 08:28 PM ----------
Quote:
Originally Posted by
mohtashims
I need to know what is the maximum stack size i.e. -Xss my java program is running with.
Is there a way to find that out from inside my java program code and outside of it.
What i am looking for is to read whatever the current set max limit -Xss (stack sie) is for a particular JVM(not Operating System) i.e. PID; be it default or set explicitly using -Xss parameter, from inside a unix shell script or a java program inorder to setup a monitoring alert script.
A third-party tool may also come handy only if we can use its API inorder to read the stack size inside the unix shell script or a java program.
Kindly help !!!
Regards,
Mohtashim
Ooops ... Did I post this in the wrong forum, or we do not have answers on this yet ?