Memory consumption when computer locked?

I noticed something strange with my app. If I leave it open and switch to login screen, it's memory consumption raises up to gigabyte. I discover this in Activity Monitor when logging in back. But just after I logged back in, process's working set size begins slowly going back to normal, and then there're no leaks reported, and app works just normal.
Other apps dont issue this. Besides ordinary Cocoa GUI, my app makes use of multithreading, sockets and webcam capture (sequence grabber).
Looks like there's something specific to fast user switching feature that I don't know, maybe some buffer is infinitely filled until there's chance to display, or something.
Does anyone have idea what it could be?
Message was edited by: kasym

Another point that I wanted to mention...
As a mentioned, we are looping with our application through a resultset and "processing" each record. If we simply disconnect the sqlca object (the transaction object the PowerBuilder application uses to connect to the database) and then simply re-connect, say, every 100 records or so... the problem goes away. We simply disconnect, re-connect, and pick up at the point where we left off. This shows me the memory gets flushed every time the session is disconnected.
This is the effect that I want... for the memory to be flushed every so many records, so it can continue looping through each record in the resultset as if it were doing the first one each time. I understand there may be a performance impact as it flushes the memory for each record (or every hundred or so), but I'm willing to sacrifice that to keep it from running out of memory altogether.
I'd appreciate feedback on this point.

Similar Messages

  • Excessive memory consumption when loading Customers through Component Inter

    Hi All,
    I'm facing a big problem with the high memory consumption when loading Customers, Companies and Sites using the Component Interfaces delivered by the product (RD_CONSUMER_CI_API, RD_COMPANY_CI_API, RD_SITE_CI_API) within Application Engine programs. I'm loading about 7 million customers, an amount that is not so big in my opinion, but the memory consume is too high.
    We have 3 Batch Servers, each one running under Red Hat OS with 32 GB RAM memory plus 32 GB Swap memory in each server. We are running 2 Process by Server and with a day and half the servers crash with 100% of memory consumed (RAM and SWAP).
    There's a good pratice to use Component Interface in a heavy load process?
    There are parameters in the process scheduler configuration file that could help to reduce the memory consumption?
    There's a way to free the memory through PeopleCode or by running another process?
    Thanking you in advance.

    You may want to try and cut down on the input data to ascertain that the load might be a problem.
    You may try and use the GarbageCollector, but might not help in your case.
    To get an idea of the size allocated in buffer for the Rowset being used, you may want to check out the memory overhead ...
    Also, could check, which is the process that is consuming a lot of memory

  • Reduce memory consumption when consolidating systems

    We are in the process of consolidating all our DEV and QAS systems to one physical system (HP Super dome).
    We are consolidate more then 20 SAP instances (Java and ABAP) to on physical system.
    The question now is, how to setup the memory requirements (all instance are 64bit and Unicode), during the installation of those instances  we defined 4GB for a ABAP instances and 2 GB for a Java instance (Abap+Java 6GB).
    In our situation we need around 90GB of main memory.
    Does any one have a suggestion how to reduce this amount of memory.
    Because this are all DEV and QAS systems and not all the systems are used at the same time. Is it possible to swapout allocated memory for instances which are not used.
    Kind Regards,
    Evert Schuiteman

    Hi Evert
    Because this are all DEV and QAS systems and not all the systems are used at the same time. Is it possible to swapout allocated memory for instances which are not used.
    This is possible theoretically, but even if no user is connected and no application job is running, there is still activity on a system, so the only way to free ressources is to stop a system when it is not needed. As memory is cheap, you should rather buy more, than running low on it. If the server starts paging, the sap systems will practically freeze.
    You should not forget about the database memory, you will need at least another 2gb for every database.
    In my opinion, you should not consider running 20 instances on one server (hard partition on superdomes). We still have several hard partitions on our superdomes running up to 4 sap instances / databases per partition. I strongly suggest to have a "rolling" consolidation, speaking you add systems one after another. This gives you the possibilty to react if any component becomes a bottleneck.
    Regards
    Michael

  • High memory consumption in XSL transformations (XSLT)

    Hello colleagues!
    We have the problem of a very high memory consumption when transforming XML
    files with CALL TRANSFORMATION.
    Code example:
    CALL TRANSFORMATION /ipro/wml_translate_cls_ilfo
                SOURCE XML lx_clause_text
                RESULT XML lx_temp.
    lx_clause_text is a WordML xstring (i.e. it is a Microsoft Word file in XML
    format) and can therefore not be easily splitted into several parts.
    Unfortunately this string can get very huge (e.g. 50MB). The problem is that
    it seems that CALL TRANSFORMATION allocates memory for the source and result
    xstrings but doesn't free them after the transformation.
    So in this example this would mean that the transformation allocates ~100MB
    memory (50MB for source, ~50MB for result) and doesn't free it. Multiply
    this with a couple of transformations and a good amount of users and you see
    we get in trouble.
    I found this note regarding the problem: 1081257
    But we couldn't figure out how this problem could be solved in our case. The
    note proposes to "use several short-running programs". What is meant with
    this? By the way, our application is done with Web Dynpro for ABAP.
    Thank you very much!
    With best regards,
    Mario Düssel

    Hi,
    q1. how come the Ram consumption is increased to 99% on all the three boxes?If we continue with the theory that network connectivity was lost between the hosts, the Coherence servers on the local hosts would form their own clusters. Prior to the "split", each cache server would hold 1/12 of the primary and 1/12 of the backup (assuming you have one backup). Since Coherence avoids selecting a backup on the same host as the primary when possible, the 4 servers on each host would hold 2/3 of the cache. After the spit, each server would hold 1/6 of the primary and 1/6 of the backup, i.e., twice the memory it previously consumed for the cache. It is also possible that a substantial portion of the missing 1/3 of the cache may be restored from the near caches, in which case, each server would then hold 1/4 of the primary and 1/4 of the backup, i.e., thrice the memory it previously consumed for the cache.
    q2: where is the cache data stored in the coherence servers?on which memory?The cache data is typically stored in the jvm's heap memory area.
    Have you reviewed the logs?
    Regards,
    Harv

  • Memory consumption is more with oracle database compared to Sybase

    Hi,
    We are executing the same java source code with backend sybase and the oracle database. But with oracle database it is consuming more memory than Sybase.
    Currently using 11g R2 with ojdbc6.jar driver
    can you please provide the information to optimize the memory consumption when using the oracle.
    Thanks,
    Nagaraj

    user12569889 wrote:
    We are executing the same java source code with backend sybase and the oracle database. But with oracle database it is consuming more memory than Sybase. That is not saying anything at all.
    What memory in Oracle? Shared pool? Buffer cache? PGA? UGA? Library cache? Something else?
    What memory in Sybase did you compare it to?
    What type of client-server connection to Oracle was made? Dedicated or shared?
    What commands/method were used to determine the memory consumption in Oracle and then Sybase?
    What serves as the baseline for comparison?
    Comparing product A with product B is a COMPLEX thing to do. And IMO, beyond the abilities of the majority of developers - as they lack the technical expertise to extract usable metrics and correctly compare these between products that can work VERY differently.
    And unless you can provide technical details to backup your claim that you are observing that "+Memory consumption is more with oracle database compared to Sybase+", I would say that you have no idea what you are actually observing and in no position to deduce that Oracle consumes more memory.

  • Why does my computer locks up when trying to download to iphone?

    I am new to iphone. After downloading music from the itunes store to the computer the iphone is then connected. The iphone will sync but when the music download begins the computer will lock up.The iphone will download the music from itunes without plugging into the computer. Another iphone was tried and it had the same results with the computer locking up.
    My password works with itunes.

    I would suspects
    Defect iTunes install reinstall is solution
    Non working usb drivers update Them
    Peridic defect computer memory or harddrive

  • When my computer is playing sound, it makes a loud buzzing noise and the computer locks up

    When my laptop Pavilion dv6 less than a year old, computer is playing sound, it makes a very loud buzzing noise and the whole computer locks up.  I hit the lock symbol and then swipe my finger again to get out of the website (youtube) or close out the program playing sound or it will do it again.

    Hi,
    Shut down the notebook.  Tap away at f10 as you start the notebook to enter the bios menu.  Under the Advanced or Diagnostic tab you should find the facility to run tests on both the Hard Drive and Memory.  Post back with the details of any error messages.
    If both the above tests pass, try the following.
    From the Start Menu, open All Programs, open Accessories, right click the Command Prompt and select 'Run as Administrator'.  In to the prompt type the following command and hit enter.
    sfc /scannow                 ( note that there is a space between sfc and the / )
    Let the process complete, then type exit and hit enter.
    Next, click the Start Menu, click Computer, left click Local Disc C once to highlight it, right click Local Disc C and select Properties.  Click the Tools tab and then click the button to 'Check the Drive for Errors'.  In the following window make sure both boxes are ticked and then click Start.  Part of this process will require a restart to check the drive.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • K7D Master-L MS-6501 computer locks up when transferring data to external HD

    I'm not 100% sure the problem is with the motherboard, but I think I've narrowed it down to the point that the MB could be the problem, and so I figured it was worth a shot to see if anyone else had heard of this problem or perhaps had any suggestions as to what it could be...anyway...
    Here's the problem: whenever I try to transfer large data files onto my LaCie 250GB external HD, my computer locks up completely.  No CTRL+ALT+DEL.  No Pass Go (and certainly no $200 :P).  The connection interface is USB 2.0, to which I use the USB 2.0 controller card that came with my MB.  When I connected the HD to my laptop (Dell Inspiron 5150, I think), it transferred the files flawlessly.  Also, when I connected the drive to my roommate's desktop (another homemade system, though much beefier), it also read from/wrote to the HD without a hitch.  I even tried connecting the HD to my laptop, and (since my desktop & laptop are on the same network) mapped the HD onto my desktop as a network drive.  Then I transferred 24GB+ of data w/o any lock ups or problems whatsoever.  However, when I reconnected the HD back to my desktop and tried transferring a little over 500MB worth of files, it locked up after getting about 75% through.  I even tried disconnecting all of USB devices but the HD (and my mouse) and it still locked up after getting so far w/ the transfer.
    The issue doesn't seem to be a data-throughput issue, b/c it transferred just fine when the HD was mapped as a network drive, and the drive works flawlessly on other computers, so I don't think the problem is in the drive itself (or the cable).  The only time there is an issue is when the HD is connected to my desktop via any USB port (I've tried both the on-board ports as well as the controller card ports).  Have any of you guys (or gals) ever heard of such an issue?  I hesitate to say it's the ports themselves b/c I've got about 8+ USB devices connected to my computer at any given time, and none of them have any issues communicating back and forth (nor have they ever locked up my machine like it's doing now).  A couple of friends have suggested that it might be a driver or BIOS issue, but I can't seem to find any USB driver updates for my MB model (I have only the ones on the disc that came w/ my MB) and the MSI website warns not to flash the BIOS if everything is running ok with your computer (which it is, minus this issue).  My BIOS version is 1.6 (probably should've put that w/ my signature :P)
    I hope this is enough info to go on.  Any help or suggestions would be greatly appreciated.  Thanks for your time!

    To my knowledge, both of the other systems it was tested on had SP1 installed (I know that's the case on my laptop).
    I dunno if it would make a difference, but my laptop has WinXP Home, whereas my desktop has Pro installed.

  • My computer locked-up, and when rebooted, my itunes library was gone, replaced with a brand new library.  Fortunately, my 450 GB iTunes library is still on the computer.  Question is how do restore my original library without having to reload folders? Tks

    Help!  My computer locked-up and had to be rebooted.  However, when I restarted it and hooked up my iPod, I noticed my existing iTunes library (all 450 GB of it) was GONE and was replaced by a brand new library.  Fortunately my old, 450 GB library is still on my hard drive under iTunes in Windows Explorer.  How or why could this have happened, and most importantly how can I restore my old libary without having to manually import allow of my music and hundreds of Podcasts and 16000+ podcast files?
    Thanks for any help....

    What you're describing is the expected behaviour.  I believe though that is also is the easiest way to have all the contents available to both of you at all times.  If you have a spacious hard drive you should probably allow this to happen as anything else will be harder to manage.
    My suggestion would be the following if you want to try something different.
    Store all your music at a location that is accessible by both of you — an example would be to use your Public Folder as the locations where iTunes will go and look for all the media files—.  Your wife does have access to it.
    In the Finder you will need to move the folder name iTunes Music to the location in your Public Folder (see above).  Once that's done, you and your wife will have to go into the iTunes Preferences > Advance Preferences and un-check Copy files to iTunes Media folder when adding to library.  From this point on, you can continue to use iTunes as usual.  You'll need to tell your wife what has been newly downloaded/imported into your iTunes so she can manually go look for those items in that Public Folder iTunes of yours and import them into her iTunes.  She will not duplicate by doing that, but, like I say this is an all-manual work.
    She can do the same, so you have access to contents she imported herself.  One more downside of this is that both usernames have to be active in your iMac.  If yours isn't, she won't be able to access any item (song, book, app) located in your Public Folder's iTunes.
    I'm sure there's a way, if you have an router with external hard drive conectivity, for both of you to be able to access —independently— the iTunes Media at all times but I was just reading at another post that doing so can further complicate things.
    Hope this helps.  Please let me know what you think or decide to do.
    Jorge...

  • When I use Preview my computer locks up. Can't use it to view PDFs. Any ideas?

    When I use Preview my computer locks up. Can't use it to view PDFs. Any ideas?
    I try to save files as a PDF on external hard drives. When I select SAVE AS PDF I get spinning colorwheel and the program I am using locks (Quicken, Quickbooks, Gmail etc.)

    There were several /Library/preferences. The only one that had the file was the one under my user name. I deleted it. I was using Quickbooks when the problem started. It is locked. I have to reboot the computer to use it again. I tried SAFARI using the PRINT button then SAVE AS PDF. It didn't work. It locks Safari up. I will reboot and hopefully continue.
    P.S. I've done this procedure before and I was able to Save, but then the problem came back.

  • Why does my computer lock up when some videos start to run?

    When I load some videos the video will start for a few seconds then stop. At this point my whole computer locks up and I have to do a restart to get my mail or on the internet.
    I have right clicked on the video and disabled the acceleration function. That worked for a while but the problem has started again. When I right click the video it shows that the accelerator is NOT enabled but my computer locks up. Thanks for any help, Hosteen - Nez

    http://forums.adobe.com/thread/1195540

  • My computer locks up when attempting to print an Adobe Reader XI file.  How do I fix this??

    My computer locks up when attempting to print an Adobe Reader XI file.  How do I fix this??

    adobe reader 11.0.10  windows 7 home edition  Everything was working fine, but I got a "communication not available error" and rebooted the wifi.  The next day, when I went to print, after selecting the number of copies etc, I clicked on "print".  The next screen is the progress report   "Printing xxx.file.", and nothing happens.  The computer is completely lock and I have to reboot.  I can print excel and word files, but no pdf files, either from the internet or one of my documents.  I have tried saving the internet pages and then printing later, but that doesn't work either.  One suggestion was to go to edit, preferences, security enhanced and turn off enable.  That worked for one document ( a test) from my computer, but when I tried another file, no go

  • When I''m playing a video clip the computer "locks-up" after a few seconds - what can I do to fix it please?

    When I''m playing a video clip the computer "locks-up" after a few seconds - what can I do to fix it please?

    The latest is happening with the 12 little video clips sent to me by Apple entitled "Get to know your new iPad"
    They run from 3 to 32 seconds and then "lock-up" on my iMac.
    I don't have photobooth on my iMac
    The link to the Apple promotion is :-
    http://www.apple.com/ca/ipad/guided-tours/?cid=CDM-CA-DM-P0009300-160603-EN&cp=e m-P0009300-160603&sr=em
    D

  • Computer locks when trying to change multiplier

    My computer locks up in the BIOS when I try to access the CPU Clock Ratio menu option.  Ever since I upgraded Bios to 2.70 on my MS-6373 K7N420 Pro I have been running at 1100 MHz instead of 1400 ( I have an Athalon 1700 ).  My system also locks when I try to access the menu option about CPU Fan.  What can I do?  I'd like to get my processor back to 1400MHz.  I figured it would be a multiplier thing.
    Thanks!
    Vince

    Quote
    Originally posted by Deathstalker
    trying to overclock your CPU.  The only way you are going to be able to is by increasing your FSB, unless you unlock your processor.
     ?(  Is overclocking an Athlon XP CPU not supposed to be possible using only the MSI K7N420 Pro BIOS multiplier?
    Using the BIOS CPU multiplier option, I changed the multiplier from Default to 11.5 on my Athlon 1600+ XP. Both MBM5 and FuzzyLogic4 report a clock change from 1403 MHz to 1537 MHz. (Last night I began tweaking my K7N420D after upgrading BIOS from 2.6 to 2.7.)
    The FSB is still my habitual 133/266/66. I've never used an unlocking kit or made changes to the hardware. Did I somehow receive an unlocked 1600+XP CPU? Is there another explanation?

  • My computer locks up when i log out

    my computer locks up when i log out

    I had the same proplem with my I-Pod and any mp3 I would plug in. I have 4 usb ports on my pc and only one is a usb 2.0. I tried each one until I found it and my pc did not freeze and it is charging right now as I am typing.
    Steps
    1. right click my computer
    2. click properties
    3. click hardware
    4. click device manager
    5. double click universal Serial buss controllers
    6. depending how many usb root hubs, hopefully you have one that says USB 2.0 Root Hub
    that is the usb port you have to locate and use
    If that does not work try updating the drivers by double clicking USB 2.0 Root Hub and follow instructions.
    I have Windows xp and windows 2000 on this PC and I am using 2000 Primarily. The steps might be a little diff. with XP but it should be close. I'd have to reboot into XP to see.
    Good Luck

Maybe you are looking for