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 546681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:53:34+00:00 2026-05-13T10:53:34+00:00

I’ve read a few articles, and I understood the following (please correct me and/or

  • 0

I’ve read a few articles, and I understood the following (please correct me and/or edit the question if I’m wrong):

The java heap is segmented like this:

  • Young Generation: objects that are created go here, this part is frequently and inexpensively garbage collected

  • Old Generation: objects that survive the garbage collections of the Young generation go here, this area is garbage collected less frequently and using a more CPU demanding process/algorithm (I believe it’s called mark-sweep)

Edit: as stated by another user, PermGen is not a part of the region called heap

  • PermGen: this area is filled of your app classes metadata and many other things that do not depend on the application usage.

So, knowing this… why does my PermGen space grows when the app is under heavy load? For what I said before this space should not incrementally fill in spite of the app load, but as I said in the beginning probably I’m wrong about some assumptions.

In fact if the PermGen space is growing, is there a way of garbage collect or reset it?

  • 1 1 Answer
  • 1 View
  • 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-05-13T10:53:35+00:00Added an answer on May 13, 2026 at 10:53 am

    Actually, in Sun’s JVM Permanent Generation (PermGen) is completely separate from the heap. Are you sure you aren’t looking at the Tenured Generation? It would be suspicious indeed if your Permanent Generation kept growing.

    If your perm gen IS growing constantly, it is a difficult area to dig into. Generally it should grow when new classes are loaded for the first time (and potentially certain uses of reflection could also cause this). Interned strings are also stored in perm gen.

    If you happen to be on Solaris, you could use jmap -permstat to dump out perm gen statistics, but that option does not appear to be available on Windows (and potentially other platforms). Here is the documentation on jmap for Java 6

    From Sun’s guide on JConsole (which will let you view the size of these pools):

    For the HotSpot Java VM, the memory
    pools for serial garbage collection
    are the following.

    • Eden Space (heap): The pool from which memory is initially allocated
      for most objects.
    • Survivor Space (heap): The pool containing objects that have survived
      the garbage collection of the Eden
      space.
    • Tenured Generation (heap): The pool containing objects that have existed
      for some time in the survivor space.
    • Permanent Generation (non-heap): The pool containing all the reflective
      data of the virtual machine itself,
      such as class and method objects. With
      Java VMs that use class data sharing,
      this generation is divided into
      read-only and read-write areas.
    • Code Cache (non-heap): The HotSpot Java VM also includes a code cache,
      containing memory that is used for
      compilation and storage of native
      code.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I would like to run a str_replace or preg_replace which looks for certain words
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have thousands of HTML files to process using Groovy/Java and I need to

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.