Understanding how software accumulates memory in system -


lately i've been trying understand , track down nasty memory leak in software. this, started monitor memory usage on long periods of time try figure out if there pattern serve clue understand issue.

in graphic bellow, virtual memory drawn in purple , % of cpu memory in green, x-axis represent time in seconds.

memory accumulation

there big spikes occur when video streaming feature activated, doesn't seem issue since software seems able clear these.

around second 7500 there big drop because of stand-by feature of system activated few seconds. after system returns normal, clears memory accumulated before.. far makes sense. thing can't understand that, if amount of stored memory decreases, why doesn't %mem decrease? in case, increasing.

there not clear correlation between %mem , virtual memory usage. can me understand this?

i realized virtual memory not related %mem, since stored in hard-drive , swapped ram when process needs it. memory of process related %mem rss (resident set size), memory stored in ram.

in next graphic monitored rss instead, , correlation obvious.

enter image description here


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -