Re: memory leak... tricky
- From: "piotrekg@xxxxxxxxx" <piotrekg@xxxxxxxxx>
- Date: 31 May 2007 09:15:46 -0700
On May 31, 10:10 am, Dan Espen <dan...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
"piotr...@xxxxxxxxx" <piotr...@xxxxxxxxx> writes:
Hello:
I just upgraded a server from fedora-core-2 to red-hat-enterprise-5
and am experiencing a rather bizarre memory leak with one of my
processes. When the process is running, the total 'memory used' (as
seen by top) keeps on going up, BUT what's rather interesting is that
the memory related to this particular process is not changing (I've
looked at VIRT, RES, SHR, SWAP,CODE,DATA). I'm pretty sure the problem
is related to this particular process, because if/when I shut it down,
the 'total memory used' stays fairly constant. If I leave the process
running, eventually the system runs out of memory and needs to be
restarted.
I'm not sure, does top do anything about displaying shared memory?
Do an "ipcs -a".
Also type in uppercase M in top to get the high memory users at
the top of the display.
SHR - should be showing shared memory in top... I did look/sort at/by
every field possible, but unfortunately not seeing anything out of
ordinary.
The most puzzling thing is that the 'total system memory' is
increasing, but the memory (whatever kind) for this particular process
stays the same.
Here is 'ipcs -a':
------ Shared Memory Segments --------
key shmid owner perms bytes nattch
status
0x00000000 0 root 644 40
2
0x00000000 32769 root 644 16384
2
0x00000000 65538 root 644 268
2
------ Semaphore Arrays --------
key semid owner perms nsems
0x000000a7 0 root 666 1
------ Message Queues --------
key msqid owner perms used-bytes messages
.
- References:
- memory leak... tricky
- From: piotrekg@xxxxxxxxx
- Re: memory leak... tricky
- From: Dan Espen
- memory leak... tricky
- Prev by Date: Re: an_error
- Next by Date: OT -- good DVD/R for storing movies
- Previous by thread: Re: memory leak... tricky
- Next by thread: CIFS with Windows Server 2003
- Index(es):
Relevant Pages
|