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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:46:36+00:00 2026-05-14T21:46:36+00:00

My app shows rising ‘Old Generation’/’Tenured Generation’ size, and when this reaches the max

  • 0

My app shows rising ‘Old Generation’/’Tenured Generation’ size, and when this reaches the max limit for ‘Old Gen’, then suddenly PermGen size increases.
Here are my generation sizings:

-Xmx1200m -Xms1200m -Xmn450m -XX:MaxPermSize=600m -XX:+UseParallelGC

This is on 32 bit Fedora so can’t have a bigger heap than this.

The app is not doing any fancy classloading, though it is using Spring IOC and Hibernate, the Spring App-context.xml defines some 1000 Beans.

This app starts with 175MB PermGen, which steadily increases to ~250MB in few hrs, stays that way till Tenured Generation reached ~780 MB, then permgen jumps to ~500MB while Old Gen drops to ~500MB.

This forces me to restart the App on daily basis, and gives me real scare of looming OutOfMemory Error.. Any insights would be very helpful.

Thanks
Gala101

13/May: Could someone please throw light on what happens when ‘Old Gen’ is garbage collected?
Does the jvm put collections from ‘Old Gen’ into PermGen?
My PermGen spike comes only when collection happens from ‘Old Gen’, also decrease in OldGen size closely matches increase in PermGen size.
PS: I don’t do any live deploy/undeploy as that’s sure to eat up PermGen.
Below is a current spanshot from my monitoring page: (the committed part had just jumped from ~250 MB to 500 MB)

    PS Perm Gen
Type    Non-heap memory
Usage   init = 16777216(16384K) used = 254453736(248489K) committed = 504954880(493120K) max = 629145600(614400K)
Peak Usage  init = 16777216(16384K) used = 254453736(248489K) committed = 504954880(493120K) max = 629145600(614400K)
Collection Usage    init = 16777216(16384K) used = 252421536(246505K) committed = 504954880(493120K) max = 629145600(614400K)
  • 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-05-14T21:46:37+00:00Added an answer on May 14, 2026 at 9:46 pm

    I would follow leonm’s advice to analyze what takes so much memory. I bet you have some kind of nasty memory leak.

    You say you don’t do any fancy classloading, but Hibernate generates some classes on the fly for you.
    Do you use some AOP features (e.g. from Spring AOP module?).

    Basically, if you are running out of PermGen space, then it seems like your application keeps on producing new classes (because it’s classes which are stored in PermGen).

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

Sidebar

Related Questions

My app shows a picture and then an mp3 plays over it, describing the
My app shows a full-screen UIView, which is black, opaque, alpha=1. This should result
The default WCF MaxConcurrentCalls=16. My demo app shows this to be 32. Is this
My app shows this in the 4.3.1 simulator                   and this in the 5.0 simulator.
my app shows a map with annotations fetched from core data. Currently I do
My app shows a list of items, where each line is an item title
The Contacts app shows a button on the side of the screen that acts
How can I download files to my trigger.io app? My app shows offline data,
Trying to call a SAP SOAP Web Service from a generated sudzc app shows
my app icon shows fine in the IOS simulator and the launch image is

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.