Re: memory leak... tricky



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

.



Relevant Pages

  • [HPADM] RE: SHMMAX modification
    ... The problem is that you are using a 32bit version of Oracle ... will allow access to as much as 1750 megs of shared memory. ... the kernel maintains a map relating the virtual ...
    (HP-UX-Admin)
  • Re: IPC_PRIVATE Shared memory
    ... >>> I'm writing a server app which uses SysV IPC shared memory. ... but the memory isn't listed by the ipcs program. ... >> memory objects regardless of permissions. ...
    (comp.os.linux.development.apps)
  • [HPADM] Re: HP-UX Oracle/ Shared memory segment question
    ... Does this mean if you set the shmax to be the same size of the memory on ... I read the article below about setting the shared memory for Oracle. ... HP-UX Shared Memory Segments for a 64-Bit Oracle Instance ...
    (HP-UX-Admin)
  • Re: OpenOffice does not start when Firefox open
    ... openings and closings of OO so I don't think it's a memory leak) ... you're left with this small sliver dividing up the remaining space. ... able to allocate a total amount of shared memory that is more than the ...
    (comp.os.os2.apps)
  • Can oracle run without shared memory ? [ pmap + ipcs ]
    ... I'm trying to find the memory size of some oracle instance. ... With aix i do this with svmon + ipcs. ... Some shared memory is shown, but none for the oracle user! ...
    (comp.unix.solaris)