LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Monitoring memory usage using /proc/<PID>/smaps (https://www.linuxquestions.org/questions/linux-server-73/monitoring-memory-usage-using-proc-pid-smaps-4175446001/)

Ondrej 01-17-2013 06:09 AM

Monitoring memory usage using /proc/<PID>/smaps
 
Hi all,
I have had a big problem with Java and Oracle Coherence based application in the last few months. Our application is consuming increasingly more memory. It needs to be restarted every 3 weeks.
We monitored several java processes usinf ps -ef and found that theyre increasing their VSZ and RSS.

We have been suggested to monitor "/proc/<PID>/smaps" of those processes. I compared smaps files for one of the growing processes during several days and I found that more memory segments have appeared. However these are anonymous and not mapped to a particular file. Is there a way to find whats taking up the memory segments?




Distributor ID: RedHatEnterpriseServer
Release: 5.8


All times are GMT -5. The time now is 04:57 PM.