IntelliJ Java IDE
The moose likes Java in General and the fly likes java -Xms 512m Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "java -Xms 512m" Watch "java -Xms 512m" New topic
Author

java -Xms 512m

eric sato
Ranch Hand

Joined: Oct 01, 2002
Posts: 37
hi all,
This is short and simple question,to set maximum Java heap size in JVM, actually it draws memmory from RAM or Hardisk or both? pls advice. It this question dependency on OS level?
I'm running on Unix OS.
Thanks in advance.
Regards,
sato


If you can't change the direction the the wind, change your sail.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Java allocates its heap from memory. But any modern operating system will virtualise memory, i.e. use the harddisk to simulate more memory than you actually have. Application programs such as Java are not aware at all whether the memory they think they have is actually physical RAM or virtual memory on disk. And the OS will manage this dynamically anyway, so the situation can change from moment to moment.
- Peter
 
 
subject: java -Xms 512m
 
Threads others viewed
wait() and notify()
J2EE 1.3 on Mac OS X
Getting the user name who has accessed a file available in Shared Location
About Java Tiger
making a process user/system process
Two Laptop Bag

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture