• Post Reply Bookmark Topic Watch Topic
  • New Topic

how much of the physical memory can JVM use?  RSS feed

 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I read in a journal that the default amount of memory available to SUN's JVM is 60%, how true is that?

Thanks
 
Gavin Tranter
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could be wrong, but i would read that as the Sun JVM limiting the applets address space to 60%, not a limit on the Sun JVM.
 
Joe Ess
Bartender
Posts: 9439
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is polite to point out where in the article you found that figure. On page 6, the author states:
Sun�s JVM allowed the applet to allocate up to 60% of
the physical memory, but not more.
Software-injected anywhere-in-physical-memory faults:
We were able to allocate N = 61,181 objects on
a machine with 128 MB RAM. . .

(emphisis mine)

Since the JVM by default has a default maximum heap size of 64Mb (java command documentation), the 60% figure is just about right.
[ September 19, 2008: Message edited by: Joe Ess ]
 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Joe
what Gavin highlighted is correct, the journal does say for "applet"...

Sun�s JVM allowed the applet to allocate up to 60% of
the physical memory, but not more.

[ September 19, 2008: Message edited by: H Melua ]
 
Joe Ess
Bartender
Posts: 9439
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by H Melua:
Sorry Joe
what Gavin highlighted is correct, the journal does say for "applet"...


It doesn't matter. The default is the default (though with JDK 1.6, the default has changed).
 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Joe Ess:


It doesn't matter. The default is the default (though with JDK 1.6, the default has changed).


thanks very much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!