• Post Reply Bookmark Topic Watch Topic
  • New Topic

java -Xms command  RSS feed

 
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
Sheriff
Posts: 16028
87
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 ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!