Ad Widget

Collapse

Memory Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BShaftoe
    Junior Member
    • Nov 2006
    • 1

    #1

    Memory Monitoring

    Hi, guys!!

    First post in the forum. And, firstly, I'd like to excuse myself if this issue has been told before, but my searches tell me it hasn't.

    I have setup a zabbix server to monitor two servers (currently I'm only monitoring one, but I will monitor two in a future). The main server has apache web server, tomcat4 and mysql running in it.

    Each one of these apps have several threads open, dynamically (nothing new). But it seems that the way to monitor, for example, the memory that each app consumes, is different. I use the proc.mem[process_name] key.

    The first approach I've tried to monitor memory consumed by Tomcat has been to sum (using sum mode) all memory used by processes called "tomcat" and started by user "tomcat4". This gives as result no less than 12-14 GB of memory, that is clearly wrong, because my server has 10 GB of physical memory, and about 1 GB of swap. So there's no way Tomcat is consuming that amount of memory (and besides, using top in the server console tells me there is about 60 MB of free memory). I'm now monitoring with a max of memory on the set of processes (using max mode).

    Something quite similar happens with mysqld and the apache web server. I suspect that my readings are not accurate, because I don't know if the parent process reserves all the memory for the children, and the children's "consumed memory" is part of the memory reserved by the parent, or if the children processes memory spaces are independent from the parent's one.

    So... what's the most accurate way of monitoring memory utilization in tomcat, apache web and mysqld? Does anybody know this?
Working...