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.

Similar Messages

  • 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 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 determine memory leaks?

    I tried in XCODE, the RUN/ Start with Performance TOol / and tried out the various options. I was running my app and looking to see if it would report increasing memory use but it seemed to be looking at my total system (i was running under the simulator). In general what is the recommended procedure for determining memory leaks, which tool to use, and what tracing can i use?
    How does one look at the retain count of an object? are there system routines that have knonw leaks?

    You took the right path. Once instruments comes up select the Leaks tool. Turn off automatic leak detection. In your app, start off at some known state, do something, and come back to the known state and check for leaks. For instance start off in a view, do something that brings up another view then come back to the original view and check for leaks. Leaks will show you if you leaked. Since you took a very deterministic path then checked it should be straight forward to go to the code and find / fix the leaks. Leaks shows you where the code where the leak was generated.

  • 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 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 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

  • 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

  • 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

  • How to decrease memory usage in XE 11.2

    Yesterday I uninstalled Oracle XE 10 and installed OracleXE 11. Everything is going fine so far except for the memory usage - it's around 800 megs. I remember having this problem with the last XE instance, and there was some way to change this, but I don't recall what it was. I looked around on the XE web interface - which is very different from the last interface - but couldn't find anything.
    Does anybody know what I'm needing to change?
    Thanks in advance!

    Hi,
    This might help
    http://download.oracle.com/docs/cd/E17781_01/server.112/e18804/memory.htm#CACFBJED
    Regards,
    Jari

  • How to meter memory usage

    Hi,
    I want to meter the memory usage of some XML-Parsers. Thus I do something like
    long before = Runtime.getRuntime().freeMemory();
    //parse
    long after = Runtime.getRuntime().freeMemrory();but always the difference (after - before) returns a negative value, which means that the parsing creates memory ;-)
    First I guessed, that during parsing the GC gets active and collects more objects than created. So I called the GC right before the upper code, wait for 2000ms to ensure the GC does something, but the result is the same.
    I tried this with the kXML2.0, XParse-J and ASXMLP with different sizes but the same result.
    What goes wrong there?
    Kay

    Where are you trying it out?
    Some phones, specially high-end phones like Series 60, allocate more heap memory dynamically while the program is running, so the freeMemory() keeps getting bigger the more memory you allocate.
    Other than that, there really is no way to make sure the garbage collector runs after you call System.gc(). Implementations are free to completely ignore a call like this, even if you give them time to do it.
    shmoove

  • 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.

  • How to determine memory board type and speed

    Hello.
    How can I determine the type of board and connector (e.g., SIMM, SODIMM, etc.) my Thinkpad W700 uses? How can I determine what the bus speed is, and then what speed memory I need?
    Thanks.

    GMAC-R60 wrote:
    go here enter your model & type number http://www-307.ibm.com/pc/support/site.wss/product.do?template=%2Fproductselection%2Flandingpages%2F... then click on product information
    Thanks. It took a bit of clicking around, but apparently my laptop's memory is on two SO-DIMM, DDR3, 1067 MHz slots.
    Memory
    PC3-8500 Non-Parity (NP) Double Data Rate Three (DDR3) Technology
    Two SO-DIMM SlotsThe use of 1067 MHz SO DIMM memory is recommended for this system.
    512 MB, 1 GB, 2GB, or 4GB memory
    Supports up to 8GB maximum memory
    2GB Intel Turbo Memory (selected models)
    Note: Only 64-bit operating systems support more than 3GB of system memory (RAM).

  • How to Maximize Memory usage for JDK 6 on Solaris 10.

    Hi there,
    I deployed jdk 6 & Tomcat 6 running on Solaris 10 with 8GB of RAM Sun Fire x64 x4100 M2 m/c.
    Its relatively fast. However, the java could allowed me to set the Max Java OPT to only 3GB. I don't understand and there isn't any extra applications. All are prior Solaris 10.
    Java will not be able to start if I set more than -J-Xmx3072m.
    Appreciate your advise and expertise.
    regards,
    jose(airqq)

    Hello Neville:
    I seem to be coming off as negative - not my usual approach.  However.......
    I am a retired webmaster and don't have Lion but I am impressed by your tip. Well written and researched. I think we should all do our bit to educate and encourage others to open applications and use the Terminal.
    a different point of view from someone who has been posting in these forums for many years.
    Almost all of the people who seek help here are not:
    1.  Retired webmasters.
    2.  Know anything about the arcane terminal commands and, more importantly, how much damage they can cause their system by a missing space or character.  Apple has spent a lot of time to develop OS X to a point where people do not need to learn about or understand Unix-like command language.
    I salute people who are technical enough to use terminal commands.  It is, however, IMHO, a real disservice to suggest to non-tecchie people that it is ever necessary (or desirable) to operate at that level.
    Having said all that, I respect your comment and point of view.   I would reiterate, however, that solving non-existent problems is a waste of time.  By non-existent, I mean that if there are no performance problems, it is irrelevant how much memory a program uses.  My current base-level iMac has 4 GB of memory and a Terabyte of HD space.
    Barry
    Message was edited by: Barry Hemphill

Maybe you are looking for