Sponsored Content
Full Discussion: Ram Usage
Operating Systems Linux Ram Usage Post 302411948 by MarkSeger on Saturday 10th of April 2010 08:05:45 AM
Old 04-10-2010
Memory leaks is indeed a bad thing and can be trick to find BUT if you used a tool like collectl it would certainly make things a lot easier. Similar in function to SAR but with much more comprehensive data collection and reporting. Since leaks can often be slow, you'd probably want to postprocess the data it collects rather than run it in real-time, so just turn it on and let it do its thing for awhile.

Then you can play back the data and examine the top users of memory by process! In fact if you do see your process using up real memory and that memory happens to be slabs, you can actually look at the top slab being consumed over time too! While the latter view is not by process, it can provide get hints to the problems since the slab names tend to tell you why that memory is being used.

-mark
 

10 More Discussions You Might Find Interesting

1. Solaris

RAM Physical Memory usage by each Process.

Hi All, I am trying to find the physical memory usage by each process/users. Can you please let me know how to get the memory usage?. Thanks, bsraj. (12 Replies)
Discussion started by: bsrajirs
12 Replies

2. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

3. UNIX for Dummies Questions & Answers

Command to check RAM usage

Hi Guys, How can i check the RAM usage for a particular user on the Linux machine. What command can be used. Thanks in advance, Swapna (1 Reply)
Discussion started by: Swapna173
1 Replies

4. Shell Programming and Scripting

RAM usage Information

Hi i just wanted to know what is the code to display amount of RAM and also the percentage used? I know i can possibly use the vmstat code but what part indicates the RAM? Any help would be much appreciated. Thanks (1 Reply)
Discussion started by: warlock129
1 Replies

5. Solaris

Server RAM Usage checkup & support

Hi RAM of my system is 24 GB however when i checked the processes pids and counted the memory usage by pmap i found out that the total memory usage is 36 GB It s obvious that my system might be using some of virtual memory or swap space . How can i check which memory it is using and how .. ... (9 Replies)
Discussion started by: Paarth
9 Replies

6. Red Hat

High RAM usage, extremely low swapping

Hi team I have three physical servers running on Red Hat Enterprise Linux Server release 6.2 with the following memory conditions: # cat /proc/meminfo | grep -i mem MemTotal: 8062888 kB MemFree: 184540 kB Shmem: 516 kB and the following swap conditions: ... (6 Replies)
Discussion started by: hedkandi
6 Replies

7. OS X (Apple)

RAM Usage discrepancy

Hey there! I'm a new user here who registered because I couldn't get these kind of questions answered in the place I directly com from. :o I've found a discrepancy in total RAM used and I can't figure out why it is. My only guess is there are some RAM used by some stuff impossible to identify,... (2 Replies)
Discussion started by: dasx
2 Replies

8. UNIX for Dummies Questions & Answers

Average CPU and RAM usage for a process

Hi, I will be creating a process myself and I want to know the average CPU and RAM used by the process over the lifetime of the process. I see that there are various tools available(pidstat) for doing , I was wondering if it possible to do it in a single command while creation. Thanks in... (3 Replies)
Discussion started by: koustubh
3 Replies

9. UNIX for Beginners Questions & Answers

Peak Ram Usage

grpdsku program allows user to check their group disk space in a server environment. The data in the dialog box queries a text file. Each text file is labeled with a current timestamp. Results output to a msgbox. Also, results output to a csv file. The csv file is sent to the user via email ... (13 Replies)
Discussion started by: dellanicholson
13 Replies

10. UNIX for Advanced & Expert Users

Ubuntu 14.04 - how to less ram usage

Hello, I have an ubuntu14.04 installed pc with 32GB ram. Operating System: Ubuntu 14.04.5 LTS Kernel: Linux 4.9.148-xxxx-std-ipv6-64 Architecture: x86_64 When I check free memory it shows: total used free shared buffers cached Mem: 31882 ... (2 Replies)
Discussion started by: baris35
2 Replies
CatalystX::LeakChecker(3pm)				User Contributed Perl Documentation			       CatalystX::LeakChecker(3pm)

NAME
CatalystX::LeakChecker - Debug memory leaks in Catalyst applications VERSION
version 0.06 SYNOPSIS
package MyApp; use namespace::autoclean; extends 'Catalyst'; with 'CatalystX::LeakChecker'; __PACKAGE__->setup; DESCRIPTION
It's easy to create memory leaks in Catalyst applications and often they're hard to find. This module tries to help you finding them by automatically checking for common causes of leaks. This module is intended for debugging only. I suggest to not enable it in a production environment. METHODS
found_leaks(@leaks) If any leaks were found, this method is called at the end of each request. A list of leaks is passed to it. It logs a debug message like this: [debug] Circular reference detected: +------------------------------------------------------+-----------------+ | $ctx->{stash}->{ctx} | '------------------------------------------------------+-----------------' It's also able to find leaks in code references. A debug message for that might look like this: [debug] Circular reference detected: +------------------------------------------------------+-----------------+ | $a = $ctx->{stash}->{leak_closure}; | | code reference $a deparses to: sub { | | package TestApp::Controller::Affe; | | use warnings; | | use strict 'refs'; | | $ctx->response->body('from leaky closure'); | | }; | | ${ $ctx } | '------------------------------------------------------+-----------------' Override this method if you want leaks to be reported differently. AUTHORS
Florian Ragwitz <rafl@debian.org> Tomas Doran <bobtfish@bobtfish.net> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Florian Ragwitz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.10.1 2010-03-26 CatalystX::LeakChecker(3pm)
All times are GMT -4. The time now is 11:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy