aspose file tools*
The moose likes Java in General and the fly likes java -Xms command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java -Xms command" Watch "java -Xms command" New topic
Author

java -Xms command

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
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


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14435
    
  23

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 ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java -Xms command