What types of problems stem from high number of loaded classes?

Currently we are in the process of testing our code for long-ish periods of time, between 4 hours and 24 hours+ non stop. The code is not interactive/user based. I first noticed that our garbage collection times were very high (about 15-25% of our total processing time). I then looked at loaded classes and there is a pretty steady rise over team of loaded classes. At the time of start up it is around 6-7k. After appproximately 4 hours its up around 25k loaded classes. Only 35 or so classes have been unloaded over this time. I'm wondering if the high number of loaded classes occurs because objects aren't fully dereferenced but then when a new object is created it reloads the class. My knowledge of class loading is fairly limited. Any help would be appreciated. Also, if you need more info let me know.
Heap Size: ~2GB
CMSPermGenSweepingEnabled
CMSClassUnloadingEnabled

Take a look at this example and the output:
public class Example {
      * @param args
     public static void main(String[] args) {
          StaticBlocks a = new StaticBlocks();
          StaticBlocks b = new StaticBlocks();
          a = new StaticBlocks();
class StaticBlocks {
     static {
          System.out.println("A static init block. Only happens when class is first loaded.");
          System.out.println("\tInstance init block. Happens every time a class is instantiated.");
     StaticBlocks(){
          System.out.println("\tYou instantiated a class!");
}Output:
A static init block. Only happens when class is first loaded.
     Instance init block. Happens every time a class is instantiated.
     You instantiated a class!
     Instance init block. Happens every time a class is instantiated.
     You instantiated a class!
     Instance init block. Happens every time a class is instantiated.
     You instantiated a class!I'm really not sure where to go from here... hopefully someone else that knows the JVM better can provide some insight.
Take a look at this link. It gives some details on class loading... might help you out a little.
[http://onjava.com/pub/a/onjava/2005/01/26/classloading.html?page=1|http://onjava.com/pub/a/onjava/2005/01/26/classloading.html?page=1]
Edited by: mikeyfreake on Jul 29, 2009 9:40 AM

Similar Messages

  • What type of software do I need to down load from my mac a program from my high definition camcorder the video is 1.5 hours long

    What type of software should I buy to down load from my mac a video from my high def camcorder

    I was only able to find downloads for that camera for Windows.
    No where was I able to find anything for a Mac from Panasonic.
    Allan

  • My downloaded paid for video loses sound every 15 or so minutes, so I have to contstantly log out of iTunes and log back in and then it works - what's the problem (apart from what I've just said), does anybody know?

    My downloaded paid for video loses sound every 15 or so minutes, so I have to contstantly log out of iTunes and log back in and then it works - what's the problem (apart from what I've just said), does anybody know?

    What ISP?
    What router?
    Who made it, what software?
    Is it just the iPad ( Anything else using wifi at your place having problems? ) ?
    Give us something to go on.

  • What types of sort performed by sort method of Array class ?

    I use normal bubble sort and method Array.sort() to sort some given data of an Array and then count the time.But Array.sort() method takes more time then normal bubble sort.
    Can anybody tell me what types of sort performed by sort method of Array class?

    I'm pretty sure that in eariler versions (1.2, 1.3
    maybe?) List.sort's docs said it used quicksort. Or I
    might be on crack.You are actually both correct, and wrong :)
    From the documentation of the sort methods hasn't changed in 1.2 -> 1.4 (as far as I can notice), and the documentation for sort(Object[]) says (taken from JDK 1.2 docs):
    "This sort is guaranteed to be stable: equal elements will not be reordered as a result of the sort.
    The sorting algorithm is a modified mergesort (in which the merge is omitted if the highest element in the low sublist is less than the lowest element in the high sublist). This algorithm offers guaranteed n*log(n) performance, and can approach linear performance on nearly sorted lists."
    So, how could you be correct? The documentation for e.g. sort(int[]) (and all other primities) says:
    "Sorts the specified array of ints into ascending numerical order. The sorting algorithm is a tuned quicksort, adapted from Jon L. Bentley and M. Douglas McIlroy's "Engineering a Sort Function", Software-Practice and Experience, Vol. 23(11) P. 1249-1265 (November 1993). This algorithm offers n*log(n) performance on many data sets that cause other quicksorts to degrade to quadratic performance."
    Your memory serves you well :)
    /Kaj

  • What does one do when they get "secure link to itunes store has failed." got this while doing diagnostics test. clicked on help but just got a blank white window. original problem stems from inability to access the itunes store.

    I got "secure link to itunes store failed" during a diagnostic test. unable to access itunes store and nothing i do works.

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Macbook Pro Video problems stemming from logic board

    Recently my MacBook Pro 15" 2.4 GHZ started acting odd. Doing normal (i.e. nothing too CPU/Video card taxing) the monitor would work fine But it almost always happens immediately when playing a game, WoW for example. Then the display would show random odd characters and colors, almost as if the laptop went into a fit of rage. This almost never happens when surfing the web, using a text editor, etc.
    I called Apple tech support and scheduled an appointment with a local reseller. The attendant there hooked up a device that quickly said something about a "4v video display adapter" not functioning correctly. She informed me that this meant the logic board was bad. I was quoted something about $310, but since I don't have that much to spend atm I didn't ask her for details.
    My only real question at this point is how much does something like this cost to repair/replace? If it is the $310 (before shipping and handling of course) then I'm almost happy. If it turns out to be too much more then I will have to consider relegating my favorite laptop to minor duties and consider buying something else.
    Thanks for any info/help with this.
    Message was edited by: Robomrvn

    Yesterday my laptop became emotionally distressed...my screen went berserk, diagonal lines everywhere. I rushed to the apple store and met with a genius, unfortunately he was unable to help me...I almost dished out $310 to send it in for service.
    After multiple hardware and software diagnostics (Techtool Pro, ASD, Disk utility, Disk warrior, and Drive Genius) I could not find the problem. Then I came to the conclusion that maybe there are new default settings from new Snow Leopard update (10.6.3). MBP’s default fan speed...The GPU was overheating and creating a distorted video signal. How did figure it out you might ask, well I put the laptop in the freezer for 3 min and guess what, the screen went back to normal (Somewhat impatient). Then, I found little app that let's you adjust the fan speed RPM.
    *smcFanControl 2.2.2* Control Intel Mac fans to make it run cooler.
    http://www.macupdate.com/info.php/id/23049
    Also, I will recommend a widget called iStat Pro and it also has a matching iPhone app to monitor your laptop temperature and other important info from afar.
    http://www.macupdate.com/info.php/id/20364/istat-pro
    I am somewhat concerned though, did overheating the GPU cause lasting damage to my logic board?Time will tell. Also, is this a issue that Apple should look into....Yes.

  • Big problems stemming from Google Update Checker -- any ideas?

    Hello,
    My computer is having severe issues after receiving an error message involving Google Update Checker. Please let me know if you have any idea how to solve my problems!
    So yesterday while working on my computer with many programs running (Finder, Safari, Firefox, X11, Matlab, Mail, Bibdesk, TexShop, Desktop Manager, RSS Menu, possibly others) I received an Error Message saying close the following:
    "The Google program Google Update Checker has quit unexpectedly. A report has been made and is ready to be sent", with options to "cancel" or "send report".
    At first, I clicked cancel. Between 30-60 minutes later I received the same message, I pressed cancel, then again, and I pressed "send report". I restarted, shut down then restarted, restarted again and still received the message. Long story short, I kept getting the same error message every half hour or so.
    Finally I went to Applications and manually put "Google Update" in the trash, since the only google software that I explicitly know of on my computer is Google Earth and Gmail Checker, neither of which I had run recently. This turned out to be a good idea, and now Finder continually stops responding and relaunches. It does so frequently enough that I am unable to open the trash to restore the Google Update app, or a finder window at all. Additionally, using Activity Monitor it says that FInder is using 99% of my CPU.
    I tried to restart it in safe mode by holding down "Shift" when booting, but OS X never booted in this circumstance.
    Any help on this matter would be greatly, greatly appreciated.
    Thanks in advance,
    -Patrick

    BDAqua,
    Thanks for setting me straight on the dual cores
    I went ahead and created a new Admin account. When I logged in with that account I had zero problems and everything behaved beautifully. I checked the "login items" on this account and none were present, so I went back to my normal account and removed login items (nine total) one by one, logging out and logging back in between each try. Even with no "login items" present, the problem persisted.
    I went back to Activity Monitor to check which processes were running, and saw the following:
    Activity Monitor
    SystemUIServer
    UniversalAccess.app
    loginwindow
    ATSServer
    pbs
    mdimport
    launchd
    Google Update Helper
    I logged back out and logged into the diagnostic account (again, no problems with Finder) and checked the Active Processes. There were the exact same processes running in that case, too.
    When I opened Console, Finder was already doing its crashing routine, so here is a tiny tidbit from the Console:
    {quote}
    2008-09-13 00:54:25 -0700
    2008-09-13 00:54:26.496 SystemUIServer[957] lang is:en
    Sep 13 00:54:26 computer-name crashdump[963]: Finder crashed
    Sep 13 00:54:28 computer-name crashdump[963]: crash report written to: /Users/username/Library/Logs/CrashReporter/Finder.crash.log
    Sep 13 00:54:29 computer-name crashdump[967]: Finder crashed
    Sep 13 00:54:29 computer-name crashdump[967]: crash report written to: /Users/username/Library/Logs/CrashReporter/Finder.crash.log
    Sep 13 00:54:30 computer-name crashdump[969]: Finder crashed
    Sep 13 00:54:30 computer-name crashdump[969]: crash report written to: /Users/username/Library/Logs/CrashReporter/Finder.crash.log
    2008-09-13 00:54:31.034 Finder[970] * +[NSCFString objectForKey:]: selector not recognized
    2008-09-13 00:54:31.034 Finder[970] * Uncaught exception: <NSInvalidArgumentException> >* +[NSCFString objectForKey:]: selector not recognized
    Sep 13 00:54:31 computer-name crashdump[971]: Finder crashed
    Sep 13 00:54:31 computer-name crashdump[971]: crash report written to: /Users/username/Library/Logs/CrashReporter/Finder.crash.log
    Finder(972,0xafe4c000) malloc: * error for object 0x67f180: incorrect checksum for freed object - object was probably modified after being freed, break at szone_error to debug
    Finder(972,0xafe4c000) malloc: * set a breakpoint in szone_error to debug
    Finder(972,0xafe4c000) malloc: * error for object 0x62c840: double free
    Finder(972,0xafe4c000) malloc: * set a breakpoint in szone_error to debug
    Finder(972,0xafe4c000) malloc: * error for object 0x62c840: incorrect checksum for freed object - object was probably modified after being freed, break at szone_error to debug
    Finder(972,0xafe4c000) malloc: * set a breakpoint in szone_error to debug
    Sep 13 00:54:32 computer-name crashdump[973]: Finder crashed
    Sep 13 00:54:32 computer-name crashdump[973]: crash report written to: /Users/username/Library/Logs/CrashReporter/Finder.crash.log
    Looks pretty ugly to this amateur eye...

  • On sites like facebook, Ebay whn i go to click the home, signin, etc. buttons they are unclickable. What type of problem is this. I can click on other links on those pages ,it seems to be limited to only a few key buttons. please help

    Im not sure where to find trouble shooting info I do not know what the problem is .

    Possibly:
    :Top of Firefox window non-responsive, toolbars non responsive -- also see [http://kb.mozillazine.org/Problematic_extensions Problematic extensions]
    *caused by Yahoo Toolbar -- https://support.mozilla.com/questions/890908
    *caused by Babylon Toolbar -- https://support.mozilla.com/questions/890670
    You might also run into recent problems with Adblock Plus filters involving at least GMail inbox and the need to update filters. [/questions/896267]

  • HT1551 The light on the front of the base is flashing rapidly but I cannot get the system to come on. Book says it is having problems but it does not say what type of problems or how to fix it. Any suggestions?

    The light on the front of my apple tv is flashing rapidly and it  won't send a signal to the TV.  The book says it is having trouble but does not say what it is or how to fix it.  My daughter was watching it last night and I think she turned the tv off without putting it to sleep.  Any suggestions?

    Sorry the news here is not good.  If the light just stays flashing then it is not able to succesfully startup the most basic part of the software.  The only option at this point is to find a USB cable that will let you plug ATV into a computer with iTunes and do a full restore of the system firmware.

  • Movement types data not capturing from BW cube data load

    Dear Experts,
    We are supporting BPC 10.0 Netweaver consolidation activities.
    As a part of the monthly consolidation, we are loading the ECC data available in the BW cubes into BPC.
    0FIGL_C10 cube: From this standard cube we are capturing the movement types (i.e, transaction type details) for the balance sheet items. So opening minus closing should be equal to the movement types.
    ZFIGl_CA10  : From this cube the YTD closing balances of the balance sheet items are captured.
    Opening balances are copied from the last period of the previous year through balance carry forward.
    For a balance sheet itens, we are getting the F99 closing balances correctly captures.
    But, the movement types are not getting captured correctly and the difference between the (opening + movements) - closing is sitting the controls.
    I have tried to check ECC data for these accounts in FS10N and 0FIGL_C10. The monthly data is all flowing properly. But when coming into BPC movement type alone has the problem.
    The transformation and conversion has all worked fine time June 2014 but July 2014 it has incorrect figures.
    No modifications are done for both the file.
    Please find the below attached screen shot and kindly help me on the same.
    Regards,
    Shilpa

    Hi Shilpa,
    I had the same problem in mi last consolidation implementation and the solution in this case was
    implement all the data flow for the 0FI_GL_014,
    Regards,
    Mario

  • What types of issues will come while doing migration from HFM 9.3 to 11.1.1

    Can any body tell me what types of problems will come while migrating Classic app HFM 9.3.1 to EMPA 11.1.1.3? and how to resolve them?

    Yes you will need to export the data from each essbase database and then load into the databases on your 11.1.2 environment.
    The steps outlined in your post are just to move the planning applications relational piece.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • How can you tell what type of Iphone I have from the model number or serial number from the settings menu

    how can you tell what type of Iphone I have from the model number or serial number from the settings menu?

    Type Serial Number from Settings App here https://selfsolve.apple.com/agreementWarrantyDynamic.do it will tell you the type of iPhone.

  • TS1424 Hy. Please help me. what's the problem? when i accessing icloud or find my friend app: The maximum number of free accounts have been activated on this iPhone.

    Hy. please help me. what's the problem? when i accessing icloud or find my friend:The maximum number of free accounts have been activated on this iPhone.

    Then you'll have to use another iOS device or Mac running OS X Lion or higher to create a new account for you to use on your phone.  If you don't have one, perhaps a friend would allow you to create and account on their device (note: this will use one of their three maximum accounts).  To do this, they would need to go to Settings>iCloud, tap Delete Account (which will delete the account from their device but not from iCloud), then allow you to sign back in with your ID to create the new account.  Then tap Delete Account to delete the new account from their device, and finally, sign back in with their iCloud ID to restore their iCloud account to their device.  Then you can sign in with your ID on your phone in Settings>iCloud and use the new account.

  • HT4356 I checked everything out and had no problem printing from IPAD/MINI using the HP Photosmart 6520 printer, but the next day, using same application, my HP did not show, but was looking for the AirPrint Printer, what am I doing wrong?

    Using IPAD2, IPAD MINi, HP photosmartE6520 set up on wireless network.  No problem printing from my devices, but the following day, it is looking for AirPrint printer, why? 

    Hello lenc48,
    Welcome to the HP Forums.
    I see that you are having a few issues when it comes to printing from your mac as well as some two sided printing issues.
    I do have a some suggestions that we can try in the attempt to troubleshoot this issue.
    First off, please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    Please remove the usb cable (if using wireless, disregard this step) from the printer and from the Mac and leave it disconnected until further notice.
    Please click on the first link that will give you instructions on Uninstalling the Printer Software.
    Once the software has been removed, please disable any anti virus protection that you may have on the Mac. 
    The next step we are going to take is downloading the HP Photosmart 6520 e-All-in-One Printer Full Feature Software and Drivers - OS X 10.9 Mavericks.
    The installation will prompt you when to connect the usb cable (You will see a prompt for a wireless connection as well if that is the connection type you would like to use) so please do not connect the cable until prompted to do so.
    If you are still having issues, feel free to write me back or you can contact HP Total care direct.  If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

Maybe you are looking for

  • I need to re-add a folder to iTunes after I deleted it.

    I deleted the folder as I had a problem with how I imported it the first time. Then I deleted the information of those songs from iTunes and my cloud sync.  Now I want to add that folder back in again but iTunes doesn't seem to want to re-add it.  Wh

  • Network computers not showing up

    Cisco 2504 wlc, 1142n ap, windows radius server. When I click on Network, the only computer that shows up is mine. If I am hardwired then everything shows up (Servers, other workstations). Is this a problem with the radius server or something on the

  • Why there are no /dev/mem, /dev/kmem on solaris10 non-global zones?

    Hi All, We have an application on SOLARIS10 that tries to open '/dev/kmem' using 'kvm_open' system call and after that it reads certain kernel virtual memory parameter values by using 'kvm_nlist' system call. In solaris 10 non-global zones these call

  • Is there a way to keep the iPhone from checking one address's email?

    Meaning this. I have five addresses on my iPhone. When I go into the mail app, I only want it to check one of them for new mail. But every time it checks all five. Is there any way I can keep it from checking the four without cutting off each account

  • Skype slowing down quad core Mac with 16GB RAM?!

    Are you serious? This software is lagging out my Mac. It's the only software on here that does this. I can run Logic Pro X, Final Cut Pro, and Facebook at the same time, but I can't do that with Skype. Your software is a peice of **bleep**. It's gett