New answers tagged memory-usage
Your command doesn't make much sense. The addresses reported by pmap for each process are only valid in theses processes own address space, i.e. in their virtual memory. They will kind of "overlap" while technically they correspond to different pages. Some of them won't be in RAM but on disk. The pages owned by the kernel use are on the other hand stored on ...
Better approach would be to use sysrq. Run following and check your /var/log/messages. # echo m > /proc/sysrq-trigger This would give you zone wise memory dump. Checkout following url https://www.kernel.org/doc/gorman/html/understand/understand005.html
It turns out that we had a Websocket that was not correctly closing on the client side after an authentication failure. It would retry every 10 seconds and this caused an amplification of the issue. Maybe Varnish was doing the right thing keeping the zombie connections alive assuming that closing the browser did in fact sever the connections.
You could try using smem. It should be fairly simple to compile and use if not prepackaged for your OS. You can collect per-process statistics with the smemcap utility and process them elsewhere, or directly report to your monitoring solution by parsing the data. There is also plain old SNMP. The HOST-RESOURCES-MIB has a table that could be helpful. ...
Something else to check if the above fails: Check the usage of the Slab cache (Slab:, SReclaimable: and SUnreclaim: in /proc/meminfo). This is a cache of in-kernel data structures, and is separate from the page cache reported by free. If the slab cache is resposible for a large portion of your "missing memory", check /proc/slabinfo to see ...
OpenVZ does not let you see how physical memory not assigned to you is being used. It shows only the memory assigned to you and how much of it is assigned to processes you created. You will frequently find that for this reason and many similar other reasons, it is recommend that important applications be kept a safe, and large, distance away from OpenVZ.
Top 50 recent answers are included