18
6
|
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?
| ||
feedback
|
30
|
With this code you can get the JVM arguments:
| ||||||||
feedback
|
5
|
HI try this Pass this "-Dname=value"
and ur code should be doing this value=System.getproperty("name");
Regards ..
|