• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
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
 
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.
 
Bartender
Posts: 9559
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: 9559
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
 
permaculture is giving a gift to your future self. After reading this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!