How to get vm arguments from inside of java application?

Posted by Dmitriy Matveev on Stack Overflow See other posts from Stack Overflow or by Dmitriy Matveev
Published on 2009-09-29T06:22:57Z Indexed on 2010/03/30 5:23 UTC
Read the original article Hit count: 542

Filed under:
|
|

Hello, I need to check if some option which can be passed to JVM is explicitly set or is it have default value.
To be more specific: I need to create one specific thread with higher native stack size than the default one, but in case then user want to take care of such things by himself by specifying -Xss option I want to create all threads with default stack size (which will be specified by user in -Xss option). I've checked classes like java.lang.System and java.lang.Runtime, but these aren't giving me information about vmargs. Is there any way to get information I need?

© Stack Overflow or respective owner

Related posts about java

Related posts about jvm