Memory leak

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Memory leak
# 22  
Old 05-31-2011
reply sir

---------- Post updated at 11:22 AM ---------- Previous update was at 09:42 AM ----------

what is the solution sir ?
# 23  
Old 05-31-2011
Noticing some missunderstood high percentage or numbers does NOT necessary mean that there IS a problem.

Could you please tell us who is experiencing a problem and who is complaining ?

What do they complain about ?

What kind of task is(are) the "complainer(s)" trying to do ?

Are their some other server hosted on the same physical host ?
# 24  
Old 05-31-2011
Quote:
Originally Posted by reply.ravi
reply sir

---------- Post updated at 11:22 AM ---------- Previous update was at 09:42 AM ----------

what is the solution sir ?
We don't even know what the problem is yet. We know nothing about the problem except that you're not out of memory. You've told us nothing except what you thought the problem was (memory), and it took hours to convince you otherwise. Please tell us more about what problem you are experiencing and not what you think is causing it.
# 25  
Old 05-31-2011
I suggest the following solution : hire someone experienced in Unix/Linux system administration .
# 26  
Old 06-01-2011
see below top command result. if cpu shows 100% idle. then why load average shows 1.00,...
Code:
top - 11:36:12 up 23 days,  5:56,  1 user,  load average: 1.00, 1.00, 1.00
Tasks: 246 total,   1 running, 245 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 100%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   7805952k total,  7699900k used,   106052k free,   246868k buffers
Swap: 16892336k total,      184k used, 16892152k free,  6578300k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      15   0 10348  692  584 S  0.0  0.0   0:01.61 init
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:01.06 migration/0
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.14 ksoftirqd/0
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.87 migration/1

Moderator's Comments:
Mod Comment Please use code tags.

Last edited by Scott; 06-01-2011 at 03:08 AM.. Reason: Code tags
# 27  
Old 06-01-2011
It would be really, really nice if you'd start answering some of our questions. We're not psychic. We need to know more to help you.

Quote:
Originally Posted by ctsgnb
Noticing some missunderstood high percentage or numbers does NOT necessary mean that there IS a problem.

Could you please tell us who is experiencing a problem and who is complaining ?

What do they complain about ?

What kind of task is(are) the "complainer(s)" trying to do ?

Are their some other server hosted on the same physical host ?
As for why you're getting a high load-average but no CPU usage, it must be disk use then -- something's thrashing your disk. Check for anything unusual in your log files and dmesg.
# 28  
Old 06-01-2011
I am surprised no one has mentioned the free command:

total used free shared buffers cached
Mem: 1026056 912668 113388 0 89080 465688
-/+ buffers/cache: 357900 668156
Swap: 2031612 260 2031352


This box hasn't been up very long but if you look at the buffers/cache you will see how much of your memory is being used by buffers and cache. That memory is free and available to be used by an application. Think of buffers and cache as "read ahead" on a disk (simple and not entirely true example I know). It takes what it think the system may need or what it has accessed a lot and puts it in cache to improve performance. If an application needs the memory it is thrown away as the information resides on disk. Memory management like this is one of the big benefits of linux, though I know windows has started to implement a similar strategy on its memory utilization.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Help regarding memory leak in this C program

I have written this code in C which reads a very large collection of text files and does some processing. The problem with this code is that there are memory leaks which I am not able to figure out as to where the problem is. When I run this code, and see the memory usage using top command, then I... (7 Replies)
Discussion started by: shoaibjameel123
7 Replies

2. Programming

Memory Leak

Hi, I am trying a database server which keeps a B+ plus tree structure and works on it. I am trying to find the memory used/leak while executing this process. I check the memory leak by using ps uax command. When i execute a delete query i am sure that my code frees up the existing... (9 Replies)
Discussion started by: kumaran_5555
9 Replies

3. Programming

memory leak problem

hi all Can any one plz explain me about memory leak problem Thankx (5 Replies)
Discussion started by: sonali
5 Replies

4. IP Networking

memory leak?

Hi All, my client server application can work in two modes: 1) one direction - only client sends msgs to server 2) two directions - server gives 'answers' to client. when program run in the first mode it looks OK, but when server answers to client than client's application exit its... (2 Replies)
Discussion started by: lenna
2 Replies

5. UNIX for Advanced & Expert Users

Need to create a memory leak

Hi. This might be a strange request, but does anyone have any idea on a simple shell script that would use more and more memory as it ran? Like a purposeful leak. I want to test the behaviour of an already running program when the machine runs out of memory. Thanks! (4 Replies)
Discussion started by: rebelbuttmunch
4 Replies

6. Programming

Memory LEAK with pthreads

I have this code... #include <stdio.h> #include <iostream> #include <pthread.h> static void* cliente(void *datos); int main() { pthread_attr_t tattr; int ret; size_t size = PTHREAD_STACK_MIN + 0x0100; ret = pthread_attr_init(&tattr); ret =... (8 Replies)
Discussion started by: JEscola
8 Replies

7. UNIX for Advanced & Expert Users

Memory leak while using pthread_cancel()

I tried to execute a sample pthread program to cancel a newly created one using pthread_cancel(). but using valgrind on my code shows some memory leak. My Code: #include "iostream" #include "unistd.h" #include "pthread.h" #include "signal.h" using namespace std; void handler(int); void*... (4 Replies)
Discussion started by: kcr
4 Replies

8. UNIX for Advanced & Expert Users

Check memory leak

I am running c++ code on AIX unix.I have a doubt that my code is using some memory but it is not clearing that.Some time i am getting heap allocation problem.In my code i am not using any malloc,new functions also i am justing using pointers and arrays. Is there any way i can find out if the... (2 Replies)
Discussion started by: ukatru
2 Replies

9. Programming

about virtual memory and memory leak

Hi, First of all I appreciate this group very much for its informative discussions and posts. Here is my question. I have one process whose virtual memory size increases linearly from 6MB to 12MB in 20 minutes. Does that mean my process has memory leaks? In what cases does the... (4 Replies)
Discussion started by: shriashishpatil
4 Replies
Login or Register to Ask a Question