• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

how much of the physical memory can JVM use?

 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic