aspose file tools*
The moose likes Java in General and the fly likes java override runtime setting?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java override runtime setting??" Watch "java override runtime setting??" New topic
Author

java override runtime setting??

kirrran kir
Greenhorn

Joined: Aug 05, 2006
Posts: 7
Hi

Any help is appreciated.

is it possible to override the switches provided to the jvm programmatically?
Eg., if jvm is started like this

java -Xms64m myprog, then is it possible to set the "Xms" value inside my java program during run-time.

thanks
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

No, not in general. Switches like -Xmx set up the structure of the Java heap, which is already initialized and operating by the time your code gets control.


[Jess in Action][AskingGoodQuestions]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Here at the Ranch, we consider it quite rude to post the same question to more than one forum. Please Read this before posting again. I've deleted the other two copies of this topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java override runtime setting??