• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java -Xms 512m

 
eric sato
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic