aspose file tools
The moose likes Performance and the fly likes Jvm command Line Parameters or options Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Jvm command Line Parameters or options" Watch "Jvm command Line Parameters or options" New topic
Author

Jvm command Line Parameters or options

berender mavi
Greenhorn

Joined: Feb 18, 2011
Posts: 29
Hi All,

Recently i was asked a question in an interview that when we provide command line parameter like -Xms or -Xmx while running a java program How jvm actually reads those parameters or How does jvm parse the parameters ?


Thanks.





Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 4734
    
    7

berender mavi wrote:Recently i was asked a question in an interview that when we provide command line parameter like -Xms or -Xmx while running a java program How jvm actually reads those parameters or How does jvm parse the parameters ?

I don't understand the question. Do you mean how does the JVM (and I'm not at all sure that it is the JVM) recognize those parameters?

Perhaps you should provide the question exactly as it was asked.

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
berender mavi
Greenhorn

Joined: Feb 18, 2011
Posts: 29
Yes winston my question is same as you guessed it.Sorry if my post was not clear to you

how does the JVM recognize those parameters?
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 4734
    
    7

berender mavi wrote:how does the JVM recognize those parameters?

Well, they all begin with "-X"; I suspect that's a help.

Winston
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Jvm command Line Parameters or options
 
Similar Threads
Can We Control How IE starts an Applet?
Heap size
Why Just run in my PC ?
passing arguments from command-line to Point(x,y)
Can I Start new JVM/Application