Massive Memory Leak Caused by USB Connection

I have a Sansa Fuze MP3 player.  I noticed when I connected it via USB both to an iMac 27" late 2009 and MacBook Pro 15-inch early 2011, both machines would grind to a halt. get very hot, and run the CPUs at full blast.  The Finder would quickly become unresponsive.  There were huge (like 500 GB) virtual memory files.  Disk Utility could not repair the drive.  Reformatting the MP3 player using its System menu finally cured the problem.  Seems like Lion should have a better way of handling misbehaving peripherals.

i forgot to include one line, but i didn't see why it made a difference:
ConcurrentMap<Connection, Boolean> connPool = this.createConnPool();
for(;;) {
  sok.receive(dgPak);
  ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(dgPak.getData()));
  MyInterface foo = (MyInterface) ois.readObject();
  foo.assignSharedMap(connPool);  // <-- forgot to include this one line.
  foo.doStuff();
  foo = null;
  System.gc();
}the number of de-serializations still equals the number of " +public void finalize();+ " invocations.
note: i never add new connections to the pool. it "looks" like a ConcurrentMap
does not allow objects that reference it to compleley die. (if this behaviour is as to be expected , my apologies, and could you explain a safe way for multiple objects to share a common Collection ?)
this code works fine:
for(;;) {
  sok.receive(dgPak);
  ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(dgPak.getData()));
  MyInterface foo = (MyInterface) ois.readObject();
  foo.doStuff();
  foo = null;
  System.gc();
}at this stage of de-bugging i could have tested with just a regular java.util.Map<Connection, Boolean> but forgot. i am using a
completely different approach now, so i'm not going back to test, though i bet it is related to java.util.concurrent. .

Similar Messages

  • IDCS5 Mac - Massive memory leaks - Followup to previous discussion

    Hello Everyone:
       After some painful, tedious marching though the code on the Mac, I found something really, really strange.  The code seemed to be working fine, except when a couple of documents were added in the scan jobs.  I isolated one of the documents and removed each object on the page until I came across the object that, when scanned, caused InDesign to report the massive memory leaks.
       The object was a quarter-inch by quarter-inch overset text frame (that's .63 cm by .63 cm for those of you who are used to the more sensible metric system).  In the text frame was a single character, not normally visible when on the page.  According to the ASSERT dialog box that was thrown up on the screen when InDesign was shutting down, this little bitty object was the source of 104450 leaks amounting to between 38,000,000 abd 51,000,000 bytes in leaks.  Here's the code where the leaks must be coming from (and Dirk, I owe you a crow pie...as in I'm gonna have to eat crow...I use PMString for one small command in this snippet, but it seemed so much faster and simpler than what the examples in widestring.h were suggesting):
    //  TI is TextIndex, assigned from a call to IMultiColumnTextFrame::TextStart()
    //  TS is int32 assigned from a call to IMultiColumnTextFrame::TextSpan()
    WideString Text;
    TextIterator beginTextChunk(FrameTextModel,          TI );
    TextIterator endTextChunk(   FrameTextModel, (TS + TI));
    std::copy(beginTextChunk, endTextChunk, std::back_inserter(Text));
    PMString PMText(Text);
    std::string text = PMText.GetPlatformString();
    IdentifyNamesInText(text);
    This final function call could not have been the source of the problem because one of the steps I took in tracking down the problem was to put "return" as the first line in its implementation but the bug still occurred.

    Hi, I don't know if this is relevant or not, particularly since we're on Windows and the problem you're seeing is on Mac.
    One of our guys put in some code to workaround a problem which he encountered using std:;copy with TextIterators under VS2005 (so it would have been CS4)
    /// Alternative to using std::copy to workaround issues using std::copy and TextIterator's in VS2005
    inline void TextIteratorCopy( TextIterator& posBegin, TextIterator& posEnd, WideString& strDest )
        std::back_insert_iterator < WideString > posDest = std::back_inserter( strDest );
        for ( ; posBegin != posEnd; ++posDest, ++posBegin )
            *posDest = *posBegin;
    that said, it might not affect you on the Mac, it might no longer be an issue with CS5 either.

  • Yosemite and Mail massive memory leak and excessive CPU usage

    I've just installed Yosemite and upgraded to 10.10.2 via the AppStore. Now I have a problem with Mail sucking up all the CPU (>106% !) and memory (>8Gb and rising while doing nothing). Everything runs fine when I quit Mail. Very disturbing behaviour!
    I've tried several suggestions found elsewhere on the board here, such as turning off and even removing all Mail plug-ins including SpamSieve, but without positive results. I've tried un-selecting 'Store draft msgs on server', as well as the option for junk and sent msgs. but again without any difference. Going Offline within Mail also makes no difference to its memory hogging or CPU usage.
    I notice this is an issue that's been around since last year (wish I'd known that before upgrading to Yosemite today) and I am just completely flabbergasted that it still exists. Would've thought Apple'd have fixed it in the first but certainly in the second incremental OSX Yosemite release.
    Is there anything else I could try that's proven to be effective in stopping Mail's massive memory leak?

    Okay, I've run Disk Util and restarted. Seems to have made a little bit of a difference to the RAM gobbling in that it appears to be going at a slower rate, but it's still up at around the 45Gb after an hour. Here's the EtreCheck report in the hope that it helps.
    EtreCheck version: 2.1.6 (109)
    Report generated 28 January 2015 4:38:22 pm AEDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
        MacBook Pro (Retina, 15-inch, Mid 2014) (Technical Specifications)
        MacBook Pro - model: MacBookPro11,3
        1 2.5 GHz Intel Core i7 CPU: 4-core
        16 GB RAM Not upgradeable
            BANK 0/DIMM0
                8 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                8 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en0: 802.11 a/b/g/n/ac
        Battery Health: Normal - Cycle count 16
    Video Information: ℹ️
        Intel Iris Pro
            Color LCD spdisplays_2880x1800Retina
        NVIDIA GeForce GT 750M - VRAM: 2048 MB
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 1:1:19
    Disk Information: ℹ️
        APPLE SSD SM0512F disk0 : (500.28 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 499.05 GB (413.24 GB free)
                Core Storage: disk0s2 499.42 GB Online
    USB Information: ℹ️
        Apple Internal Memory Card Reader
        Asmedia ASM107x
            Asmedia ASM107x
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Asmedia ASM107x
            Asmedia ASM107x
                Logitech Logitech USB Optical Mouse
                Apple, Inc. Keyboard Hub
                    Apple, Inc Apple Keyboard
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
        /etc/hosts - Count: 2
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/DiskWarrior.app
        [not loaded]    com.alsoft.Preview (5 - SDK 10.5) [Support]
            /Applications/ibVPN.app
        [not loaded]    net.tunnelblick.tap (1.0) [Support]
        [not loaded]    net.tunnelblick.tun (1.0) [Support]
            /Library/Extensions
        [loaded]    at.obdev.nke.LittleSnitch (4231 - SDK 10.8) [Support]
        [loaded]    com.sophos.kext.sav (9.2.50 - SDK 10.8) [Support]
        [loaded]    com.sophos.nke.swi (9.2.50 - SDK 10.8) [Support]
        [loaded]    jp.plentycom.driver.SteerMouse (4.2.2 - SDK 10.6) [Support]
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.AirPlayUIAgent.plist
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.CallHistorySyncHelper.plist
        [killed]    com.apple.cloudd.plist
        [killed]    com.apple.icloud.fmfd.plist
        [killed]    com.apple.nsurlsessiond.plist
        [killed]    com.apple.pluginkit.pkd.plist
        [killed]    com.apple.security.cloudkeychainproxy.plist
        [killed]    com.apple.spindump_agent.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        10 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.awdd.plist
        [killed]    com.apple.ctkd.plist
        [killed]    com.apple.icloud.findmydeviced.plist
        [killed]    com.apple.ifdreader.plist
        [killed]    com.apple.nehelper.plist
        [killed]    com.apple.nsurlsessiond.plist
        [killed]    com.apple.softwareupdated.plist
        [killed]    com.apple.wdhelper.plist
        8 processes killed due to memory pressure
    Launch Agents: ℹ️
        [running]    at.obdev.LittleSnitchUIAgent.plist [Support]
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Support]
        [running]    com.adobe.AdobeCreativeCloud.plist [Support]
        [running]    com.sophos.uiserver.plist [Support]
    Launch Daemons: ℹ️
        [running]    at.obdev.littlesnitchd.plist [Support]
        [running]    com.adobe.adobeupdatedaemon.plist [Support]
        [loaded]    com.adobe.fpsaud.plist [Support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Support]
        [running]    com.sophos.common.servicemanager.plist [Support]
        [running]    com.synium.cleanappdaemon.plist [Support]
        [running]    com.syniumsoftware.CleanAppDaemon.plist [Support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Support]
        [running]    com.c-command.SpamSieve.LaunchAgent.plist [Support]
        [loaded]    com.google.keystone.agent.plist [Support]
        [not loaded]    com.linotype.FontFolderProtector.plist [Support]
        [failed]    com.wondershare.mobilegodaemon.plist [Support]
        [not loaded]    info.lokiware.attachmenttamer.cleanup.plist [Support]
        [invalid?]    info.lokiware.attachmenttamer.setupagent.plist [Support]
    User Login Items: ℹ️
        Letter Opener Updater    Application  (/Library/Mail/Bundles/Letter Opener.mailbundle/Contents/Resources/Software Update.app)
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        Default Folder X Helper    Application Hidden (/Users/[redacted]/Library/PreferencePanes/Default Folder X.prefPane/Contents/Resources/Default Folder X Helper.app)
        FontExplorer X Pro    Application Hidden (/Applications/FontExplorer X Pro.app)
        Calendar    Application Hidden (/Applications/Calendar.app)
        SteerMouse Manager    Application  (/Applications/Utilities/SteerMouse.app/Contents/MacOS/SteerMouse Manager.app)
        Mail    Application Hidden (/Applications/Mail.app)
        Android File Transfer Agent    Application  (/Users/[redacted]/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app)
        DiskWarriorStarter    Application  (/Applications/DiskWarrior.app/Contents/Helpers/DiskWarriorStarter.app)
        finderpop-daemon    Application  (/Users/[redacted]/Library/PreferencePanes/FinderPop.prefPane/Contents/Resource s/finderpop-daemon.app)
        XtraFinder    Application Hidden (/Applications/XtraFinder.app)
    Internet Plug-ins: ℹ️
        AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 [Support]
        FlashPlayer-10.6: Version: 16.0.0.296 - SDK 10.6 [Support]
        QuickTime Plugin: Version: 7.7.3
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Support]
        Flash Player: Version: 16.0.0.296 - SDK 10.6 [Support]
        Default Browser: Version: 600 - SDK 10.10
        SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Support]
    User internet Plug-ins: ℹ️
        iGetter Plugin: Version: 2.9.3 [Support]
        iGetterScriptablePlugin: Version: 2.9.3 [Support]
    Safari Extensions: ℹ️
        1Password [Installed]
        iGetter Extension [Installed]
    3rd Party Preference Panes: ℹ️
        Default Folder X  [Support]
        FinderPop  [Support]
        FUSE for OS X (OSXFUSE)  [Support]
        SteerMouse  [Support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
          105%    Mail
            3%    WindowServer
            2%    sysmond
            2%    Activity Monitor
            0%    fontd
    Top Processes by Memory: ℹ️
        4.10 GB    Mail
        103 MB    Finder
        86 MB    SophosScanD
        86 MB    InterCheck
        86 MB    WindowServer
    Virtual Memory Information: ℹ️
        84 MB    Free RAM
        2.92 GB    Active RAM
        2.87 GB    Inactive RAM
        2.76 GB    Wired RAM
        2.57 GB    Page-ins
        23 MB    Page-outs
    Diagnostics Information: ℹ️
        Jan 28, 2015, 03:37:41 PM    Self test - passed
        Jan 28, 2015, 02:49:01 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Android File Transfer Agent_2015-01-28-144901_[redacted].crash
        Jan 28, 2015, 09:31:04 AM    /Library/Logs/DiagnosticReports/Mail_2015-01-28-093104_[redacted].cpu_resource. diag [Details]
        Jan 28, 2015, 07:39:17 AM    /Library/Logs/DiagnosticReports/AdobeCrashDaemon_2015-01-28-073917_[redacted].c rash
        Jan 27, 2015, 07:54:29 PM    /Library/Logs/DiagnosticReports/AdobeCrashDaemon_2015-01-27-195429_[redacted].c rash

  • [LPX] Drummer/Drum Kit Designer memory leak causing crash

    After working with LPX for a couple of days after release with almost no problems save for a few system overload errors that always seemed to sort themselves out, I loaded up a project I had been working on to find that it crashed every time I tried to play the track. Other, smaller projects, still played in varying degrees, some having to wait for a long time seemingly for samplers to load up etc.
    I did some testing (painstaking, considering that I was having to force-quit the application for my computer to even run again; as an aside there were never any error reports for whatever reason) and found that it appears to be Drummer/Drum Kit Designer that's causing massive memory usage. Looking at the activity monitor when loading the project revealed that the memory usage would just go up and up until it maxed out my (rather modest) 4GB RAM, at which point there would be no free memory and the computer would slow almost to a standstill. Removing all instances of Drum Kit Designer and Drummer reduces the load to a point where it is once again manageable.
    This seems like a fault in Drummer, I'm thinking possibly a memory leak. Has anyone else been experiencing this problem/anyone have any thoughts as to how it could be fixed?
    Thanks in advance,
    Jasper

    This is not a memory bug. It's simply the nature of the new Drummer.
    Drummer uses a LOT of samples. It's a 13GB download for a reason. You will need more than 4GB to use drummer and not run into issues.
    The nature of the modern Logic engine - which seems unchanged from v9 - makes it very bad at being able to tell when it's running out of memory. Logic will simply freeze or crash most of the time it runs out. The freeze would be down to it using literally every last MB on your RAM without overstepping the boundary, and the crash would be downt to it claiming to need more real RAM than you have spare.
    Producer kits use 5.1 surround samples, and submixes them to stereo in a way that posistions them around the space. Whilst a doddle for a modern machine, you Mac is rather long in the tooth to be trying to do that whilst struggling to handle 1.2GB patches with 4GB of RAM total.

  • Memory leak when using database connectivity toolset and ODBC driver for MySQL

    The "DB Tools Close Connection VI" does not free all the memory used when "DB Tools Open Connection VI" connects to "MySQL ODBC Driver 3.51".
    I have made a small program that only opens and close the connection that I run continously and it's slowly eating all my memory. No error is given from any of the VI's. (I'm using the "Simple Error Handler VI" to check for errors.)
    I've also tried different options in the DSN configuration without any results.
    Attachments:
    TestProgram.vi ‏16 KB
    DSNconfig1.jpg ‏36 KB
    DSNconfig2.jpg ‏49 KB

    Also,
    I've duplicated the OPs example: a simple VI that opens and closes a connection. I can say this definately causes a memory leak.
    Watching the memory:
    10:17AM - 19308K
    10:19AM - 19432K
    10:22AM - 19764K
    10:58AM - 22124K
    Regards,
    Ken
    Attachments:
    OpenCloseConnection.vi ‏13 KB

  • Memory leak using Oracle ODBC connection. Works perfect with MSSQL.

    Hello,
    what could cause memory leaks which is not persistent. Sometimes in different OS and sometimes in different hardware. the common player to my issue is only with oracle.

    A memory leak that is not persistent is not a memory leak.
    You'll have to be way more specific for a more meaningful answer.
    Have you tried memory profiling tools for your operating system to locate the "leak"?
    Yours,
    Laurenz Albe

  • Massive memory leak when using Google (normal search, inactive, but logged into Google+)

    Firefox has massive memory usage in recent times (runs up to over 3GB on Win7x64HP). I was not sure until now what caused it, since I have the browser open in the background most of the time. Commonly open pages are facebook, some news site (containing flash ads) and some other stuff for doing research. And Google - of course.
    Normally I killed Firefox completely whenever I recognized the memory usage was way above normal, but this time I just kicked the google tab and (after 2mins of HDD action) the mem usage dropped by 2GB! I have no idea what causes this, but the rise of allocated mem is always very slowly and seems to build up over the day (2-3 times stand-by or hibernation included). I also just realized that the google tab keeps cpu usage of FireFox constantly by around 2%. An important side note: FF automatically logs on to Google+, maybe that's one of the reasons.
    Has anyone the same issues? Is it rather a the fault of FF or Google? Will try surfing with Extensions deactivated the next days to see if the behavior continues...

    If you go to ''about:memory'' in the location bar you may find some of the info there of use, explanatory notes appear on mousover. It will help you figure out where the memory is going to.
    * see also [[high memory usage]]
    Some of the developers have been trying recently to improve how firefox uses memory, and have recently added ''about:memory'' as a diagnostic feature.
    Using 3GB of memory for firefox is obviously abnormal, however some sites you use may be fairly intensive. It does often take quite a bit of effort to track down such problems, but sometimes new problems are identified and then fixed: either problems with firefox, or with specific sites or software.

  • Memory leak with t3 jmx connection

    Hello all,
    I've created a monitoring plugin for WebLogic 9.x / 10.x servers which polls a target server at regular interval. Each time the plugin needs the performance data, it creates a new JMXConnector and get the associated MBeanServerConnection. Everything works fine, but after a significant number of requests, the client process runs out of memory. When analayzing the client heapdump, I can see there is a lot of instances of the following classes:
    weblogic.corba.client.security.ClientSecurityContext
    javax.security.auth.Subject
    All these instances are retained in a unique HashMap. It doesn't look like there is a problem in my code as all the objects I'm creating are well garbage collected (no JMXConnector or MBeanServerConnection instances).
    I've tried almost everything to get rid off this issue (using t3, using iiop, changing the parameters used to create the connector), I tried to set the jmx.remote.x.client.connection.check.period to 0 but nothing changes. The current workaround is to cache the JMXConnector instances for each server, but this is not fully satisfying (connection loss if target server restarts, etc...).
    Did someone experiment the same kind of issue ? I provide below a code snippet of the connection factory I'm using (I put both wljmxclient.jar and wlclient.jar in the client classpath):
    private static final String JNDI_NAME = "/jndi/weblogic.management.mbeanservers.runtime";
    public static MBeanServerConnection getInstance(Map<String,String> params) {
         Map<String,String> map = new HashMap<String,String>();
         JMXServiceURL url = null;
         JMXConnector connector = null;
         MBeanServerConnection connection = null;       
         map.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
         map.put("java.naming.security.principal", params.get("username"));
         map.put("java.naming.security.credentials", params.get("password"));
         try {
              url = new JMXServiceURL("service:jmx:t3://" + params.get("hostname") + ":" + params.get("port") + JNDI_NAME);
              connector = JMXConnectorFactory.connect(url, map);
              connection = connector.getMBeanServerConnection();
         } catch (Exception e) {
              throw new RuntimeException("Unable to get MBeanServerConnection for JMXServiceURL " + url.toString());
         return connection;
    }Thanks for helping.
    Yann

    Hello KK, thanks for your answer.
    I also thought to the cache possibility, but it's not as straightforward to manage (target server restart, keepalive, etc...). A call to connector.close() does not change anything, the objects I'm creating are well garbage collected. The only solution I've found to get rid of this memory leak is to perform an anonymous iiop lookup, i.e. creating first a iiop user (group Monitors), set default iiop user and password for each target server, and changing the factory code to:
    private static final String JNDI_NAME = "/weblogic.management.mbeanservers.runtime";
    public static MBeanServerConnection getInstance(Map<String,String> params) {
         Map<String,String> map = new HashMap<String,String>();
         JMXServiceURL url = null;
         JMXConnector connector = null;
         MBeanServerConnection connection = null;
         map.put("jmx.remote.x.client.connection.check.period", "0");
         try {
              url = new JMXServiceURL("service:jmx:rmi:///jndi/iiop://" + params.get("hostname") + ":" + params.get("port") + JNDI_NAME);
              connector = JMXConnectorFactory.connect(url, map);
              connection = connector.getMBeanServerConnection();
         } catch (Exception e) {
              throw new RuntimeException("Unable to get MBeanServerConnection for JMXServiceURL " + url.toString());
         return connection;
    }I don't like this solution as this implies to change the target server configuration plus it has an impact on security.

  • Memory leak caused by de-serialization

    i have a memory leak.
    i am "pretty" sure it is related to serialization .
    for(;;) {
      sok.receive(dgPak);
      ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(dgPak.getData()));
      MyInterface x = (MyInterface) ois.readObject();
      x.go();
      x = null;
      System.gc();
    }after the above code loops for 100-200 times, i always get OutOfMemoryError .
    important :
    public class MyClass implements MyInterface {
      public void go() {
      public void finalize() {
        System.out.println("object disposed. memory released. but, what might be leaking here??");
    }in my testing: " *public void go();* " and " *public void finalize();* " execute the same number of times.
    so... my guess is allocating memory via " *new* " and de-serialization is different, right?
    this must be related to the problem?

    i forgot to include one line, but i didn't see why it made a difference:
    ConcurrentMap<Connection, Boolean> connPool = this.createConnPool();
    for(;;) {
      sok.receive(dgPak);
      ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(dgPak.getData()));
      MyInterface foo = (MyInterface) ois.readObject();
      foo.assignSharedMap(connPool);  // <-- forgot to include this one line.
      foo.doStuff();
      foo = null;
      System.gc();
    }the number of de-serializations still equals the number of " +public void finalize();+ " invocations.
    note: i never add new connections to the pool. it "looks" like a ConcurrentMap
    does not allow objects that reference it to compleley die. (if this behaviour is as to be expected , my apologies, and could you explain a safe way for multiple objects to share a common Collection ?)
    this code works fine:
    for(;;) {
      sok.receive(dgPak);
      ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(dgPak.getData()));
      MyInterface foo = (MyInterface) ois.readObject();
      foo.doStuff();
      foo = null;
      System.gc();
    }at this stage of de-bugging i could have tested with just a regular java.util.Map<Connection, Boolean> but forgot. i am using a
    completely different approach now, so i'm not going back to test, though i bet it is related to java.util.concurrent. .

  • AME has a massive memory leak

    I have the most recent version of AME CS6 (6.0.3.1) and I have 64GB of RAM installed which once I start encoding any source my RAM will be completely filled within 10 minutes of starting the encode. This is even with my allocating only 10 GB for CS6 through AME. I would like to know if a solution is in the works since this seems to be a common issue. Feel free to ask me any questions as I would love to see this truly fixed.

    I did it in order to test that there was indeed a memory leak, I had intended on given CS6 50GB or so, though when I could no longer do anything because of all of my RAM was being USED I started to investigate. The other interesting thing is that the memory simple "disappears" as in no program claims to be using it, even though the system reports that all 64GB are in use.  Also the "remaining" timer continues to increase in length even though AME is making progress with the file.

  • Help needed: Memory leak causing system crashing...

    Hello guys,
    As helped and suggested by Ben and Guenter, I am opening a new post in order to get help from more people here. A little background first...  
    We are doing LabView DAQ using a cDAQ9714 module (with AI card 9203 and AO card 9265) at a customer site. We run the excutable on a NI PC (PPC-2115) and had a couples of times (3 so far) that the PC just gone freeze (which is back to normal after a rebooting). After monitor the code running on my own PC for 2 days, I noticed there is a memory leak (memory usage increased 6% after one day run). Now the question is, where the leak is??? 
    As a newbee in LabView, I tried to figure it out by myself, but not very sucessful so far. So I think it's probably better to post my code here so you experts can help me with some suggestions. (Ben, I also attached the block diagram in PDF for you) Please forgive me that my code is not written in good manner - I'm not really a trained programmer but more like a self-educated user. I put all the sequence structures in flat as I think this might be easier to read, which makes it quite wide, really wide.
    This is the only VI for my program. Basically what I am doing is the following:
    1. Initialization of all parameters
    2. Read seven 4-20mA current inputs from the 9203 card
    3. Process the raw data and calculate the "corrected" values (I used a few formula nodes)
    4. Output 7 4-20mA current via 9265 card (then to customer's DCS)
    5. Data collection/calculation/outputing are done in a big while loop. I set wait time as 5 secs to save cpu some jucie
    6. There is a configuration file I read/save every cycle in case system reboot. Also I do data logging to a file (every 10min by default).
    7. Some other small things like local display and stuff.
    Again I know my code probably in a mess and hard to read to you guys, but I truely appreciate any comments you provide! Thanks in advance!
    Rgds,
    Harry
    Attachments:
    Debug-Harry_0921.vi ‏379 KB
    Debug-Harry_0921 BD.pdf ‏842 KB

    Well, I'll at least give you points for neatness. However, that is about it.
    I didn't really look through all of your logic but I would highly recommend that you check out the examples for implementing state machines. Your application suffers greatly in that once you start you basically jumped off the cliff. There is no way to alter your flow. Once in the sequence structure you MUST execute every frame. If you use a state machine architecture you can take advantage of shift registers and eliminate most of your local variables. You will also be able to stop execution if necessary such as a user abort or an error. Definitely look at using subVIs. Try to avoid implementing most of your program in formula nodes. You have basically written most of your processing there. While formula nodes are easier for very complex equations most of what you have can easily be done in native LabVIEW code. Also if you create subVIs you can iterate over the data sets. You don't need to duplicate the code for every data set.
    I tell this to new folks all the time. Take some time to get comfortable with data flow programming. It is a different paradigm than sequential text based languages but once you learn it it is extremely powerful. All your data flow to control execution rather than relying on the sequence frame structure. A state machine will also help quite a bit.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Massive Memory Leak

    Help!
    I'm no developer but am very good with OS and networks etc. Need help wirth a serious issue I have no idea how to solve.
    I use an app that runs on JVM (Azureus) and I have what my fried has explained is a memory leak.
    For each second the app is running (it downloads data and writes it to disk) its system memory requirement goes up by approx 2Mb. It does not stop. Usually reaches about 1.5 - 2 Gb and my system crashes. Obviously, I dont let this happen a lot, I am not using the software until i fix the issue.
    Does anyone have a clue about this or where I may start trying to fix the problem. My guess is that JVM is not clearing its buffer after writing the data to my HD - but thats a guess.
    Thank you!

    I am also using Azureus...did you do any advanced configuration to your Azureus?
    What version of Azureus are you using?
    MSN me if you can...
    [email protected]

  • Launching Mail becomes a runaway process and creates a massive memory leak in the kernel task

    I have 16gig of ram, my kernel task is currently using 12gig, Mail is no longer responding while using all remaining ram
    Mail has been jammed at 100% of one i7 core for about 2 hours now, disk activity is almost nonexistant.
    it was running poorly yesterday, rebuilding the mailboxes did not yeild a positive effect
    permissions and drive check out
    Quicklook is also reporting a lot of bs when finder windows are open:
    example:
    10/26/13 1:40:20.985 PM quicklookd[14056]: Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x603] flags: 0x8 binding: FileInfoBinding [0x503] - extension: mp3, UTI: public.mp3, fileType: ???? request size:32 scale: 1
    I hate the new activity monitor so much, none the less, "Memory Pressure" is pinned
    Seeing a whole lot of this in the console as well:
    10/26/13 2:57:11.000 AM kernel[0]: SMC::smcReadKeyAction ERROR TM6P kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff802ba32000
    About to reset the SMC and NVRAM in hopes of a magical unicorn
    here is the profile output from EtreCheck:
    Hardware Information:
              MacBook Pro (17-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,3
              1 2.3 GHz Intel Core i7 CPU: 4 cores
              16 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 512 MB
              AMD Radeon HD 6750M - VRAM: 1024 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0
              AirPlay: Version: 1.9
              AppleAVBAudio: Version: 2.0.0
              iSightAudio: Version: 7.7.3
    Startup Items:
              M-Audio Firmware Loader - Path: /Library/StartupItems/M-Audio Firmware Loader
    System Software:
              OS X 10.9 (13A603) - Uptime: 2 days 22:34:21
    Disk Information:
              OWC     Mercury Pro RAID disk0 : (2 TB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        JumboZero (disk0s2) /Volumes/JumboZero: 2 TB (25.5 GB free)
              WD      My Book         1105 disk6 : (4 TB)
                        EFI (disk6s1) <not mounted>: 209.7 MB
                        4TB Beast (disk6s2) /Volumes/4TB Beast: 4 TB (14.97 GB free)
              TOSHIBA MK7559GSXF disk2 : (750.16 GB)
                        EFI (disk2s1) <not mounted>: 209.7 MB
                        Flux (disk2s2) /: 749.3 GB (301.59 GB free)
                        Recovery HD (disk2s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple, Inc. Keyboard Hub
                        Logitech USB-PS/2 Optical Mouse
                        Apple, Inc Apple Keyboard
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Matrox DualHead2Go-DP
              Data Robotics Inc. Drobo 17.59 TB
                        EFI (disk5s1) <not mounted>: 209.7 MB
                        Drobo (disk5s2) /Volumes/Drobo 1: 17.59 TB (11.09 TB free)
              CPS OR2200LCDRM2U
              Apple Computer, Inc. IR Receiver
    FireWire Information:
              0x1F2 Vendor 0x1F2 Device 0x101800 400mbit - 400mbit max
              0x30E1 Oxford IDE Device 00 400mbit - 400mbit max
                        EFI (disk4s1) <not mounted>: 209.7 MB
                        Terabyte (disk4s2) /Volumes/Terabyte: 999.86 GB (13.63 GB free)
              Other World Computing Oxford ATA Device 00 800mbit - 800mbit max
                        EFI (disk3s1) <not mounted>: 209.7 MB
                        Payload (disk3s2) /Volumes/Payload: 2 TB (181.19 GB free)
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              com.Logitech.Control          Center.HID
              com.TrustedData.driver.VendorSpecificType00          (1.7.0)
              com.attotech.driver.ATTOiSCSI          (3.4.1b1)
              com.paceap.kext.pacesupport.snowleopard          (5.9)
              com.motu.driver.FireWireAudio          (1.6
    Problem System Launch Daemons:
              [failed] com.apple.AOSNotificationOSX.plist
              [failed] com.apple.installd.plist
              [failed] com.apple.softwareupdated.plist
              [failed] com.apple.wdhelper.plist
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [loaded] com.adobe.SwitchBoard.plist
              [loaded] com.attotech.iscsid.plist
              [loaded] com.datarobotics.ddservice64d.plist
              [loaded] com.klieme.TimeMachineScheduler.plist
              [loaded] com.novation.automap.pluginhelper.plist
              [loaded] com.paceap.eden.licensed.plist
              [loaded] org.macosforge.xquartz.privileged_startx.plist
              [loaded] PACESupport.plist
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist
              [loaded] com.adobe.CS5ServiceManager.plist
              [loaded] com.Logitech.Control Center.Daemon.plist
              [loaded] com.motu.MOTULauncher.plist
              [loaded] org.macosforge.xquartz.startx.plist
    User Launch Agents:
              [loaded] com.adobe.AAM.Updater-1.0.plist
              [loaded] com.adobe.ARM.[...].plist
              [failed] com.google.GoogleContactSyncAgent.plist
              [loaded] com.leadertech.PowerRegister.LGT2.c59807af95d106639fca8f10676ced62.plist
              [failed] com.logmein.rescue.sa.0372bc40-2c4a-4755-a5a8-ae3c68b59ab8.plist
              [failed] com.logmein.rescue.sa.2449ad28-4b5d-4836-b3d5-7adfb1c387c7.plist
              [loaded] com.valvesoftware.steamclean.plist
    User Login Items:
              CheatSheet
              Activity Monitor
              Clipboard History
              VMware Fusion Helper
              MagicMenu
              Dropbox
              Android File Transfer Agent
              Terminal
              Console
              Matrox PowerDesk
              Dictionary
              ShuttleHelper
              AutomapServer
              DDAssist
    3rd Party Preference Panes:
              Flash Player
              Flip4Mac WMV
              FUSE for OS X (OSXFUSE)
              Logitech Control Center
              M-Audio MIDISPORT 8x8
              TimeMachineScheduler
              Tuxera NTFS
    Internet Plug-ins:
              AdobePDFViewer.plugin
              AdobePDFViewerNPAPI.plugin
              Default Browser.plugin
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              Flip4Mac WMV Plugin.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              QuickTime Plugin.plugin
              RealPlayer Plugin.plugin
    User Internet Plug-ins:
    Bad Fonts:
              None
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: NO
              Volumes being backed up:
                        Payload: Disk size: 2 TB Disk used: 1.82 TB
                        Flux: Disk size: 749.3 GB Disk used: 447.7 GB
              Destinations:
                        Drobo [Local] (Last used)
                        Total size: 17.59 TB
                        Total number of backups: 2
                        Oldest backup: 2013-03-04 17:05:27 +0000
                        Last backup: 2013-10-22 13:23:41 +0000
                        Size of backup disk: Excellent
                                  Backup size 17.59 TB > (Disk size 2.75 TB X 3)
    Top Processes by CPU:
                 100%          com.apple.internetaccounts
                  10%          Activity Monitor
                   9%          Transmission
                   3%          WindowServer
                   3%          sysmond
                   1%          EtreCheck
                   1%          Dock
                   1%          Mail
                   0%          configd
                   0%          powerd
    Top Processes by Memory:
              2.43 GB            Mail
              426 MB             com.apple.internetaccounts
              115 MB             Finder
              98 MB              Transmission
              98 MB              CVMCompiler
              49 MB              Adium
              49 MB              mds_stores
              49 MB              WindowServer
              49 MB              Console
              33 MB              mds
    Virtual Memory Statistics:
              22 MB              Free RAM
              1.91 GB            Active RAM
              1.90 GB            Inactive RAM
              2.07 GB            Wired RAM
              9.39 GB            Page-ins
              416 MB             Page-outs

    I feel your pain!
    Mac Pro with 32 GB, and Mail takes about 5 minutes to "start" - well, show the Mail Menu. Then, another few minutes to actually draw the window... but wait, it STILL needs more time to actually show the accounts and mail.
    The (stupid) new Activity Monitor show Mail using 12 GB of RAM, and several com plist files also sucking up CPU time and RAM. Why Apple has to dumb-down good information to "Memory Pressure" is beyond me!
    I have reported thsi to Apple, and they had a Support person get in touch with me. I have sent several spindumps and tarball files last week, but no reply. Today, I pinged the support person who said Apple Engineering was reviewing the information, and would likely get back sometime as *maybe* some others were experiencing this problem...

  • CS 5.5 Dynamic Link Server Massive Memory Leak - 16 GB of unusable RAM on a 32 GB Machine

    Hi,
    I do work in AE then save the Project and drag n drop the comp I want to render into Adobe Media Encoder.
    After doing that with a couple of project things start to behave weirdly...
    Juddery Playback & In-responsiveness.
    I use "MenuMeters" to always track my memory....
    Normally when I boot up I will see a miniature green slice of a full wheel(See Pic Below) being used meaning that I have about 31GB of my RAM to play around with.
    That changes after running above scenario and adobe apps in general...
    What happens is that after Purging ALL in After Effects it will purge the RAM that it currently uses BUT it will set that used-to-be-allocated RAM as Inactive and NOTHING that I do can take care of that. Logout wont help. Restart is the only remedy.
    So this below screenshot depicts what happens right after I choose PURGE ALL in AE
    (Gray = Inactive Memory)
    And the following screenshot depicts what happens when I do another RAM preview right after having purged ALL menory
    As you can clearly see AE cannot USE that memory as and thus my RAM preview will be a LOT (16GB to be specific) shorter.
    Any Ideas ?
    If you dont have - MenuMeters, you can follow along with Activity monitor - which will yield the exact same result !

    I figured it out.  It was the event log files in `%SystemRoot%\System32\Winevt\Logs`.  This particular server did not have the standard "overwrite events as needed" as all of the other servers did.  The log files, however, were not
    being pruned so they kept stacking up.
    This explains exactly why over a weekend period there would be hardly any change in the free space file size.  
    The `WinDirStat` software showed this space as "Unknown" space despite "running as Administrator" and I did start to notice the trend of "Unknown" space increasing as I started to track the `WinDirState` screenshots twice a day.
    What eventually led me to the log files was using [Disk Space Fan][1] and comparing the reported sizes.  As you can see, the Windows folder on `WinDirStat` shows 24.6 GB while `Disk Space Fan` shows 116 GB.  Drilling down further into Windows\System32
    and looking at the "Top List" shown in Disk Space Fan I noticed that WinDirStat did not have the `winevt` folder and that it showed 89.7 GB of space usage.
    The local administrator group, which has the Domain Admins added to it, had full control over the folder so understanding why WinDirStat did not pick up these folders is beyond me. 

  • ITunes 7/CoverFlow Massive Memory Leak

    Using CoverFlow with 200 albums uses over 500MB of system memory, and never releases this memory. Even when I return to grid mode, over 300MB are still being used. See http://www.hicks-wright.net/blog.php?id=5162 for a full repro.

    It will get fixed. The issue for those of us with lower speed machines and lower memory is that the software completely crashes for this reason when you switch to view the TV or Movie directory in the Store. In effect, I cannot view those two areas - which means I cannot buy anything - which means that Apple isn't making money. They're not going to fix something that won't benefit them - money is a good motivator to see a quick fix coming.

Maybe you are looking for