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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
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
Ranch Hand

Joined: Feb 18, 2011
Posts: 31
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: 7032
    
  16

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?
Artlicles by Winston can be found here
berender mavi
Ranch Hand

Joined: Feb 18, 2011
Posts: 31
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: 7032
    
  16

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://aspose.com/file-tools
 
subject: Jvm command Line Parameters or options
 
Similar Threads
Can We Control How IE starts an Applet?
passing arguments from command-line to Point(x,y)
Heap size
Why Just run in my PC ?
Can I Start new JVM/Application