Mem'-gc and seralization- need help.

Hi,
I have an application that uses serialization to send object through sockets.
The application runs great but after few hours the memory increases dramatically.
It looks like the memory increases according to the size of the object I�m passing.
I�ve tried to assign to the read object null and call System.gc(), the memory does not change. Furthermore the read object is a local object in a function that ends after every read.
Any suggestions?

You may still have a link to the object buried somewhere. Do they even come near a Collection which could be holding them.
1. Sometimes it's not a obvious as it would seem. You could put something into a hashtable, and then something else comes along and gets a reference to it. Even if you get rid of the first reference and the Hashtable, it will still be referenced.
2. Some things could be held by an object, held by an object, which is still references. Chains like that cna be tricky.
3. Finally, some objects reference more than you think. If you take a substring from a really long String and get rid of the reference to the really long String, your substring is still actually holding a reference back to it. If you get a lost of Strings and keep parts of them, that could cause the problem.

Similar Messages

  • When I try to install iTunes 10.5, it says, "There is a problem with this Windows Installer package.  A program run as part of the setup did not finish as expected.  Contact your support personnel or package vendor."  I have Windows XP and I need help.

    5, it says, "There is a problem with this Windows Installer package.  A program run as part of the setup did not finish as expected.  Contact your support personnel or package vendor."  I have Windows XP and I need help.

    After reading all these posts, one by one did not resolve my problem until I got the very end.  Regardless of what step would resolve your problem, these are the steps I would recomment to everyone for a what seems to be a safe and fool-proof upgrade to iTunes 10.5.
    1. Stand alone upgrade to the latest Quicktime version
    2. Go to control panel and "change" then select repair to the following applications in the order specified by the post on Oct 27. (Notice I skipped Quicktime because it had been upgrade manually,and Bonjour did not have a "repair" option)
    iTunes; Apple Software Update: Mobile Device Support; Apple Applications Support
    Some of these applications may not appear if they do not apply to your configuration (no iPhone, or no iPad, or other apple devices).
    Once all updated, I did not need to restart nor launch any applications, I simply went straight into the 10.5 upgrade, and where it normally got stuck, this time the installation continued for a while longer until it completed successfully.
    Great work everyone who contributed!  Thank you very much!

  • My daughters IPod was stolen and I need help trying to locate it?

    And I dont know how to do this and really need help

    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                         
    Reporting a lost or stolen Apple product                                        
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • I'm new to SQL Server Integration Services and I need help on how to begin learning SSIS. Is there any training for it besides msdn?

    I'm new to SQL Server Integration Services and I need help on how to begin learning SSIS. Is there any training for it besides msdn?

    Check this thread where people have already given their suggestion on learning SSIS
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/f2cc1cf3-204d-454a-a189-47df87a3aa23/i-want-to-learn-ssis?forum=sqlintegrationservices
    I would suggest to go for You tube videos (type learn SSIS or begin SSIS step by step) you will get lot of good tutorials to start with.
    Happy Learning!!
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

  • In testing 9 and X, "Compare Docs" we have a critical issue and really need help!

    For years we have used Acrobat 7 to do PDF compares and we love it!  However, the company recently advised we must upgrade to 9 and then eventually to X.  In testing 9 and X, Compare Docs we have a critical issue and really need help.  Our PDFs are produced by IT in a batch process and one of our main, critical functions is to compare previous PDFs to current PDFs;  however, in using 9 the Compare screen automatically sets the Doc Description for our PDFs to "Scanned Doc" and does not produce any differences! If you try to change the setting to Reports --it totally shuts down both documents without running!  Version 7 runs the compare of the same PDFs  beautifully, pointing out all the differences, as usual!  Has this every happen to anyone?  Do you know what we can do to our PDFs to allow version 9 to do the compare and produce results?  Why is 9 treating these non-scanned PDF docs as such?  Thanks so much for any help or insight you can give me on this issue! 

    (Moved the discussion to the correct forum)

  • I have a PC and a need help to configure my external hard disk on my network. Thanks

    I have a PC and a need help to configure my external hard disk on my network. Thanks

    If you mean you wish to plug a USB drive into the Airport Extreme router (or TC not express) that is easy..
    The disk must be formatted FAT32.. as if.. stay away from FAT .. or HFS+ ie Mac OS extended Journaled.
    Format the disk on a Mac is best.. and even use GUID partition scheme not MBR.
    The PC has no issue writing and reading files because this is a network drive.. The PC does not write to the drive.. it writes files to the Airport OS which writes and reads the disk and passes the info using standard windows SMB.. To the windows computer it will be a Windows NT server.. FAT32 setup.
    If your setup is different.. to my hugely guessed assumptions.. give details.. always helps to have.. make and model.
    Make and model of disk.. make and model of router.. how the setup will be done.. what windows OS you run.. etc etc.
    As it stands your question could have nothing to do with apple at all.. other than you posted in a forum so I guess there is something apple in there somewhere.

  • I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!

    I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!

    Yea I am. I deleted Logic Pro 9 and moved the App to the Trashcan like normal. Then when I go to install it, it says its already Installed. When I do this with other apps; it works fine, the install thing comes back up like it should once you have deleted the app

  • My old iMac and OS 10.4 will not accept the New iTunes Version 10 application and I can't get past the screen offering to download iTunes 10.  This is wrong and I need help getting past this situation. Help!

    My old iMac and OS 10.4 will not accept the New iTunes Version 10 application and I can't get past the screen offering to download iTunes 10.  This is wrong and I need help getting past this situation. Help!

    Sure, you can get around it if you don't need the newest version of iTunes. I still use version 7.5 because the newer versions didn't strike me as offering anything I needed.
    If you do need a version 10-something then you will have to upgrade your operating system to Leopard (fi your computer will support it) at least.  If you need 10.5 for some reason then there's no getting around it, you will have to buy a new computer.

  • This morning i tried to restore my ipod and it said:"the ipod "ipod cannot be restored at this time because the ipod software update server could not be contacted or is temporarily unavalible." i have no idea what to do and i need help

    this morning i tried to restore my ipod and it said:"the ipod "ipod cannot be restored at this time because the ipod software update server could not be contacted or is temporarily unavalible." i have no idea what to do and i need help.

    Update Server
    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - For one user uninstalling/reinstalling iTunes resolved the problem
    - Try on another computer/network
    - Wait if it is an Apple problem

  • My grandma is a new apple user and she needs help making an apple account.

    my grandma is a new apple user and she needs help making an apple account.

    She should call Apple support or visit the Genius Bar at an Apple store (make an appointment first at http://apple.com/retail). They will walk her through the process.

  • I am john and I need help downloading a progmmme yesterday and wanted to finish downloading open it and I am not told me that the program was shut down unexpectedly and restart ponia not opened and went back to download it and not opened my back probe to

    i am john and I need help downloading a progmmme yesterday and wanted to finish downloading open it and I am not told me that the program was shut down unexpectedly and restart ponia not opened and went back to download it and not opened my back probe to turn off the computer and there was no case

    i am john and I need your help yesterday bought a program called DJAY when I finish the download and got an error opened and I saw him there was no case to install and thank you for your help anyway

  • I want officially unlock my phone second bought in senegal since more than three months but after buying it i realize it is locking by orange france and i need help

    hello want help without paying money cause now i'm in senegal and not sure to transfer money     
    i want to officially unlock my iphone 4 second hand bought here in senegal in west africa since more than 3 months but after this i realize that it is simlocked to oarange france so i cannot use it and i need help near apple to begin use legaly my iphone thanx

    You will need to contact Orange France. They are the only ones who can officially unlock a phone locked to their network.

  • Help, I am killing myself trying to do this and I need help ASAP

    I need help with this program it has to act like a cash register. The user will input an items price and then their payment. It will tell you the change and then tell you what kinda of change to use, see example below:
    Use JOptionPane to take inputs from the user and display the results.
    Example:
    If the user enters
    Amount Due = 5.52 // First Input from the User
    Amount Given = 10.00 // Second Input from the User
    Calculate the Balance Due
    Balance Amount = $ 4.48
    and display the balance due in denomination as (The following four lines will be ONE Output to the user)
    $1 bill = 4 (4.00)
    Quarters = 1 (0.25)
    Dimes = 2 (0.20)
    Pennies = 3 (0.03)
    This last part, where you display the change that will be given back, ie: how many quarters, dimes, nickels, pennies is the part I am having problems with.
    Can some one help? Please pardon my coding abilities, I am still learning how to do this and would really appreciate any help you can with my program.
    Thanks in advance.
    import javax.swing.*;
    import java.text.*;
    public class CashReg
    { //Start
    public static void main (String [] args)
    { //Start Main
    int count = 0;
    char c1 = 0;
    String price = null;
    String payment = null;
    String change = null;
    boolean correct = false;
    while(!correct)
    { //Start Loop
    price = JOptionPane.showInputDialog (null,"Enter the amount of the item for purchase");
    if (price.length() < 1) //Loop
    JOptionPane.showMessageDialog (null, "You did not enter a purchase amount, try again please.");//Error message
    payment = JOptionPane.showInputDialog (null,"Enter your payment amount.");
    if (payment.length() < 1) //Loop
    JOptionPane.showMessageDialog (null, "You did not enter a payment amount, try again please.");//Error message
    else
    correct = true; //Boolean to confirm that there are enough characters
    for (int i=0; i<price.length(); i++)
    if (Character.isUpperCase(price.charAt(i)))
    count++;
    } //End loop
    // response = price - payment;
    JOptionPane.showMessageDialog (null, "You item costs "+price+" and you payed "+payment+" and your change will be "+change);
    System.exit(0);
    } //End Main
    } //End

    OK, thanks for your help, but I need some more. I have the program running and showing the amount of change that is going to be returned. But I don't know how to display the kind of change. AKA, quarters, dimes, nickels and pennies. I am a programming idot, my teacher is letting us twist in the wind. He is not explaining the concepts behind any of this. You are saying the word "logic" and I don't know what that means. This assigment is due Monday, I just need some help with the last part. How to show the change. I am just plain lost. please help.
    import java.text.DecimalFormat;
    import javax.swing.*;
    import java.text.*;
    public class CashReg
    {     //Start
         public static void main (String [] args)
         {          //Start Main
              int count = 0;
              char c1 = 0;
              String price = null;
              String payment = null;
              String change = null;
              boolean correct = false;
         while(!correct)
         {          //Start Loop
         price = JOptionPane.showInputDialog (null,"Enter the amount of the item for purchase");
              if (price.length() < 1)     //Loop
                   JOptionPane.showMessageDialog (null, "You did not enter a purchase amount, try again please.");//Error message
                   payment = JOptionPane.showInputDialog (null,"Enter your payment amount.");
              if (payment.length() < 1)     //Loop
                   JOptionPane.showMessageDialog (null, "You did not enter a payment amount, try again please.");//Error message
              else
                   correct = true; //Boolean to confirm that there are enough characters
    for (int i=0; i<price.length(); i++)
              if (Character.isUpperCase(price.charAt(i)))
              count++;
         }     //End loop
    //     response = price - payment;
    float fPrice = Float.parseFloat(price);
    float fPayment = Float.parseFloat(payment);
    float fChange = fPayment-fPrice;
    DecimalFormat df = new DecimalFormat ("#.00");
    JOptionPane.showMessageDialog (null, "You item costs "+price+" and you payed "+payment+" and your change will be "+ df.format (fChange));
    This is where I don't know what to put
         System.exit(0);
         }     //End Main
         }     //End
    I am begging for help.

  • I got my itunes acount stolen and i need help i still got the resuce email and phone nomber on it with 490 usd in it

    had msg from apple saying i go change id then nothing sent on and it says desible account, so i guess someone stole my itunes acount and with all credit of 490 usd on it, and all i got is the rescue account and phone number which is mine and i can prove its imine i need help asap please, i cant login same old id apple
    Message was edited by: barbi10 that was the lst msg regarding my id then it vanished!!! Dear claire mawba, The following changes to your Apple ID  were made on December 17, 2014 at 10:15:07 AM (GMT): Apple ID Email address(es) If you need additional help, contact Apple Support.
    <Personal Information Edited By Host >

    For info we are fellow users here on these forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email address from your post (it's not a good idea to post personal info on any public forum).
    You can contact Support in your country via the link/phone number on this page : Contact Apple for help with Apple ID account security
    If your country isn't on that page then try this form to contact support : https://ssl.apple.com/emea/support/itunes/contact.html

  • I get error 0x80073cf9 now and I need help to FIX Windows Store can't update any Apps & can't install any Apps now?

    Hi I hope some one can tell me step by step how to fix windows 8.1, I can't update any of my Apps and can't install any new apps now and I get error code 0x80073cf9?  But my problem is different than most of the other FIXES I read about, because nothing
    fixes my problem to be able to install new Apps and get app updates and stop getting that error code?
    I keep getting same error code 0x80073cf9 after I try any of the FIXES I have read about and tried all  the fixes on  my Lenovo Z580 laptop, that came with windows 8 and updated to 8.1.  And ever since I bought this laptop I could
    always install and update all my apps for the last year when I had Win 8 and Win 8.1 now.   This has been going on since April and May and its driving me crazy!    And from the May updates I did get all the updates and
    I also installed the KB update  that said I need this KB to get all updates in the future.  
    But all the other people when they get this error code they could not even open and use any of their Apps already installed.  And they also get the error code when they try to update or get a new apps.   
    But I can click on any APP installed already and use all my Apps with no problems.     I have read so many how to fix this error code but nothing works! :-(      I have tried a lot of 
    the fixes on Microsoft forums that says do this and the fix will get rid of the error code but I keep getting the same error code after I try that  fixes.    And I have read a lot of other windows 8 an windows 8.1  web sites when
    I search for how to fix this error code?   And tried all of the fixes that were different from the Microsoft forum fixes. But after I try those fixes I still can't install any apps or can't get my app updates? 
    Please to any person's who can help me by giving me  more that 1 fix, because I have tried so many fixes, If you know more that 1 fix tell me how to do your fix step by step so I can understand what you say to do to fix my windows store? 
    Thanks for any and all help?  And if I don't get any help in this section of the forum I will try to put this in a different area, if I don't get any help at this section of the forum I will try to ask this in another part of he forum ok?   
    I really need HELP with this so I can get my laptop working again to install new apps and get the updates to my apps? 

    Fixed the problem by going to settings/store and logging out with apple ID.  Then logged back in with password and updates, apps, and iTunes store seem to work ok now.

Maybe you are looking for

  • Problem in Installing Oracle 10g on Linux Enterprise Edition RHEL 3

    Hi All, I am trying to install Oracle10g Rel 2 on RHEL 3, but the installer fails for some OS packages (rpms I think) for being of older edition like gcc etc. Whats the workaround for this or do I need to install for a more latest Version of Red Hat

  • Premiere Pro CC weird Audio Squelches

    I am cutting my first long project  in Premiere Pro CC since switching from FCP. When I have more than 9 tracks of audio, sometimes as I am scrubbing the sequence a very loud SQUELCH comes out of the speakers.  I am using big pro speakers so it is pr

  • Dynamically bind a picklist to a cell in a table

    Hello, I am creating an advanced table (2 cols) of the following type: Code | Value === | === a | lov with valid values for code=a b | lov with valid values for code=b -- | --------- -- | --------- I have a picklist defined for Col1 (code) but what I

  • Javascript error 'EPCM is not identified'

    I am having an issue on one desktop that when the associate logs on to EP7.0 all they see if the branding image on top and rest of the screen is blank, the content is not loading.   I saw in the bottom left hand corner that there was javascript error

  • Is there an alternate Web program to replace iWeb?

    Is there an alternate Web program to replace iWeb since it is no longer being supported by Apple?. I have a very large program that took over 5 months to design and publish. If I have to give up iWeb, I need to import all the info into a new web prog