Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8487305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:11:56+00:00 2026-06-10T21:11:56+00:00

From this IBM article on handling memory leaks in Java : The garbage collector

  • 0

From this IBM article on handling memory leaks in Java :

The garbage collector starts at the root nodes, classes that persist
throughout the life of a Java application, and sweeps through all of
the nodes that are referenced. As it traverses the nodes, it keeps
track of which objects are actively being referenced. Any classes that
are no longer being referenced are then eligible to be garbage
collected. The memory resources used by these objects can be returned
to the Java virtual machine (JVM) when the objects are deleted.

What are the classes that persist through out the life of a Java application ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:11:57+00:00Added an answer on June 10, 2026 at 9:11 pm

    What you are asking is also called Garbage Collection Roots. From Yourkit’s documentation of GC roots:

    There are several kinds of GC roots. One object can belong to more than one kind of root. The root kinds are:

    Class – class loaded by system class loader. Such classes can never be unloaded. They can hold objects via static fields. Please note that classes loaded by custom class loaders are not roots, unless corresponding instances of java.lang.Class happen to be roots of other kind(s).

    Thread – live thread

    Stack Local – local variable or parameter of Java method

    JNI Local – local variable or parameter of JNI method

    JNI Global – global JNI reference

    Monitor Used – objects used as a monitor for synchronization

    Held by JVM – objects held from garbage collection by JVM for its purposes. Actually the list of such objects depends on JVM implementation. Possible known cases are: the system class loader, a few important exception classes which the JVM knows about, a few pre-allocated objects for exception handling, and custom class loaders when they are in the process of loading classes. Unfortunately, JVM provides absolutely no additional detail for such objects. Thus it is up to the analyst to decide to which case a certain "Held by JVM" belongs.

    You can also read it from The Truth About Garbage Collection (dated).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From this post : I would first suggest that you optimize your dependentObservable (a.k.a.
In Java, am I able to extend from a generic supertype? According to this
From IBM Link : The JDK 1.0 release included an earlier native-method interface that
I've got a really strange error. This is the stacktrace that is coming from
I am having this annoying problem of loading DB2 driver from a JAVA application
This was taken nearly verbatim from IBM's Mastering Grails series. DateTagLib.groovy: class DateTagLib {
I am trying to run this snippet from http://www.ibm.com/developerworks/linux/library/l-prog3.html on a python 2.6 runtime.
We have IBM websphere mq set up that accepts message from outside world and
From this context: import itertools lines = itertools.cycle(open('filename')) I'm wondering how I can implement
From this link the author suggested: table.setWidth(100%, true); table.setColumnWidth(nameColumn, 35.0, Unit.PCT); table.setColumnWidth(addressColumn, 65.0, Unit.PCT);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.