#189 Possible memory leak / large CPU usage

closed
O. Givi
None
5
2012-07-13
2012-06-27
kmistry
No

I run DirSync Pro and then do nothing - i.e. leave it on main screen showing the list of jobs - it's not doing anything but if you look at the windows Process Monitor you can see that it is continually using up memory (200MB+) and CPU is around the 25% mark. If you minimize the application then the memory usage goes all the way down to around 8MB. Once you double click on the system tray icon to restore the application the memory usage starts to go up again and CPU is around 25%.

DirSync Pro ver 1.45b2

Discussion

  • O. Givi
    O. Givi
    2012-06-27

    Very strange. I'm running it right now and the CPU is arround 0% at idle. Does this happen right after start-up? or you do some analysis/sync before the app idle time?

     
  • O. Givi
    O. Givi
    2012-06-27

    • assigned_to: nobody --> ogivi
     
  • O. Givi
    O. Givi
    2012-06-27

    And thank you very much for testing!!!

     
  • kmistry
    kmistry
    2012-06-27

    Happens right after startup - I don't do anything other than run the application by double clicking on the DireSyncPro.exe. I have installed the latest version of Java runtime (I didn't have it installed prior to downloading DirSyncPro).

    I have an old CPU - Athlon XP 2800+ but 25% is still very high for an application that's doing nothing - normally the CPU is around 98% idle.

    What about memory usage - do you see that continually increasing?
    BTW I'm running on Windows XP 32 bit.

     
  • O. Givi
    O. Givi
    2012-06-27

    I have no idea about the processor issue. I'll think about it.

    About the memroy: Nice catch! I see that now! It should'nt increase. I'm going to investigate this. I'll let you know as soon as possible.

    Thanks!
    Omid

     
  • kmistry
    kmistry
    2012-06-29

    An update re the latest version (1.45b4)...

    Re the CPU issue seems to have improve somewhat - it now fluctuates between 0% and around 15% - still a bit strange - I'm wondering whether this is related to the memory issue.

    Re the memory issue - still the same but now also noticed that memory increases even when the app is minimised to the system task bar - although it does so at a much slower rate. I don't know if it was doing this with the earlier version(s).

    P.S. No problem with testing - it's great to have the product being maintained/improved so quickly!

     
  • O. Givi
    O. Givi
    2012-07-13

    The CPU usage should be improved in 1.45b5 (or b6). I have run lots of memory tests and I'm sure now there are no leaks. The reason for fluctuation in the memory, is the time gap between memroy usage and java garbage collector.

    At the moment, I have no easy solution to reduce the memory usage because rendering a complex gui with the huge sync q needs that much memory in Java. I can drop the sync q visualization to reduce the memory usage a LOT but I think many users will get unhappy with that.

    If I have some time, I'll try to think about to reengineer some stuff to reduce the memory usage if possible.

     
  • O. Givi
    O. Givi
    2012-07-13

    • status: open --> closed