System stats - files and memory

Please accept my apology if this is the wrong forum!
Is there a way - system calls eg. - to tell how much memory and how many files a process or thread uses? I know I can use /proc to find info about file handles, but I expect there must be a place where the system keeps this information?
I want to be able to tell from within the program itself - I'm using third party libraries, and apparently they allocate inordinate amounts of resources without freeing them; and they are not about to admit the fault is in their code, so I have to see which resources are in use before and after calling their code.

Please accept my apology if this is the wrong forum!Yeah, this is Solaris OS question :-)
Is there a way - system calls eg. - to tell how much
memory and how many files a process or thread uses? I
know I can use /proc to find info about file handles,Ugh, what's wrong with it?
but I expect there must be a place where the system
keeps this information? It's kept by kernel. The only interface you can see it is prosfs
or proc tools (man -s1 proc), but these tools query /proc
anyway,

Similar Messages

  • Compare system state (number and types of objects in memory)

    We have 2 exactly identical servers running our application talking to the same database.
    When some obejct from server 1 is deleted, a message is passed to server 2 to delete the object from its cache too.
    Forget the database, I want to design a testing system which compares the system-state (number and type of live-objects) in memory for server 1 and server 2 after the operation and the message, and reports any discrepancy.
    Any ideas ?

    Are you trying to debug a distributed cache implementation?
    If you want to inspect the state of your application on multiple servers creating a JMX bean might be a solution.
    http://java.sun.com/developer/technicalArticles/J2SE/jmx.html

  • What is recommended size of System drive to keep operating system files , paging files and Memory Dump of hyper-v host.

    Hi ,
    I want to setup hyper-v host with 128 GB RAM  , Windows 2012 R2
    What is recommended size of System drive  to keep operating system files  , paging files  and Memory Dump?
    I tested to using 150 GB  , but when the server is crashed, there is no free space to keep memory dump file.
    Ramy

    Hi Ramy,
    For Server 2012R2 the absolute minimum system drive is 32Gb but this assume you have limited RAM or have your Page file located on another drive. It used to be best practice to setup a small page file but MS PFE now suggest leaving windows to manage
    the page file size.
    Obviously this is not always possible depending on the amount of RAM in the system, but base the system drive around this or offload the Page file to perhaps another drive. On top of this you also need space for the memory dump to be written, potentially
    again up to the size of the RAM. Assuming you fire the machine back up after a crash, you need space for the OS, the Page File plus space for the associated dump file.
    There is a nice little article here that maybe of assistance:  http://social.technet.microsoft.com/wiki/contents/articles/13383.best-practices-for-page-file-and-minimum-drive-size-for-os-partition-on-windows-servers.aspx
    Kind Regards
    Michael Coutanche
    Blog:   
    Twitter:   LinkedIn:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • System state synchronizations and express full backups of protected 2012 R2 machines overload DPM server.

    I have one DPM 2012 R2 UR2 server which is running on Windows 2008 R2 and 2 protection groups (A, and B). The server uses direct attached storage for all replicas and recovery volumes.
    Group A protects the system state and bare metal recovery of 25 Windows 2008R2 servers. It creates recovery points using express full backup each night at 6PM. The servers range from file/print, SQL, domain controllers, terminal servers, web servers, etc. Total
    data 3TB.
    Group B protects the system state and bare metal recovery of only 3 Windows 2012R2 servers. It creates recovery points using express full backup each night (morning) at 1AM. The servers are 1 domain controller, 1 WSUS server, and 1 server that runs VMware VCenter.
    Total data 90GB.
    During group A's nightly backup, which takes approximately 2 hours, the DPM server becomes noticeably slower but remains functional. I can open Windows update and check for updates, copy files to and from network locations, launch intenet explorer, etc. It's
    stressed since 25 servers are creating backups on it but it remains functional.
    During group B's nightly backup the DPM server grinds to a complete halt. Launching internet explorer takes an hour (literally), 10 minutes will pass before I get a menu after clicking the start button. Basically it becomes completely unresponsive until the
    backups finish which typically doesn't happen because I'm forced to cancel them upon arriving at work...8 hours later.
    I read that DPM uses the built in Windows Backup to protect system state and bare metal recovery. Did something change in Windows Backup from 2008R2 to 2012R2 that would cause this? Why can my DPM server easily backup 25 Windows 2008R2 machines at once in 2
    hours yet freezes solid for 8 hours or more when backing up only 3 Windows 2012R2 machines?
    I left performance monitor running during the night and it showed an average disk queue length of 49 during group B's backup but everything else was normal. Seems the disks on the DPM server are the bottleneck but again I ask why can my DPM server easily backup
    25 Windows 2008R2 machines at once in 2 hours yet freezes solid for 8 hours or more when backing up only 3 Windows 2012R2 machines? Both protection groups use the same disks.
    How can I fix this?
    Teenage angst has paid of well, now I'm bored and old.

    Hi CS,
    You can also run a performance monitor.
    For some basic perfmon counters to help narrow down the possible bottleneck:
    Perf Counters for DPM
    Logical Disk/Physical Disk
    \%idle
    • 100% idle to 50% idle = Healthy
    • 49% idle to 20% idle = Warning or Monitor
    • 19% idle to 0% idle = Critical or Out of Spec
    \%Avg. Disk Sec Read or Write
    • .001ms to .015ms  = Healthy
    • .015ms to .025 = Warning or Monitor
    • .026ms or greater = Critical or Out of Spec
    Current Disk Queue Length (for all instances)
    80 requests for more than 6 minutes.
    • Indicates possibly excessive disk queue length.
    Memory
    \Pool Non Paged Bytes*
    • Less that 60% of pool consumed=Healthy
    • 61% - 80% of pool consumed = Warning or Monitor.
    • Greater than 80% pool consumed = Critical or Out of Spec.
    \Pool Paged Bytes*
    • Less that 60% of pool consumed=Healthy
    • 61% - 80% of pool consumed = Warning or Monitor.
    • Greater than 80% pool consumed = Critical or Out of Spec.
    \Available Megabytes
    • 50% of free memory available or more =Healthy
    • 25% of free memory available = Monitor.
    • 10% of free memory available = Warning
    • Less than 100MB or 5% of free memory available = Critical or Out of Spec.
    Processor
    \%Processor Time (all instances)                                                                  
    • Less than 60% consumed = Healthy
    • 51% - 90% consumed = Monitor or Caution
    91% - 100% consumed = Critical
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • I deleted the System Configuration files and now my WiFi won't work.

    I've always loved Apple but ever since I upgraded to Yosemite I've been having problems with my WiFi connection, it kept dropping. So I decided to look for a solution and I found some forums that said I should go to System Configuration on Finder (Cmd+Shift+G on Finder, then write /Library/Preferences/SystemConfiguration) and that I should delete all the files there. I did just that and now I can't get online at all. Then I read in some other forums that you should only delete certain files... So you can imagine my face when I read that. I tried taking the files I deleted out of the Trash and everything but I still can't connect to the Internet wirelessly. I'm desperate!
    My wireless connection used to drop every 2 minutes, and I had to go to Network Preferences, Assistant, Diagnostic, and that would fix it for another 5 minutes, 10 if I was lucky. But now I can't get online at all. I've tried everything I could think of and nothing.
    I don't care if my Internet drops anymore, I just want it to go back to the way it was. I'm traveling to Argentina in a week and I need this fixed!!
    If anyone can help me I would really appreciate it.

    The following support article is somewhat outdated. Where it refers to booting from an installation disc, you should boot into Recovery (if running 10.7 or later) by holding down the key combination command-R at the chime. If your startup volume is encrypted with FileVault, you’ll have to unlock it in Disk Utility before you can do anything with it.
    Mac OS X: Gray screen appears during startup

  • Freeze Files and Memory

    Is there a way to auto delete freeze files when you save a project. I mean sure you'll have to refreeze them when you load again but, I've got all these projects with freeze files just eating up my disk space.

    i had the same problem for a long time until i slapped myself on the forhead and figured out that i should be bouncing tracks instead of freezing all of them. i arrange all my instruments into one folder. drums/percussion get a folder, etc....i have a powerbook with 2g RAM and i am working with 25 tracks per song. i kept clipping on my memory capacity, even with freezing all the tracks. so, i started bouncing maybe 2 or 3 tracks instead of 10+ tracks. then i would have the room to work on the drums/percussion while i solo the instruments bounced track.
    when you look at your file sizes, you'll get them down below 500mb vs several gig with too many frozen files.
    have fun

  • Accessing a file and memory problem

    hi gurus;
    here's the thing:
    when i initializing a file like
    File a = new File(xxx);
    is the file save to memory yet? or it is just initializing only?
    or when i accessing using randomaccessfile its just save to memory?
    any good link that teach this kind of things..
    any input will much appreciate
    Thanks

    Here you are
    http://java.sun.com/docs/books/tutorial/java/javaOO/objectcreation.html
    This is a good basic tutorial.

  • Music Files and Memory Card On N97 mini

    I,ve own my N97 mini for about a month now, been serving me well except for this problem...
    I created a folder on the E:/ drive for storing musics I transfered via PC Siute but I noticed that I can't seem to find the onces I trasfered via Bluetooth. When I open the music player and refresh, it seems some of the musics are not added to it. When I open the folder I created for musics I see the songs there but when I go back to the music player it ain't there.
    What can be done? 
    I added an 8G memory card to my phone and it's been misbehaving. Problems ranging from slow boot up and opening of applications to this error NOT ENOUGH MEMORY PLEASE DELETE SOME DATA whenever I try to open the music player. I understand that N97 mini can take upto 16G memory card but how come 8G gives it problems?

    Why on EARTH are you transferring music by Bluetooth ??? Simply connect the phone to your computer by usb cable in Mass Media mode. The phone will show in 'My Computer' as an external hard drive E. Open it and your music folder will be there. Then drag and drop any music you want FROM your computer TO the 'Music' folder on your phone, safely disconnect the phone from computer, go to music player and refresh music, that's all there is to it !!
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Pdf files and memory....

    Has anyone else noticed that if you are working with a .pdf file in M4 and you leave the 'fixed resolution' box unchecked in the inspector's 'media' tab that once you play through your animation, it fills up your RAM just like when you render a RAM preview? I find that the only way to clear my RAM is to actually go to edit/ram preview/clear ram preview --- just like I would if I actually had rendered a RAM preview. Is this some kind of bug or am I just not getting something here?
    Basically, I have to leave the .pdf in fixed resolution while I am working on my project or otherwise, my 5GB of RAM will fill up in seconds if I play through my timeline.

    iPads don't have a filesystem like a computer, Files of that nature must be associated with an App and reside inside that particular App's file space.  So the way to find them is to open the App that opens that file type and look in its file or document list for them.

  • How can i recover my database after losing system data file.

    hi everyone,
    how can i recover my database in the following scenario.
    1. offline complete backup taken 2 days ago. database was in archive mode.
    2. today i lost my system data file, and also lost my all archived files.
    3. i started up the database but, the following error was generated.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
    4. i copied the system data file from backup and wrote the following statement, to recover the database.
    SQL> recover datafile 1;
    ORA-00279: change 2234434 generated at 07/15/2009 10:52:10 needed for thread 1
    ORA-00289: suggestion : C:\B\ARC00051.001
    ORA-00280: change 2234434 for thread 1 is in sequence #51
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    now i don't have any archive file. is there any chance to recover the database ?
    R e g a r d s,
    Asif Iqbal
    Software Engineer,
    Lucky Tex, Karachi,
    Pakistan.

    now i don't have any archive file. is there any chance to recover the database ?If no archive log files are available you can't recover the datafile.You need to have all the archives from the time of offline backup was taken till the system datafile is lost.
    Anand

  • Wbadmin System State Backup "Parameter is incorrect"

    Hello,
    We have two physical Windows Server 2008 R2 x64 Standard Domain Controllers and the system state backup on both fails with the same error.
    We issue the command:
    wbadmin start systemstatebackup -backuptarget:c:
    (NOTE: We did the REG fix to allow backups to the system volume)
    and we get  this as the output:
    C:\Windows\system32>wbadmin start systemstatebackup -backuptarget:c:
    wbadmin 1.0 - Backup command-line tool
    (C) Copyright 2004 Microsoft Corp.
    Starting to back up the system state [28/02/2010 21:26]...
    Retrieving volume information...
    This will back up the system state from volume(s) System(C:) to c:.
    Do you want to start the backup operation?
    [Y] Yes [N] No y
    Creating a shadow copy of the volumes specified for backup...
    Creating a shadow copy of the volumes specified for backup...
    Please wait while system state files to back up are identified.
    This might take several minutes...
    Summary of the backup operation:
    The backup of the system state failed [28/02/2010 21:27].
    Log of files successfully backed up:
    C:\Windows\Logs\WindowsServerBackup\Backup-28-02-2010_21-26-31.log
    Log of files for which backup failed:
    C:\Windows\Logs\WindowsServerBackup\Backup_Error-28-02-2010_21-26-31.log
    The operation ended before completion.
    The parameter is incorrect.
    C:\Windows\system32>
    This happens on both servers and the two backup log files mentioned in the output are both empty.
    There's no other information that I can find so I don't know what the "parameter" is or why it is incorrect.
    Has anyne come across this problem and know what the error is referring to?
    Thanks
    Sunil

    I received a PowerShell script from Suhas and ran it on the affected server, the script output gave:
    1.
         Service Name    : RMAGENT
         Service Caption : RMAGENT
         Registry key    : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RMAGENT\ImagePath
         Value           : \\PRIMARY\admin$\Microsoft DPM SRT\RFCAgent.exe
         Reason          : The service path contains a double slash. Network paths or paths containing a double slash are not supported.
    2.
         Service Name    : RMAGENT
         Service Caption : RMAGENT
         Registry key    : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RMAGENT\ImagePath
         Value           : \\PRIMARY\admin$\Microsoft DPM SRT\RFCAgent.exe
         Reason          : The service path does not have a proper path format. Only paths beginning with [<Drive>]:\ format are supported.
    The "RMAgent" is from Microsoft Data Protection Manager 2007 System Recovery Tool (DPM-SRT) and I think is the remote agent that DPM-SRT uses to backup the remote system.
    The DPM-SRT RMAgent isn't supported and doesn't work on Windows Server 2008 R2 systems and I am not sure how it ended up installed on the server. Removing this service should solve the problem and allow the System State Backups to work. The DPM-SRT agent wasn't listed in the "Programs and Features" and so couldn't be installed from there (if it was I would have spotted this a long time ago and probably solved the problem). Instead, I used the information at:
    http://www.howtogeek.com/howto/windows-vista/how-to-delete-a-windows-service-in-vista-or-xp/
    To delete the RMAgent service: sc delete "RMAgent" in an Administrator CMD prompt. This removed the registry entries shown in the script output above. When this was done, I ran the script again just to be sure there was nothing else and indeed the RMAgent entries had gone and there were no other items that needed attention.
    Finally, I tried "webadmin start systemstatebackup -backuptarget:C:" again in an administrator CMD prompt and it completed successfully.
    I would like to thank Abhinav Mathur and Suhas Rao in particular for their very helpful script.
    Sunil

  • Windows Server 2008 R2 - System State Backup - Application Log: CAPI2 513

    When performing a system state backup from wbadmin, I get...
    Creating a shadow copy of the volumes specified for backup...
    Creating a shadow copy of the volumes specified for backup...
    Please wait while system state files to back up are identified.
    This might take several minutes...
    Summary of the backup operation:
    The backup of the system state failed [12/15/2011 6:38 PM].
    Log of files successfully backed up:
    C:\windows\Logs\WindowsServerBackup\Backup-15-12-2011_18-38-05.log
    Log of files for which backup failed:
    C:\windows\Logs\WindowsServerBackup\Backup_Error-15-12-2011_18-38-05.log
    The operation ended before completion.
    The system writer is not found in the backup.
    In the event log, I get...
    Log Name: Application
    Source: Microsoft-Windows-CAPI2
    Date: 12/15/2011 6:38:24 PM
    Event ID: 513
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: Server1.domain.com
    Description:
    Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object.
    Details:
    AddCoreCsiFiles : GetNextFileMapContent() failed.
    System Error:
    The parameter is incorrect.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-Windows-CAPI2" Guid="{5bbca4a8-b209-48dc-a8c7-b23d3e5216fb}" EventSourceName="Microsoft-Windows-CAPI2" />
    <EventID Qualifiers="0">513</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2011-12-15T23:38:24.430498600Z" />
    <EventRecordID>144157</EventRecordID>
    <Correlation ActivityID="{0450BC50-F800-0002-8457-553A80BBCC01}" />
    <Execution ProcessID="1240" ThreadID="4360" />
    <Channel>Application</Channel>
    <Computer>Server1.domain.com</Computer>
    <Security />
    </System>
    <EventData>
    <Data>
    Details:
    AddCoreCsiFiles : GetNextFileMapContent() failed.
    System Error:
    The parameter is incorrect.
    </Data>
    </EventData>
    </Event>
    The System Writer is not showing up when I view vssadmin list writers.
    I have already tried every tip in the following links:
    http://technet.microsoft.com/en-us/library/cc734021(WS.10).aspx
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/bb760434-de80-4cb6-ae9e-bd253e4b037c/
    I have also run sfc /scannow and rebooted.  No luck.
    I think the reason none of the tips at the above links work for me is that the System Error is NOT access denied like many others are getting, but is instead
    The parameter is incorrect.  I think that's the key.
    Any ideas why I am getting this error and why my System Writer is nowhere to be found?

    Hi,  
    You mentioned that “The System Writer is not showing up when I view vssadmin list writers.”
    you may reboot the related services or re-register the writers, please refer to:
    How to Re-register Volume Shadow Copy Service (VSS) Components on Windows 2008/Windows 2003.
    http://www.symantec.com/business/support/index?page=content&id=TECH70486
    Best regards,
    Jeff Ren
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Interactive logon process initialization has failed after system state is restored from backup

    Recently one of my Windows 2008 server was restored from system state backup, and below error appears before during startup, before logon screen:
    "interactive logon process initialization has failed. please consult the event log for more details"
    I do not have recovery disk, also repair didn't work, any other solutions?
    Thanks.

    Hi Justin,
    I would suggest you to use sfc to check if there is any systemfiles corrupted :
    1. boot from cd
    2.  sfc /scannow /offbootdir=X:\ /offwindir=Y:\windows (X  is boot partition , Y is windows system files partition )
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • No Final Cut Studio System ID file: Must re-enter the SN every time.

    I was having trouble with needing to re-enter the FCS 3 SN every time I open an app. I am going mad. Another thread said to delete the Final Cut Studio System ID file then restart the program. Well now I have no Final Cut Studio System ID file and I STILL need to enter the SN every **** time I launch a program.
    This was an upgrade from the FCS academic version.
    Any help?

    OK, let's give this a try.
    First, let's create the systemid file again by launching Final Cut Pro and and re-register. This should create the files in the /tmp/ directory.
    Then run this command in the Terminal.
    launchctl load /Library/LaunchDaemons/com.apple.aelwriter.plist
    launchctl start com.apple.aelwriter
    Finally, run this command in the Terminal. It will ask you to enter your admin passward.
    sudo /usr/sbin/AELWriter -installer
    The files should have moved from /tmp/ to /Library/Application Support/ProApps/. If not then, something might be preventing from moving those files... perhaps a permission problem?

  • Mdworker saturating the system.log file

    Hi,
    i have a problem on my late 2010 MBA, running 10.6.8. Frequently, the fan goes frantic, and it appears it is linked to mdworker running over and over again. It seems to be doing that when the vpn from the company is running (Juniper through Secure App Manager).
    I checked the system.log file and it is 2.63Go for the past 5 days! Mostly filled with
    Jan  3 08:45:39 Puss mdworker[59604]: socket(PF_ROUTE) failed: Operation not permitted
    Jan  3 08:45:39 Puss sandboxd[59747]: mdworker(59604) deny system-socket
    Jan  3 08:45:39 Puss sandboxd[59747]: mdworker(59604) deny network-outbound /private/var/run/mDNSResponder
    (repeated 500 times and over, and eventually:
    Jan  3 08:45:39: --- last message repeated 1 time ---
    Jan  3 08:45:39 Puss mdworker[59604]: socket(PF_ROUTE) failed: Operation not permitted
    Jan  3 08:45:39 Puss sandboxd[59747]: mdworker(59604) deny system-socket
    Jan  3 08:45:39 Puss com.apple.launchd[1] (0x100101ea0.mach_init.mdworker[59604]): Exited with exit code: 1
    Can the vpn really have an influence on Spotlight? What is spotlight trying to index and why is it denied?
    Eventually, i may be dreaming, but it seems that something is chewing up my SSD space. Without adding much files, it feels like free space is going down.
    Thanks for any help.

    I solved the problem by adding the hidden '/private' directory on the harddisk to the places that spotlight is forbidden to index (in the systems preference pane -> Spotlight ->Privacy)
    You have drag the '/private' folder into the locations box.
    You may have to install something like 'secrets' to show hidden folders in the finder.
    (see here: https://code.google.com/p/blacktree-secrets/wiki/Help )
    ignore everything above - same error messages came back

Maybe you are looking for

  • AAE_IDOC between ABAP 7.40 system and PI 7.30

    Hi all, Currently we are facing a problem with a partner who upgraded a ERP system to SAP Basis 7.40 while PI is still running on 7.30. Now they try to connect this system to PI 7.30 with the java Idoc adapter, as is working in other systems not yet

  • Oracle SOA Suite 11g Certification details needed

    All, Wanted to know what are the certifications available in SOA suite 11g? per my understanding, only 'Oracle SOA Foundation Practitioner Exam' is available. Is there a certification specific to Architects? Please let me know, thanks in advance Rega

  • SAP PBO Variable values  to ITS HTML Page

    Hi, We are upgrading from Standalone ITS to Integrated ITS ( SAP ECC6.0) , In Standalone ITS we used Function module: WSRS_ITS_CONTEXT_APPEND to access the multiple HTML pages but in Integrated ITS it is not working . Please suggest any solutions ..

  • ITunes account has been locked

    I forgot my security questions and now I can't purchase anything, can anyone help me to unlock it without paying? Thanks

  • Have existing glossary, want to create auto link instead of manual

    Hi, I've got an existing glossary inside an iBooks document with no links. I would like to automate the linking process to each of the Glossary Terms rather than doing it manually. Is this possible?  Everything I've seen demonstrates how to hightligh