# Memory usage misreported in output of pmp-check-unix-memory

**URL:** <https://forums.percona.com/t/memory-usage-misreported-in-output-of-pmp-check-unix-memory/2733>\
**Category:** Percona Monitoring Plugins\
**Created:** [May 31, 2013, 2:57pm UTC](https://forums.percona.com/t/memory-usage-misreported-in-output-of-pmp-check-unix-memory/2733 "2013-05-31T14:57:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgoodaire](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@tgoodaire](https://forums.percona.com/u/tgoodaire)\
**Post date:** [May 31, 2013, 2:57pm UTC](https://forums.percona.com/t/memory-usage-misreported-in-output-of-pmp-check-unix-memory/2733/1 "2013-05-31T14:57:29Z")

</div>

I’m seeing some strange output from the pmp-check-unix-memory check. It’s reporting that 10% of the overall memory is in use, but that 102% of the memory is in use by the mysqld process. The server is running Debian Squeeze. Has anyone seen this before?

Output of free:

# free

total used free shared buffers cached  
Mem: 16473956 3013068 13460888 0 327656 876756  
-/+ buffers/cache: 1808656 14665300  
Swap: 3903480 0 3903480

Output of top command:  
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND  
24523 mysql 20 0 16.1g 1.5g 5916 S 0 9.8 0:26.85 mysqld

Output of pmp-check-unix-memory:

---

<div class="post-metadata">

**Author:** ![weber](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@weber](https://forums.percona.com/u/weber)\
**Post date:** [June 1, 2013, 7:09am UTC](https://forums.percona.com/t/memory-usage-misreported-in-output-of-pmp-check-unix-memory/2733/2 "2013-06-01T07:09:06Z")

</div>

From this output I see mysqld reports VIRT (virtual memory) 16.1g.  
And it is 102% from the total RAM.

You can disable the plugin from checking the largest process in the memory by using ‘-d’ option.  
This way the plugin will report the correct status.
