GC tuning

25 Oct

In general the memory should be managed in generation.The garbage collection should be occurs in each generations.The list of generations are:

  1. young
  2. tenured
  3. perm

YOUNG

Objects are allocated in a generation for younger objects or the young generation,When the young generation fills up it causes a minor collection.Minor collection means it cleanup the young generation.

TENURED

Some surviving objects are moved to atenured generation. When the tenured generation needs to be collected there is a major collection that is often much slower because it involves all live objects.

PERM

It holds the class definitions. Doesn`t need GC.The loading and unloading will be involved with in this generation.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: