0.5 MB program has 832 MB memory usage even before it is run

I just uninstalled and re-installed LabVIEW 2011. I was hoping this would do something to lower the memory footprint. Alas, it did not make any difference. This is what I see:
- When I launch LabVIEW, it uses 94 MB even before I have opened a single VI, i.e. only the front end uses this much memory.
- When I open the VI (the size of the .vi file is 549 KB), memory usage goes up to 836.4 MB. This is before I have even run the program.
- Finally, when I run the program, memory usage jumps to 1.17 GB.
I find this memory usage grotesquely high. Can anyone please shed some light on what can be done? I have uploaded the VI. It's a rather simple VI.
Thanks,
Neil
Attachments:
IP QL to charge - from img.vi ‏446 KB

nbf wrote:
1) If I understand correctly, what you are saying is that when I open the VI, the data structures associated with the intensity charts and waveform graphs are initialized to default values (e.g. 0), so there is memory usage even before the program is run and anything displayed, right?
Yes, a huge array still takes a lot of memory, even though it compresses well for storage inside the VI. Once the VI is ready to run, these arrays need to be allocated in memory.
nbf wrote:
2) Is there an alternative to using the value property node that doesn't duplicate the memory content? (e.g. something like pointer or reference in C++?)
One possiblity are data value references. You can open a DVR and fill it inside the subVI, then extract slices later as needed. If done properly, you can also keep the 2D data in a shift register (yes, please learn about them!).
nbf wrote:
4) Regarding the clearing of the indicators, could you please tell me how to do that, without removing the color ramp settings?
The color ramps can be set programmatically using property nodes based on array min&max and you can assign colors for the ramp values at will.
nbf wrote:
5) You are correct that I am displaying 4000x2000 array data in an intensity graph with 400x200 pixels. But then I change the min/max of the charts/graphs to zoom into the region of interest; I can identify the region of interest only after displaying the full 4000x2000 array of data. I don't know if there is a way around this.
Do you really need to show the 2D data in three different transforms? Maybe one intensity graph is sufficient. You can apply the other transforms on the extracted slices with <<1% of the computing effort. What is the range and resolution of your data? Do you really need DBL or is a smaller representation sufficient (SGL, I16, etc). From looking at the subVI, the raw data is U16. The subVI also involves a coercion to DBL, requireing another data copy in memory. When running, make absolutely sure that the subVI front panel is closed, else additional memory is used for the huge array indicator there. For better performance, you might want to flatten the subVI to the main diagram or at least inline it.
nbf wrote:
6) Yes, I use the continuous run mode instead of a toplevel while loop. Is there a disadvantage to doing that?
As Samuel Goldwyn ("A hospital is no place to be sick") might have said: "Run continuously is no way to run a VI"
Run continuously is a debugging tool and has no place in typical use. What it basically does is restart the VI automatically whenever it completes, and as fast as the CPU allows. It is mostly useful to quickly test subVIs that don't have a toplevel loop and play with inputs to verify results. Any toplevel VI needs a while loop surrounding the core code. Period!
So, my suggested plan of action would be:
Use a while loop around your toplevel code
Decide on the minimal representation needed to faithfully show the data.
Keep a single copy of the 2D array in a DVR
You optionally might want to undersample the data for display according to the pixel resolution and use other means of zooming and panning. For zooming, you could extract a differently sampled small array subset and adjust x0 and dx of the axes accordingly.
Use a single 2D graph (if you need to see the various transforms, add a ring selector and transform the 2D array in place. Never show more than one intensity graph.
See how far you get.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Am running Firefox 7.0.1 now. Normal memory usage is 157mb but when running Facebook (not running apps nor games), it goes up to 553mb Why?

    Am running Firefox 7.0.1 now. Normal memory usage is 157mb but when running Facebook (not running apps nor games), it goes up to 553mb Why?

    I encountered the same type of problem. Firefox running terribly slowly and slowing down my entire machine (Core i5 with 256GB SSD). Searching the forums, I found a couple of things about troubleshooting performance issues, one of which was to use '''hardware acceleration''', that is on by default. It was turned on on my PC, '''so I tried deactivating it, and it worked!'''
    So doing the exact opposite as Mozilla support said solved the problem. It is really a pain now to work with Firefox. I'm using it because I have no choice, but I'd recommend IE and Chrome over Firefox... Whatever, the market will decide once Firefox has become to crappy...

  • Window Memory usage even after closing windows

    I've included links to a test app that does nothing but
    launch a window, play a sound, close window / repeat.
    When application launches it uses about 20mb of memory. When
    you click on the only button, it will launch a secondary window
    that will simply play a wav file. (I set the volume low but you may
    want to mute it :D)
    After launching and closing the window several times the
    memory usage goes up considerably and *never* falls back a
    significant %. (I got it to about 100MB before I decided to quit
    trying to increase the memory usage. Right now it's been running
    w/o any user interaction since opening about 10 windows and it's
    fairly stable at around 61MB (although that appears to be
    increasing w/o user interaction).
    Does anyone know of any methods I can use to ensure that the
    memory consumed by secondary windows does not just persist forever
    even after closing the window? Is there something I'm doing wrong
    here?
    Example Code:
    http://www.vf-server.com/air/memorytest.air
    (AIR)
    http://www.vf-server.com/air/memorytest.zip
    (source ZIP)
    Note: When I *minimize* the window it looks like garbage
    collection is forced and app drops back to 11MB (on restore back to
    19mb).
    Edit: note in your task manager, application appears as
    JBTest.exe

    You can call System.gc() to force the garbage collector to
    run.
    Try removing the event listeners when they aren't needed
    anymore. I think it is more difficult for the gc to cleanup objects
    when there are host objects (like Sound) refering to JavaScript
    objects and JavaScript objects refering to host objects, so you
    need to be especially careful about those. It SHOULD clean them up
    eventually, but it may take longer for it to figure out that those
    objects are no longer in use.
    You might also clear the secondaryWindow reference in the
    parent document when the window closes. That reference might retard
    garbage collection, too.

  • Getting memory usage details in ABAP program

    Hello,
    Is there any method to get the memory used by the program and control the program like restricting the memory usage to some limit or any other control measures which can be taken in the program itself if the memory usage by the program exceeds a maximum limit. Or kindly let me know where i can find the details.

    Hi,
    > Is there any method to get the memory used by the program
    investigate the methods of class cl_abap_memory_utilities (e.g. GET_TOTAL_USED_SIZE)
    >and control the program like restricting the memory usage to some limit
    report rsmemory can change the systemwide quotas
    >or any other control measures which can be taken in the program itself if the memory
    >usage by the program exceeds a maximum limit
    needs to be implemented manually if neede program specific...
    Kind regards,
    Hermann

  • Very High Memory Usage

    It never happened before and today it overloaded my PC so i had to force restart.
    I use 2 keyword research applications. They start to shoot up to  almost 600MB of RAM when i am researching keywords. When i minimize  program after research, the memory usage drops to 32MB. When i restore  window back, these 32MBs turn back into 600MB.
    I tried downgrading Adobe Air to version 2.0.4 and that didn't help. Upgrading to the newest version didn't help.
    What is the problem?

    Hi Boris,
    The memory usage is very dependent on the application and how it handles it's resources.  Have you contacted the developers of the two applications to see if your findings are consistent with their testing?  You mentioned that the memory footprint is the same between 2.0.2 and 2.5, do you know if it increased after 1.5.3?
    Having the memory usage drop to a fraction of it's normal size when minimized is consistent with normal Windows behavior.
    Thanks,
    Chris

  • Programmatically profile memory usage on multiple VIs

    I need to programmatically profile the memory usage (daily) on a set of designated VIs and record the results for future comparison.  How can I configure the profiler to start, then run a sub VI, and then stop the profiler?  Also, how can I save the results into a spreadsheet?

    Thanks for the reply Stephanie.  What I need to do, however, is programmatically set up the Memory Profiler (Tools>>Profile>>Performance and Memory and then select the "Profile memory usage" checkbox and then select the "Memory usage" checkbox), start it, programmatically run my selection of sub VIs, and then stop the profiler, and then save the data to a specific location.  All of this has to happen without input from a user.  It will run automatically at pre-determined intervals.
    Understanding how to programmatically set up and run the profiler is where I need help.  I couldn't find any functions that dealt with the memory profiler.

  • Sql memory usage increase each time win app runs

    Hi,
    Sql memory usage increases each time when win app runs. Why does it work like this? Is it normal ?
    I restart SQL Server 2012. Only my win app uses SQL server.
    First run of winapp.
    start memory usage : 211.800 KB
    close memory usage: 528.136 KB
    Second run of xaf app.
    start memory usage : 528.136 KB
    close memory usage: 996.844 KB
    Third run of xaf app
    start memory usage : 996.844 KB
    close memory usage: 997.640 KB
    Fourth run of xaf app
    start memory usage : 997.640 KB
    close memory usage: 1.104.864 KB

    Hi,
    Sql memory usage increases each time when win app runs. Why does it work like this? Is it normal ?
    Yes, it is perfectly normal for SQL Server to acquire and hold onto large amounts of memory indefinitely.  This memory improves performance by avoiding disk I/O, query plan compilation and costly memory management. 
    On a dedicated SQL Server you should usually let SQL Server dynamically manage memory.  It will release memory if it detects memory pressure.  But if you often run other applications on the server than need significant amounts of memory (e.g. IIS,
    application services), you may want to set max server memory as suggested.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • JVM performance in case of JVM memory usage is high

    Hi All
         Here is some query about JVM performance in case of JVM memory usage is high.
         I have a server of 16GB. For JVM 12GB and for OS 4GB.
         Let say, My Application creating many Unnecessary Objects and consumes very high memory.
         Also, there is a gaurenty that limit of memory is it never exceed 2GB.
         No, in worst scenario memory used by JVM is 2GB.Ok.
         I have free memory available for JVM is 10GB(16GB - 2GB - 4GB(any OS memory usage)).
         Now, for any Application processing I have 10GB.
         So, does it affect application processing for which I have 10GB.
         I mean does JVM performance decreses in high JVM memory usage even I have occupied more memory to JVM.

    Hi All
         Here is some query about JVM performance in case of JVM memory usage is high.
         I have a server of 16GB. For JVM 12GB and for OS 4GB.
         Let say, My Application creating many Unnecessary Objects and consumes very high memory.
         Also, there is a gaurenty that limit of memory is it never exceed 2GB.
         No, in worst scenario memory used by JVM is 2GB.Ok.
         I have free memory available for JVM is 10GB(16GB - 2GB - 4GB(any OS memory usage)).
         Now, for any Application processing I have 10GB.
         So, does it affect application processing for which I have 10GB.
         I mean does JVM performance decreses in high JVM memory usage even I have occupied more memory to JVM.

  • Z87-G45, 80%+ Memory Usage in Task Manager

    hey guys ran into another problem 
    i'm using windows 8.1 it's a fresh install and i'm running into high memory usage problem. I was running at 99% while idling earlier (system was lagging hard) so i system restored to the previous day and everything was fine until now. I see it slowly creeping up. While typing this i'm running at 84% Memory usage which seems absurdly high.
    I'm using 8gb of Gskill Ram so I tried to follow the sticky above, but my BIOS would not let me changed anything under the "Advanced DRAM settings" not sure what that is either?
    Anyone got a quick fix to this problem?

    Just updated my killer network drivers because i saw that sticky about people having problems with it.
    This dropped my RAM down to 18% while typing this at this very moment. I'll let you know if it creeps up again.
    My next question I guess is what is normal memory usage on windows 8.1?

  • I would like to upgrade my OS to the latest version.  I now have 10.6.8 and my machine has 1Gb of memory.  Need 2Gb for the new OS.  Is is possible (and practical) to add memory to a machine that's five years old?

    I would like to upgrade my OS to the latest version.  I now have 10.6.8 and my machine has 1Gb of memory.  Need 2Gb for the new OS.  Is is possible (and practical) to add memory to a machine that's five years old?

    You can put two 2gb RAM sticks in your model 2,1 but it can only use 3,3gb. This is a hardware limitation and cannot be changed.
    http://en.wikipedia.org/wiki/3_GB_barrier
    http://www.everymac.com/systems/apple/macbook_pro/faq/macbook-pro-core-2-duo-3-g b-memory-limitation-details.html
    OWC tests have found that there is a slight speed increase with having two 2gb sticks in rather than one 1gb and one 2gb. Your model is in the gray lines at the bottom of the graph. http://eshop.macsales.com/shop/Memory_Benchmark/Apple_MacBook/
    You can buy Lion for $29 from the App Store witht a model 2,1 MacBook. Lion will require at least 2gb of RAM but really needs 4gb to run smoothly. As for programs see this list for compatibility with 10.7 http://roaringapps.com/apps:table
    Lion doesn't run any Power PC programs. To see if you have any Power PC programs go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up select Applications under Software. Then look under Kind to see if any of your applications are listed as Power PC. Universal and Intel will run under Lion.
    Before Mac switched to Intel processors they used Power PC processors from 1994 to 2005. Power PC 601 through 604, G3, G4 and G5. Applications written for the Power PC processors need the application called Rosetta to run on Intel processors. This was part of the Operating System in 10.4 and 10.5 but was an optional install in 10.6. With 10.7 Lion Apple dropped all support for Power PC applications.
    These are good online stores for Mac compatible RAM
    OWC http://eshop.macsales.com/shop/memory/MacBook/DDR2/ - They offer Mac tested RAM at very good prices.
    Crucial Memory http://www.crucial.com/ - good place to buy RAM from all over the world. They also have an excellent memory selector that allows you to choose memory based on your computer's model
    Data Memory Systems http://www.datamemorysystems.com/apple-memory.asp - another good, cheap place to buying RAM if you live in the U.S.
    Here are instructions on replacing RAM in a MacBook with a removable battery. http://homeoffice.consumerelectronicsnet.com/articles/viewarticle.jsp?id=44404
    If you don’t have the tools to open up the MacBook OWC has a set for $5
    http://eshop.macsales.com/item/OWC/TOOLKITMHD/

  • How can I avoid this message and the crash that follows? -"the program has unexpectedly stopped working and will close"

    I am working on some books that I have had no problem creating in Indesign  and this week, I was doing something and got an error message and had the program crash while I was working on something and lose my unsaved work. It happens all of a sudden and has been frustrating. Thought it was an installation issue, but this also happens on the newest version of CS6.
    The original files (“books”) were created in CS4.
    What I’m doing is copying a template for the appendix that was established in the first book into all subsequent books.
    Here is the process that I used on CS4 for the first 10 books –
    1.       open a file that already has the completed new appendix.
    2.       Open a file that needs the new appendix
    3.       Select the appendix pages from the pages menu in the completed file and “move” them to the new file.
    4.       Voila!
    When I started using CS5 this worked for one book. Now the last book is giving me an error message during step 3. So, I select the pages I want to move and click “move” and then I get a message that says “the program has unexpectedly stopped working and will close”. This is the same message I got with CS6.

    Same problem here. Firefox keeps freezing, sometimes for 5 minutes, then either starts working again really slowly or I get the plug-in error crash. This last time I copied what windows said about the error. This is the info:
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: plugin-container.exe
    Application Version: 1.9.2.3814
    Application Timestamp: 4c12b3be
    Fault Module Name: ntdll.dll
    Fault Module Version: 6.0.6002.18005
    Fault Module Timestamp: 49e03821
    Exception Code: c0000005
    Exception Offset: 00048b02
    OS Version: 6.0.6002.2.2.0.768.3
    Locale ID: 1033
    Additional Information 1: ca4b
    Additional Information 2: 0db6cc4f646c2246ddf8a462e3add7af
    Additional Information 3: 5b21
    Additional Information 4: e5b7e758762c24b02e09abea0b4585f4
    Don't know what it means or if it will help solve the issue, but thought I would share it.
    All I know is that I am about to do something I never thought I would, switch to Chrome.

  • I recently downloaded a 10.6.8 update and a game program has now been reduced in size.  It's specifications are set for full screen, but it is about 1/4 of the size.  Any ideas how to fix?

    I recently downloaded a 10.6.8 update and a game program has now been reduced in size.  It's specifications are set for full screen, but it is about 1/4 of the size.  Any ideas how to fix?

    Hi, I have got the same problem but all is 1/4 the size have you fixed it?

  • How many times a program has been run?

    Is there a transaction or table or something that tracks how many times a program has been run?   The number of times the program has been run plus using the programs' attributes for last changed would help me a lot.  We need this for an archiving study to determine of the client has set up the configuration correctly since they went live and have been executing the correct programs.  Thanks and mucho rewards if someone has an answer.  FYI - I have done a forum search and could find nothing on this topic.  I have looked at the tables TADIR and no help, as well as transaction STAT.

    I know ST03N transaction can be used extensively to determine how the programs were executed or even to know who all are using a particular transaction...
    I tried to find if we can find the number of executions of a program through this transaction, I could not find myself...
    try if you can find it through this tcode.
    Phani

  • Has anybody had the following error while trying to download iTunes 10.5? There is a problem with Windows Installer package. A program required for this install to complete could not be run.

    Has anybody had the following error while trying to download iTunes 10.5? There is a problem with Windows Installer package. A program required for this install to complete could not be run.

    Go to "control panel" then "add or remove programs".  Highlight "Apple software update"  Choose "change" click "Repair"  This should do the trick.  Then download and install iTunes 10.5 again.

  • I have a MacBook Pro with Snow Leopard. After connecting my HP Photosmart D110 to it, the printer works but the scanner doesn't. The message is"The scan cannot be performed because another program has control of the HP imaging device". Can anyone help?

    I have a MacBook Pro with Snow Leopard. After connecting my HP Photosmart D110 to it, the printer works but the scanner doesn't. The message is"The scan cannot be performed because another program has control of the HP imaging device". Can anyone help?

    Found the answer on the HP site. It's the original software that works with this printer OS X 10.6!!
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en &cc=us&prodTypeId=18972&prodSeriesId=3558902&prodNameId=3562006&swEnvOID=219&swL ang=8&mode=2&taskId=135&swItem=ma-60835-3

Maybe you are looking for

  • When I'm filling in the form on a website Firefox jumps down past the next block and I have to go back using my mouse cursor

    For example on Find-A-Grave when filling in the form to add a memorial there are several blocks that you fill in including location. For some blocks you type in the information and others are pick one of the preset selections. I generally hit the tab

  • Re-issue of o/p type of a billing document

    Hi, I have requirement where the a billing document needs to be printed and faxed/emailed to the customer when the o/p type is issued the first time(or the document is saved initially). I'm using SMARTFORM to accomplish it. Now, the user wants to rei

  • How do you change the main contact in contacts/icloud?

    I've noticed in my contacts list I have one contact that is listed in blue and has a sillouete off to the right.  Also in my icloud contacts that same contacts has "me" on the contact Picture.  How do I change or delete this?

  • Dell GX790 Imaging Problem

    We are running Zenworks 10.2 and have not updated due to having over 1200 pc`s on the system and cannot afford to have connection issues as this is our main method of imaging and remote access support. However we may now need to look into updates as

  • How can I detect and remove keystroke logger software?

    I suspect that my soon to be ex-husband has surreptitiously installed keystroke logger software (or other "spyware") onto my MacMini.  Is there a way to detect it and remove it?   Any recommendations for protection software? Or, is it better to wipe