• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Garbage collection

 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)What happens when JVM runs out of memory?How does it communicate this to java Application?

2)How much memory is allocated to JVM?
Is it same under all platforms.

3)What is the priority of Garbage collector thread?
[ May 23, 2006: Message edited by: Girish Nagaraj ]
 
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What happens when JVM runs out of memory?How does it communicate this to java Application?



An OutOfMemoryError exception is thrown.


How much memory is allocated to JVM?
Is it same under all platforms.



It depends on the configuration that you set when you run the JVM. The java application launcher let you set a couple of flags to control that:

-Xmsn: Specify the initial size, in bytes, of the memory allocation pool. The default value is 2MB.

-Xmxn: Specify the maximum size, in bytes, of the memory allocation pool. The default value is 64MB.


What is the priority of Garbage collector thread?



I have no idea. Can I ask why you want to know?
 
Girish Nagaraj
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just of interest.
 
Girish Nagaraj
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Edwin.

Just of interest.
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this is out of SCJP's scope.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic