Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java -Xms command

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi what is the default heap set by java soft?
and how can i view the default size?
and i amusing java -Xms100 for increasing the size so what is 100 here is it 100MB or 100KB?


explain me please
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15279
39
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the documentation of the java launcher.

I don't know what happens if you specify "-Xms100". According to the docs, that would mean 100 bytes, but it must be a multiple of 1024. In any case, it's not right and if you mean 100 megabytes, you should specify "-Xms100m".

The default depends on the operating system. For Sun Java 5 on Windows it is 2 MB according to the documentation.
[ July 22, 2006: Message edited by: Jesper Young ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic