How to diagnose increase in permanent generation?

Hello,
My team is observing the following problem which is important to us and that we
did not yet manage to identify:
We observe from the gc traces (see extracts below) that the permanent memory
size keeps increasing slowly (to the point were an java.lang.OutOfMemoryError is
thrown) but the -verbose:class traces do not show anymore class loading after
the system "warmup" phase. This was observed using Sun's JDK version 1.4.1.01.04 on
HPUX, with the following JVM options java -verbose:gc
-Xverbosegc:file=/tmp/gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
-XX:+PrintHeapAtGC -Xms256M -Xmx256M -XX:NewSize=16M
-XX:MaxNewSize=16M -XX:SurvivorRatio=2 -XX:+UseConcMarkSweepGC
I would need help to answer the following questions:
1- what other actions than class loading could possibly explain an increase of
used space in the permanent generation? The GC FAQ says "The permanent
generation is used to hold reflective of the VM itself such as class objects and
method objects". Could use of JNI also affect this space?
2- how can I configure or instrument the JVM 1.4.1 to track cause of increase of
used space in the permanent generation? The program we are testing uses 500 MB
RAM and we often lack physical space on the server to make use of standard
profiler tools such as JProbe or -hprof standard JVM option: HPUX JVM complains
about insufficient MAXDSIZE kernel parameters that is already set to 512 MB, and
plenty swap space is available)
3- In which version are the "-XX:+TraceClassloading and
-XX:+TraceClassUnloading" options supported? I read from
http://java.sun.com/docs/hotspot/gc1.4.2/faq.html that the options
"-XX:+TraceClassloading and -XX:+TraceClassUnloading" should trace class
loading, however they don't seem available under JDK 1.4.1 on Windows, and they
are not either documented in the toolsdocs for JDK 1.4.2
4- What does -verbose:class option really shows? The toolsdoc says
"-verbose:class Display information about each class loaded.". Would this also
display classes dynamically generated such as dynamic proxies (or classes
loading from custom classloaders)? I suspect this only displays class loaded
from the system classloader...
Many thanks for your help,
Regards,
Guillaume Berche.
19735.5: [DefNew: 10511K->2379K(12288K), 0.1241661 secs] 160415K->152624K(258048K) Heap after GC invocations=11590:
Heap
def new generation total 12288K, used 2379K [77c00000, 78c00000, 78c00000)
eden space 8192K, 0% used [77c00000, 77c00000, 78400000)
from space 4096K, 58% used [78400000, 78652e48, 78800000)
to space 4096K, 0% used [78800000, 78800000, 78c00000)
concurrent mark-sweep generation total 245760K, used 150245K [68c00000, 77c00000, 77c00000)
CompactibleFreeListSpace space 245760K, 61% used [68c00000, 77c00000)
concurrent-mark-sweep perm gen total 43772K, used 33105K [64c00000, 676bf000, 68c00000)
CompactibleFreeListSpace space 43772K, 75% used [64c00000, 676bf000)
} , 0.1262338 secs]
19737: [GC  {Heap before GC invocations=11590:
Heap
def new generation   total 12288K, used 10571K [77c00000, 78c00000, 78c00000)
  eden space   8192K, 100% used [77c00000, 78400000, 78400000)
  from space   4096K,  58% used [78400000, 78652e48, 78800000)
  to   space   4096K,   0% used [78800000, 78800000, 78c00000)
concurrent mark-sweep generation total 245760K, used 150245K [68c00000, 77c00000, 77c00000)
CompactibleFreeListSpace space 245760K,  61% used [68c00000, 77c00000)
concurrent-mark-sweep perm gen total 43772K, used 33106K [64c00000, 676bf000, 68c00000)
CompactibleFreeListSpace space  43772K,  75% used [64c00000, 676bf000)
} , 0.1262338 secs]

I did check the JDK bug database, and you are right, String.intern() does indeed seem to increase size of permanent generation (argnn!)
Have you experienced cases in which "internalised" String are prevented by the JVM 1.4.1 from being GCed?
I saw an old bug on JDK 1.1 similar to that:
http://developer.java.sun.com/developer/bugParade/bugs/4497186.html
Thanks for your help,
Guillaume.

Similar Messages

  • I am trying to locate an email that I deleted and assume should be in the trash.  However my trash now only goes back a few days - how can I increase the number of days the trash remains accessible for

    I am trying to locate an email that I deleted and assume should be in the trash.  However my trash now only goes back a few days - how can I increase the number of days the trash remains accessible for.

    StevieJ wrote:
    I am trying to locate an email that I deleted and assume should be in the trash.  However my trash now only goes back a few days - how can I increase the number of days the trash remains accessible for.
    Check Mail Preferences, Accounts tab. Select the account, then the Mailbox Behaviors tab. See if you have it set to Permanently erase deleted messages when: One week old. (or less)

  • How to CHANGE (in a permanent way) FONT (and SIZE) in Finder columns ?

    Hello dear friends,
    How I can change the font (and also its size) of text in Finder Window columns ?
    A condensed font would allow seeing more text (for example, Helvetica Condensed Light).
    Does anybody have an idea ?
    Thank you very much for responding.
    With my kind regards
    Olivier Herrbach
    *PS : I also posted this topic :*
    *How can I increase/change (in a permanent way) column(s) width(s) in Finder window ?*
    I always have to CTRL-click at the bottom of columns to resize them,
    and I have to do it every time a new Finder window opens …
    *It's the same problem, as I need to see and read more text.*
    I think I'm not alone to wish that …

    How I can change the font (and also its size) of text in Finder Window columns?
    Sorry, you can't. Apple provides no method of changing the system font away from Lucida Grande. TinkerTool will let you change some fonts, but only affects applications written in Cocoa. It cannot change the system font.
    How can I increase/change (in a permanent way) column(s) width(s) in Finder window?
    Hold down the Command+Option keys. Click and hold the mouse button on the bottom of any column where you see the little double vertical lines. Drag left or right to change all columns at once to the same size. I'm pretty sure this is on a window by window basis, so you'd have to do it for each one you want to change, including open and save dialogue boxes. But once set, that window will remember your settings.

  • I recently downloaded and installed OS X Mavericks. The font size on the display is smaller. How can I increase the font size. Also everything seems to be running a tad slower. Will this speed up?

    How can I increase the font size in all my displays after it shrank after installing OS X Mavericks?
    How can I increase the speed after installing OS X Mavericks? It is slower now.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    See http://kb.mozillazine.org/Zoom_text_of_web_pages
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.0 r45
    * Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Garbage collector tuning. Permanent generation

    Hi all,
    I'm learning about garbage collector tuning.
    Why my system always gives for the permanent generation 8192K?
    And why is always full with 8191K? Maybe it is full because my application manages an internal java cache but ....
    Does it is OK that is always full?, how can I change its size?
    [Perm : 8191K->8191K(8192K)], 0.1922860 secs]
    I'm using Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    Linux SuSE
    I'm using the following command
    java -XX:+PrintGCDetails -XX:NewRatio=3 -Xss256k -Xms128m -Xmx256m
    [Full GC [Tenured: 0K->2206K(98304K), 0.1920700 secs] 24643K->2206K(127808K), [Perm : 8191K->8191K(8192K)], 0.1922860 secs]
    [GC [DefNew: 26299K->1168K(29568K), 0.0566740 secs] 28505K->3374K(127872K), 0.0567870 secs]
    [GC [DefNew: 27472K->3264K(29568K), 0.0391920 secs] 29678K->6757K(127872K), 0.0392870 secs]
    [GC [DefNew: 29567K->3264K(29568K), 0.0756940 secs] 33061K->12212K(127872K), 0.0757840 secs]
    Thaks,

    Hi!
    In the permanent generation you have data like class information and static strings. This data is usually never garbage-collected since it never becomes garbage anyway (it is "permanent data"). Per default, the JVM starts with a very small perm gen (somewhere around 4 MB, I believe, but this may be system specific). The default max size for the perm gen is 64 MB on most systems.
    If your application needs more space in the perm gen than initially allocated, the JVM will enlarge the perm gen until your data fits into the perm gen (or the max size is reached). In your case your applications seems to need 8 MB perm space, therefore the JVM enlarges the perm gen until it is 8 MB large.
    So, to answer your question, it's totally ok that your perm gen is 8 MB large and always full. There is no need to change its size in your case. If you still want to do it, you can use -XX:PermSize=<initalSize> and -XX:MaxPermSize=<maxSize>. Setting -XX:PermSize=8m may speed up your application start a little since the JVM allocates enough space right in the beginning and doesn't need to enlarge the perm gen afterwards.
    Nick.

  • How can I increase my storage capacity on my macbook air

    How can I increase the storage capacity of my macbook air?

    Oh I know you were implying archival backup software.  I was just throwing in the "on the cheap"  archive option.
    Back when I worked at a large unnamed institution things got archived to the power of 10 at multiple locations, the mere notion of "losing anything" was an impossibility short of a black hole opening up on earth. Even the archival managers thought it was insane redundancy, but thats the way it was.
    I work off that same premise myself. I cant lose 20+ years of work.
    I coined this term about 11 years ago.
    Decentralized Omnipresent Data (D.O.D.)
    Backing up data to:
    Multiple HD in multiple locations
    On multiple servers on multiple continents, private and public websites, anonymous data farms. (very easy actually)
    Burned onto archival optical and magnetic storage
    Have unclassified data possessed by multiple people in multiples places.
    When your data becomes both everywhere and nowhere, accessible to all, destructible by none, cannot be collected together or permanently retrieved under any circumstances, you have Decentralized Omnipresent Data (D.O.D.) protection rivaling that of large governments.

  • On my HP Touchsmart 310 PC how do I increase the inactivity time on the display?

    On my HP Touchsmart 310 PC how do I increase the inactivity time on the display?   Windows 7, 64-bit

    Hi,
    Please try Control panel > Power options > Change when the computer sleeps
    Hope this helps.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • On 11in Macbook Air (10.10), how do I increase resolution of built-in display to 2560 by 1600 pixels?

    On 11in Macbook Air (10.10), how do I increase resolution of built-in display to 2560 by 1600 pixels?
    It can be accomplished when an external display is connected, so I expect it can be done without an external display.

    You're getting full native resolution 1366 x 768 on your internal display, nothing more.
    http://www.apple.com/macbook-air/specs.html
    April 2014 11" MacBook Air Specs:
    DISPLAY: 11.6-inch (diagonal) LED-backlit glossy widescreen display with support for millions of colors
    Supported resolutions:
    1366 by 768 (native), 1344 by 756, and 1280 by 720 pixels at 16:9 aspect ratio; 1152 by 720 and 1024 by 640 pixels at 16:10 aspect ratio; 1024 by 768 and 800 by 600 pixels at 4:3 aspect ratio
    GRAPHICS & VIDEO SUPPORT:
    Intel HD Graphics 5000
    Dual display and video mirroring: Simultaneously supports full native resolution on the built-in display and up to 2560 by 1600 pixels on an external display, both at millions of colors
    http://www.everymac.com/systems/apple/macbook-air/specs/macbook-air-core-i7-1.7- 11-early-2014-specs.html

  • I use iwires to connect macbook to lg tv to watch netflix.How do I increase screen size on tv.I have tried display options on settings- not working

    I use iwires to connect macbook to lg tv to watch netflix.How do you increase screen size on rv.I have tried display settings ,but not working

    I would guess that the HDMI port on your mac is for output only - no input, and that's what your'e attempting to do when you attach the mac to your xbox. I looked in Mactracker and it lists the HDMI port as video output for both the 13" Retina MacBook Pro and the 15" Retina MacBook Pro (your post didn't say which one you have), so looks like that is the issue..

  • My performance is very slow when I run graphs. How do I increase the speed at which I can do other things while the data is being updated and displayed on the graphs?

    I am doing an an aquisition and displaying the data on graphs. When I run the program it is slow. I think because I have the number of scans to read associated with my scan rate. It takes the number of seconds I want to display on the chart times the scan rate and feeds that into the number of samples to read at a time from the AI read. The problem is that it stalls until the data points are aquired and displayed so I cannot click or change values on the front panel until the updates occur on the graph. What can I do to be able to help this?

    On Fri, 15 Aug 2003 11:55:03 -0500 (CDT), HAL wrote:
    >My performance is very slow when I run graphs. How do I increase the
    >speed at which I can do other things while the data is being updated
    >and displayed on the graphs?
    >
    >I am doing an an aquisition and displaying the data on graphs. When I
    >run the program it is slow. I think because I have the number of
    >scans to read associated with my scan rate. It takes the number of
    >seconds I want to display on the chart times the scan rate and feeds
    >that into the number of samples to read at a time from the AI read.
    >The problem is that it stalls until the data points are aquired and
    >displayed so I cannot click or change values on the front panel until
    >the updates occur on the graph. What can I do to be a
    ble to help
    >this?
    It may also be your graphics card. LabVIEW can max the CPU and you
    screen may not be refreshing very fast.
    --Ray
    "There are very few problems that cannot be solved by
    orders ending with 'or die.' " -Alistair J.R Young

  • In mail, how do you increase font sizes in a reply.  Cannot find things like "underline", "italic" etc either.  Where are they?  Entourage was easier!!

    In mail, how do you increase font sizes in a reply.  Cannot find things like "underline", "italic" etc either.  Where are they?  Entourage was easier!!

    Preferences/Compsing/set to Rich Text (only then you can use bold etc).
    Then Rightclick the toolbar in Mail, and clcik Customize the toolbar.
    Put the icons (with or without text) that you want on your toolbar.

  • An app that i did not purchase and was part of a recent case on my account is still in my download que. How do i delete it permanently?

    I have an app in my download queue that was part of a recent account fraud investigation. How do I delete it permanently?
    Thank you

    Contact iTunes Support:
    http://apple.com/support/itunes/contact/

  • How do I create a permanent backup of all my iTunes data, and movies?

    I'm confused about how to effectively backup and share my data.  And know others must have wrestled with this one too - so help please!
    Our family works across several platforms (PC, MacBookPro, 2 iPads, iPods, 2 iPhones and appleTV) and want to have a method to effectively share and save (i.e. permanently backup) our data (iTunes, other documents and movies).   We use HomeSharing, iCloud and iTunes Match, which work most of the time.  All the devices are linked to a single iTunes library.
    I understand that iCloud serves to synchronise data and share it between devices. Great.  But how do I create a permanent backup of the data?  I could get a third party online service (e.g. Box.net) or use external harddrives.  Is there a simpler approach that apple provides, that I've missed?  I'd lke to make teh solution a simple to use (i.e. upload data and share it), reliable without paying the earth! 

    Have you considered this...
    Backup iTunes to an External Drive  >  http://support.apple.com/kb/HT1751
    And there is this  >  ..Most commonly used backup methods

  • Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this

    Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this?

    First, uninstall "SuperTV" (whatever that is) according to the developer's instructions. It isn't working and it's filling the log with noise.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • How to diagnose dead battery vs. something more serious?

    I'm in the 11th month of ownership of an MBA, purchased brand new last year.  128MB model.
    My battery, I believe, is dead but I'm not sure how to diagnose the matter.
    Here's what's lead me to this conclusion:
    MBA charger light stays off when plugged in (not dim, but off).   I've had the dim light issue as well, earlier this year, and Apple replaced the charger.  This time, however, the light stays completely off.
    Battery icon in top right corner tells me that no charger is plugged in.  The icon is in battery mode. 
    Battery charge keeps decreasing steadily in % value despite charger being plugged in, indicating that battery is continually discharging.
    My wife has an MBP, and I've used her 85W charger on my MBA with the same result... i.e charger light stays off.   I know that the MBP charger is in good health as it charges the MBP with no issues (orange light).
    I've used my MBA charger on her MBP, and it charges the MBP just fine!!! (orange light)
    I've done an SMC and NVRAM reset on the MBA, which hasn't affected the situation. 
    Since I'm on 15% charge on the MBA, I've shut it down and have booked an appointment with Apple to have it looked at.
    In the mean-time, I'm hoping to get some clues from fellow MacBook users on this forum.
    I've read somewhere that if it is indeed the battery that's faulty, then once the charger is unplugged, the MBA should turn off immediately.  This isn't the case for me... I'm able to run off battery (whatever tiny amount of charge I have left) with the charger unplugged.
    Hence, I've ruled out the charger being faulty.  I'm not so sure that the battery is faulty.  I'm thinking the issue might lie elsewhere... maybe the magsafe connector on the MBA?
    I should also mention that when I opened the lid on the MBA earlier this evening, before noticing this charging issue, the screen flickered brightly once.  The screen looked and operated normally after the flicker.  Not sure if there's a connection.  I'm beginning to think there is.
    I should also add that, even though the MBA has been a pleasure to use, the past 11 months haven't been trouble-free... which adds to the suspicion that the issue might indeed be somewhere deeper.
    A brief history of "issues":
    About a month or so into ownership... my fan, one day, decided to suddenly spin up to full RPMs and stayed at that speed for an eternity.  I'm used to the fan speed steadily going up in direct relation to the CPU temp.   However, the CPU temp this time was 35C the entire time (according to iStat Menus)... i.e. the MBA was "stone cold".  It made no sense for the fan to be on full-blast.  In addition, I had nothing running. No intensive software.  Not even Safari.  Just "Finder".   Turning the MBA off naturally caused the fan to stop.  However, the moment I powered it back on again, the fan came back on at full speed again.
    An SMC reset fixed the issue, and I was good to go.  This issue occurred again a few months later, but I solved it right away with the SMC reset.
    After another month or so I noticed, while listening to music via headphones that were plugged into the MBA, that I could hear an electric "hum" in the headphones.  Then all of a sudden the hum went away.  I discovered that the hum was present only when I physically touched the metal case of the MBA and went away as soon as I removed my hand.   I mentioned this to a Genius bar... err... genius and he seemed perplexed.  He wasn't able to offer an answer.
    I've also noticed that when the MBA is charging, and I run my finger-tips over the MBA's metal surface that I feel static.  When the charger is unplugged, I no longer feel the static.   Again the genius didn't have an answer.  He probably thought I was weird.
    I'm thinking my MBA might have "grounding" issues, but am no expert in this field.   With the latest charging issues, however, I'm leaning towards this theory again.
    Thoughts are welcome.
    Regards
    MrAir

    No clues, it is very apparent you have a hardware problem and it is not the battery. If it was the battery the computer would not be running as you say the charger is not charging the battery.
    There is a charging curcuit that has more then likely failed. You have done the correct thing, take it in and get it fixed before your warranty runs out.

Maybe you are looking for

  • PDF Form Emaling.... Sometimes

    We have set up a form using LiveCycle ES 8. The form is a PDF and "sends" via email. The email does send out automatically (in Outlook) I wish the email would open and then I could write a note in the body. But instead the dialogue box comes up and t

  • Opening the native (HDD) PDF files in FF 22

    I tried to open my pdf files located in my HDD in FF 22, but with no success. Always, when I drag the file onto the browser window, it popups an "Enter name of file to save to..." window. My aim is to use an online dictionary, which opens a balloon o

  • JMSQueueAppender: posting logged message several times

    package com.citco.banking.nxg.logger; * Copyright 1999-2005 The Apache Software Foundation. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy o

  • Math.atan2 Code Explanation Help

    Hello guys This is a piece of code from AS3 Making Things Move I tried to understand how this code works, but failed Please explain this code Thanks in advance

  • Is airplay mirroring not working for macbook air?

    Bought my macbook in March of this year and Apple TV last month. Upgrated to mountain lion and airplay mirroring is producing a black screen. Anyone know how to get this working