80x more RAM commit than available

patrickkasie

Verified User
Joined
Sep 21, 2021
Messages
244
Location
Een echte Hollander
Dear DirectAdmin forum,

Using `sar -r` I've got the following result:

Code:
08:50:01 AM kbmemfree kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit  kbactive   kbinact   kbdirty
09:00:01 AM   2299296   5709120     71.29         0   2053476 717967280   7927.22   3197472   1710972      3580
09:10:01 AM   2300048   5708368     71.28         0   2233076 721118320   7962.01   3203376   1697140      3508
09:20:01 AM   2078276   5930140     74.05         0   2377704 724725524   8001.84   3329272   1778860      3120
09:30:01 AM   2748548   5259868     65.68         0   2516484 727518360   8032.67   2582868   1852704      2656
09:40:01 AM   1242916   6765500     84.48         0   2616252 732269748   8085.14   3978380   1943560     17196
09:50:01 AM   1491036   6517380     81.38         0   2719032 735298620   8118.58   3639956   2031220      5120
10:00:01 AM   1026996   6981420     87.18         0   2847708 739489040   8164.85   3980648   2142396      6332
10:10:01 AM   1617092   6391324     79.81         0   2949828 741886508   8191.32   3303836   2225032      3276
10:20:01 AM    834916   7173500     89.57         0   3117348 745667728   8233.07   3509660   2366116      4412
10:30:01 AM   1792220   6216196     77.62         0   2261192 748078844   8259.69   3533072   1445088      4396
Average:      1162586   6845830     85.48         0   3005157 639364197   7059.35   2922066   3083957     62978

I am not sure where this is at, and `top` doesn't tell me a whole lot of what's going on and where it's trying to allocate this memory usage. All I know is that we have 1 customer on the VPS that uses a whole lot of resources to keep creating 100s of thousands of index.html every 2 weeks in a cache folder. I mean, I can probably assume all of the RAM is going into that one single resource, but I want to know what script is calling to make do this the whole time and I'm not sure how to read the output from `strace`.

Code:
top - 10:36:39 up 3 days, 22:09,  2 users,  load average: 1.53, 1.86, 2.34
Tasks: 261 total,   5 running, 256 sleeping,   0 stopped,   0 zombie
%Cpu(s): 39.1 us, 13.1 sy,  0.0 ni, 47.5 id,  0.2 wa,  0.0 hi,  0.1 si,  0.1 st
KiB Mem :  8008416 total,  1632680 free,  3697172 used,  2678564 buff/cache
KiB Swap:  1048572 total,    81796 free,   966776 used.  3916764 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
16583 userhere  20   0  662276 270464   8944 R  87.4  3.4  15:20.34 php-fpm74
...
^C
# strace -e open,read -p 16583
strace: Process 16583 attached
read(3, "\1\1\0\1\0\10\0\0", 8)         = 8
read(3, "\0\1\0\0\0\0\0\0", 8)          = 8
read(3, "\1\4\0\1\69\0\0", 8)           = 8
read(3, "\22\33REDIRECT_UNIQUE_IDZ(...)2kFK"..., 1593) = 1593
read(3, "\1\4\0\1\0\0\0\0", 8)          = 8
open("/home/userhere/domains/domain.nl/private_html/index.php", O_RDONLY) = 4
read(4, "<?php\n/**\n * Front to the WordPr"..., 405) = 405
open("/home/userhere/domains/domain.nl/private_html/wp-blog-header.php", O_RDONLY) = 4
read(4, "<?php\n/**\n * Loads the WordPress"..., 351) = 351
open("/home/userhere/domains/domain.nl/private_html/wp-load.php", O_RDONLY) = 4
read(4, "<?php\n/**\n * Bootstrap file for "..., 3927) = 3927
open("/home/userhere/domains/domain.nl/private_html/wp-config.php", O_RDONLY) = 4
 
Back
Top