How to monitor memory usage in a cRIO controller?

I have an application where I suspect the customer is operating in a hotter environment than they are claiming.  I prepared the RT host vi to log a simple text file directly on to the RT's C: drive.  In this case I'm only logging the transition of events when the chassis temperature exceeds 70C and then becomes less than 60C along with a date and time stamp.  (It's not continually logging data.)  However, I'm concerned that over time (i.e months from now after I've long forgotten the project)  the file will get overly large and affect system operation.  There are articles that deal with memory management but I'm not sure how to interpret them.  They talk about RAM.  Is RAM the same as the C: drive on the controller?  How do I determine the available memory on the C: drive; like using "dir" in the old DOS days?  What is the best Knowledge Base article that deals with this issue.  This system is a stand alone application.  (The host PC is not normally connected.)  I am using a cRIO-9012 controller and LV v.8.6.
Dave

RAM on the controller is not the same as the C: drive. With respect to the controller, you can think of it in the same terms as your computer. RAM is volatile memory and your C: drive is non volatile flash memory.
Depending on the frequency of the temperature excursions above and below your 70C threshold, the service life of the controller and the method you used to append to the file, there could be a number of issues that may creep up over time.
The first, and the one you brought up is the size of the file over time. Left unchecked this file could grow continuously until the system literally runs out of flash memory space and chokes. Depending on how your are appending data to this file, you could also use more than a trivial slice of processor time to read and write this big file on disk. While I have not personally ever run one of the RT controllers out of "disk space", I can't imagine that any good could come of that.
One thought is to keep a rolling history of say the last 3 months. Each month, start a new file and append your data to it during the course of the month. Each time a new file is created, delete the data file from something like 3 months ago. This will ensure that you will always have the last 3 months of history on the system, however the monthly deletion of the oldest data file will limit you to say 3 files at whatever size they happen to be. Unless there are hundreds of thousands of transitions above and below your threshold this should keep you in good shape.
I also eluded to the method you use to write to this file. I would ensure that you are appending data using the actual file functions and not first reading in the file, appending your data as a string then writing the entire file contents back to disk. In addition to causing the highest load on the file system this method also has the largest system RAM requirements.

Similar Messages

  • How to monitor memory usage of "Memory-based Snapshot" executable (MRCNSP)  in Linux?

    We have noticed in the past that MRCNSP/Memory-based Snapshot program executable consumes around 3.8 GB of memory on the linux VM. I understand that value change planning  is 32 bit executable so 4 GB is the limit. I want to monitor the memory usage of the executable when the program runs. The program usually runs overnight. I wanted to check with you experts if you have any MRP executable memory usage monitoring script that I could use.
    I found the metalink note OS Environment and Compile Settings for Value Chain and MRP/Supply Chain Planning Applications (Doc ID 1085614.1) which talks about "top -d60 >>$HOME/top.txt". Please share your ideas for monitoring this process.
    We do not use Demand Planning or Demanta or Advanced Supply Chain Planning which are 64 bit application. That is our future direction.
    Environment:
    EBS : R12.1.2 on Linux. The concurrent manager is on 64 bit linux VM, web services on 32 bit VMs.
    DB: Oracle DB 11.2.0.3 on HP UX Itanium 11.31. Single database instance.
    Thanks
    Cherrish Vaidiyan

    RAM on the controller is not the same as the C: drive. With respect to the controller, you can think of it in the same terms as your computer. RAM is volatile memory and your C: drive is non volatile flash memory.
    Depending on the frequency of the temperature excursions above and below your 70C threshold, the service life of the controller and the method you used to append to the file, there could be a number of issues that may creep up over time.
    The first, and the one you brought up is the size of the file over time. Left unchecked this file could grow continuously until the system literally runs out of flash memory space and chokes. Depending on how your are appending data to this file, you could also use more than a trivial slice of processor time to read and write this big file on disk. While I have not personally ever run one of the RT controllers out of "disk space", I can't imagine that any good could come of that.
    One thought is to keep a rolling history of say the last 3 months. Each month, start a new file and append your data to it during the course of the month. Each time a new file is created, delete the data file from something like 3 months ago. This will ensure that you will always have the last 3 months of history on the system, however the monthly deletion of the oldest data file will limit you to say 3 files at whatever size they happen to be. Unless there are hundreds of thousands of transitions above and below your threshold this should keep you in good shape.
    I also eluded to the method you use to write to this file. I would ensure that you are appending data using the actual file functions and not first reading in the file, appending your data as a string then writing the entire file contents back to disk. In addition to causing the highest load on the file system this method also has the largest system RAM requirements.

  • How to capture memory usage for web application

    In OATS openscripts, how to capture memory usage for web application? Does it have the exisitng java method that we can call to get the memory data (e.g. peak bytes, private bytes) consumed by web application?

    JProbe

  • How to monitor memory on Cisco ACE Appliance 4710?

    I'm trying to monitor the memory usage in balancers Cisco ACE Appliance 4710 with version A3 (2.2), but the OIDs cpmCPUMemoryUsed (.1.3.6.1.4.1.9.9.109.1.1.1.1.12) and cpmCPUMemoryFree (.1.3.6.1.4.1.9.9. 109.1.1.1.1.13) not work.
    What the right OID to monitor memory usage in balancers Cisco ACE 4710 Appliance?

    HI,
    You need to use  CISCO-ENHANCED-SLB-MIB .
    cpmProcExtMemAllocatedRev .1.3.6.1.4.1.9.9.109.1.2.3.1.1 (this gives the memory allocated to each process)
    You can also read up on the mib
    Hope this helps
    Venky

  • How to determine memory usage?

    Is there something built into OSX that permits me to monitor and/or log memory usage?
    I use Logic Pro and FCP and would like to know if I reaching the limits of my memory (4GB) with the type of work I do.
    Thanks, Rob.

    How To Determine Your Memory Needs >>
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    ITMS: MacOSG Podcast
     An Apple User Group 
    Disclaimer required by Apple Discussions Terms of Use: MacOSG - a non-profit Apple User Group - may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How to calculate memory usage base on graphic utilization

    Dear All ,
    We have t2000 server with solaris 10 and 15 zones inside , and install SMC server include module ,Harddware configuration is 16 Gb Memory , 4 x 72 gb Hardisk and Swap 4Gb .,from menu Manage container manager , we select host of the server then click utilization , but i see memory usage 19759 Mb , How to calculate memory from this graph ? cause maximum ream RAM only 16 Gb in our server.
    Regards
    Hadi

    PL/SQL collections are stored in the PGA. So you can monitor the PGA utilization of the session(s) to see how much PGA they use.
    SELECT sid, name, value
      FROM v$statname name
           JOIN v$sesstat using (statistic#)
    WHERE name.name in ('session pga memory', 'session pga memory max' )That will show you, for each session, the current PGA consumed by the session and the high water mark of PGA consumption by that session. You can join to V$SESSION and add additional predicates to narrow things down to the particular sessions you are interested in.
    Justin

  • Withdraw permission allowing you to monitor memory usage

    I now often have to either force quit, reboot and have started having kernel "panics" since I agreed to allow Firefox monitor CPU usage. I am still running OS X 10.6.8 on my Mac's. I have had no problems with anything since installing that OS X.
    However, from time to time with the latest install of Firefox 7.0.1 I find that the program and/or my computer "locks" up and appears unresponsive. I left Firefox active and resident on my computer last night and again everything will non-responsive. I opened activity monitor and noticed that Firefox was consuming 283 MB of real memory (at present 298.6 MB) and I have this an an other tab for the Seattle Times open. I withdraw my permission to allow Firefox to monitor my memory usage and need to know how to remove the cookie or what ever governs that)

    Come on Firefox! Since your upgrades starting with FF4, Firefox has been acting like garage. It locks up constantly and I find myself having to use FF3.6.23 just to get my work done.
    The most frustrating thing is we never hear from you. We don't know if you hear us, if you're working on it, or if you just plain don't care! I've been reacquainting myself with Safari and Google Chrome just in case I get so fed up I can't take it any more.
    I believe you're monitoring mine also.
    I'm on a March 2007 Mac Book Pro using OSX 10.6.8

  • How to minimize memory usage with VM settings

    Using JDK 1.4.2, I am trying to minimize the memory usage of my application.
    Our GUI application consumes about ~20MB of heap space during normal operation, but it can easily grow to 50MB in some rare cases (Special feature accessed by user).
    We have to be able to run multiple instances (separate process/VMs) of this application on low end Windows PCs.
    The applications don't usually run for very long (less than 8 hours).
    Here is my problem.
    If I set the -Xms=20M -Xmx=64M, it works fine, but the GC is not very aggressive and soon, the application starts using a lot of memory, even if it is not really needed. And it never returns the memory to Windows OS.
    So each VM take more memory than really needed, which causes significant swapping on these low end PC (little RAM available).
    If I reduce the -Xmx flag, than I run out of memory in the rare cases where I need the full memory.
    Ideally, I would like to configure the GC to be more aggressive, i.e. the GC should collect instead of getting additional memory from the OS when possible.
    I read a few papers on Sun's web site about HotSpot tunning, but most of them are geared for large servers.
    Thanks!
    Francois

    And you are using the task manager to determine how "much" memory is being used correct?
    I suggest that you search out and read the numerous threads on this site that discuss that subject.

  • How to monitor CPU usage and performance on a Hyper-V server with several VM's

    I have a server that is running Windows 2008 64 bit Hyper-V, with 8 gigs of RAM and Intel Xeon X3440 @ 2.53 Ghz, which gives me 8 logical cores in the performance monitor on the host system.
    I have set up three Virtual Machines, all running Windows 2008 32 bit.
    Build server, running Team City
    Staging server
    SQL Server, running SQL Server 2005
    I have some troubles with the setup in that the host monitor remains responsive at all times, even though the VM's are seemingly working at 100% cpu and are very sluggish and unresponsive. (I have asked a separate question about that.)
    So the question here is: What is the best way to monitor how the physical CPU's are actually utilized? The reason I am asking is that I am being told that i cannot reliably use the task manager to monitor CPU usage in a VM.

    First, you have to remember that in Hyper-V that the "host" is called a parent partition and it really just like a virtualized guest with special permissions and roles. Just like any other child/guest, when you open up Task Manager, you can not see the CPU
    usage of the other children on the server.
    Ben Armstrong has a good explanation of this here:http://blogs.msdn.com/virtual_pc_guy/archive/2008/02/28/hyper-v-virtual-machine-cpu-usage-and-task-manager.aspx
    To summarize his post, you need to check three things to get an accurate picture of CPU utilization:
    View the CPU usage on each guest - this is available through Hyper-V Manager or Performance Monitor.
    CPU usage due to context switching - this is the perfmon counter called % Hypervisor Run Timeunder Hyper-V Hypervisor Virtual Processor
    Child partition worker process - vmwp.exe running on the parent partition (1 per child). This handles Hyper-V operations like saving
    state.

  • How to check memory usage of a debug

    I am very new, sorry for any newbishness on my part.
    Is there a way to track how much memory your debug is using?  I am trying to make a game, and I have 2 ways of doing something.
    One with an array of square objects doing hitTest, and one only 1 object and an array of cords doing a nested if{}.
    I want to see what each of these are doing in terms of memory usage during runtime and which one would be better.
    (added)
    Specificly not just which one of these is better, but also as different things are applied, I want to test how each of these things responds and which one would slow down a computer less.  And later on as things progress I want a way to test it.

    Hi there
    What Adobe product are you using? What you need to do is click the link below and locate the forum that is specific to the product you are using. Then re-post your question there.
    What you have done is the equivalent of wandering into a hospital and saying you feel ill. Where exactly do you feel ill? You may need a foot specialist, a heart specialist, a brain specialist, etc.
    Click here to visit the main forums chooser page
    Cheers... Rick

  • How to reduce memory usage when loading bitmaps from the library?

    When I use BitmapData.loadBitmap() to load an image from the library and then attachBitmap() to add it to a MovieClip it takes a lot more memory as opposed to just having the same image inside a MovieClip statically in a frame on it's timeline.
    The function dispose() not only clears the BitmapData object but also destroys the previously attached bitmap inside the MovieClip, so it can not be used to free any memory.
    Is it how it is supposed to be or is there any other way to dynamically attach bitmaps with memory usage comparable to just having them on stage?

    no, you use attachMovie() to create instance from library movieclips that have a linkage id.
    you can then create a bitmapdata instance and use the draw() method to overlay as many as needed.

  • How to reduce memory usage?

    OK - I've read through a ton of posts that discuss the "Out of memory" problem in Encore, but what can I do to reduce memory usage?
    I'm trying to produce a very simple Blu-Ray (h.264) project in Encore CS3 on Windows Vista. There are 8 or 9 timelines, a main menu, and 6 sub-menus. Each sub-menu has six static buttons. There are no transitons or motion menus. When I load the project, Task Manager says Encore is using about 1.3 GB RAM. I constantly get "out of memory" errors.
    I've loaded the same project on Vista 32-bit w/ 4GB RAM and Vista 64-bit w/ 8 GB RAM. Same behavior on both.
    Two questions:
    1. Why does Encore need 1.3 GB RAM for such a simple project?
    2. How do I reduce the memory usage?
    TIA for help on the PITA,
    rgames

    Please check with below link, if this can help.
    http://forums.creativecow.net/thread/145/863785#863796

  • Activity monitor memory usage pie chart gone?

    What happened to the pie chart that sits in the dock that shows memory usage?  I found this very useful in the past, and Mavericks seems to have removed it from the dock options.

    Uhhh, I know it's a bit late for this but...
    darlingdearie wrote:
    I don't have a dock icon called "memory pressure graph".
    I have
    CPU Usage
    CPU History
    Network Usage
    Disk Activity
    so it's hard to know what you're taking about when referring the the "memory pressure graph".
    Please clarify. Thanks!
    ... it sounds like you have a previous version of the Activity Monitor.  The one that comes with 10.9 has
    CPU
    Memory
    Energy
    Disk
    Network
    The memory pressure is at the bottom of the Memory tab.

  • Resource monitoring - memory usage

    I typically use the system monitor on our SLES11 SP2 server (OES11 SP1). The server has 48 GB of memory as our backup software, Arkeia, loves memory. When monitoring resource usage during an Arkeia backup job, I notice that my memory usage remains around 9.4 GB. However, if I look at the process table, my Arkeia job is using well over 16 GB alone.
    So the questions are : Why the difference? And is this a bug?
    The one thing that comes to mind is the resource monitor is only looking at OS memory usage and is not adding "user process" memory. Any thoughts on this? Chris.

    What exact tool(s) are you using to monitor Arkeia's memory usage, and the overall memory usage? Can we see their output please? I'd guess they're really looking at different things.

  • Preload - how to see memory usage?

    excuse me for revitalizing this, but this:
    lucke wrote:Set PRELOAD_OPTS to verbose 10.
    still is neccesary to get an output in the log.
    btw. my log doesn't inform the memory-usage.
    is there an easy way to see how much memory it actually uses?
    Shouldn't there be a proccess running wich I can see in htop and therefor the memory usage?
    Last edited by capoeira (2012-01-12 17:21:12)

    it's not working for me. it is not showing memory usage and now even shows a syntax error:
    [studio@myhost ~]$ sudo tail -f /var/log/preload.log
    [Thu Jan 12 07:47:49 2012] failed reading state from /var/lib/preload/preload.state: line 415: invalid syntax
    [Thu Jan 12 07:47:49 2012] Exiting
    [Thu Jan 12 12:56:04 2012] loading conf from /etc/preload.conf
    [Thu Jan 12 12:56:04 2012] loading state from /var/lib/preload/preload.state
    [Thu Jan 12 12:56:04 2012] failed reading state from /var/lib/preload/preload.state: line 415: invalid syntax
    [Thu Jan 12 12:56:04 2012] Exiting
    [Thu Jan 12 12:56:16 2012] loading conf from /etc/preload.conf
    [Thu Jan 12 12:56:16 2012] loading state from /var/lib/preload/preload.state
    [Thu Jan 12 12:56:16 2012] failed reading state from /var/lib/preload/preload.state: line 415: invalid syntax
    [Thu Jan 12 12:56:16 2012] Exiting

Maybe you are looking for