chrishorton7 Posted November 27, 2023 Share Posted November 27, 2023 As per title, over the last few days I've started to get some out of memory errors on my machine. I have 32GB RAM and never had any issues previously (this unraid build is just over a year old). Hoping someone with deeper knowledge might be able to shine a bit more light reviewing the diagnostics tower2-diagnostics-20231127-2053.zip Quote Link to comment
JorgeB Posted November 28, 2023 Share Posted November 28, 2023 If it's a one time thing you can ignore, if it keeps happening try limiting more the RAM for VMs and/or docker containers, the problem is usually not just about not enough RAM but more about fragmented RAM, alternatively a small swap file on disk might help, you can use the swapfile plugin: https://forums.unraid.net/topic/109342-plugin-swapfile-for-691/ Quote Link to comment
Michael_P Posted November 28, 2023 Share Posted November 28, 2023 13 hours ago, chrishorton7 said: I have 32GB RAM and never had any issues previously (this unraid build is just over a year old). When is Plex's scheduled tasks set to kick off? Quote Link to comment
chrishorton7 Posted November 28, 2023 Author Share Posted November 28, 2023 15 minutes ago, Michael_P said: When is Plex's scheduled tasks set to kick off? They are scheduled to start at 2am and finish at 5am Quote Link to comment
Michael_P Posted November 28, 2023 Share Posted November 28, 2023 2 hours ago, chrishorton7 said: They are scheduled to start at 2am and finish at 5am Weird that there's a login right before the OOM, do you recall doing anything in particular? Nov 25 04:28:48 Tower2 webGUI: Successful login user root from 192.168.1.138 Nov 25 04:28:49 Tower2 kernel: docker invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0 Nov 26 06:18:07 Tower2 webGUI: Successful login user root from 192.168.1.138 Nov 26 06:18:08 Tower2 kernel: docker invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0 Nov 27 04:57:56 Tower2 webGUI: Successful login user root from 192.168.1.138 Nov 27 04:57:57 Tower2 kernel: php-fpm invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0 You can try limiting Plex's container to something reasonable like 8GB or so to see if it stops going OOM Quote Link to comment
chrishorton7 Posted November 28, 2023 Author Share Posted November 28, 2023 1 hour ago, Michael_P said: Weird that there's a login right before the OOM, do you recall doing anything in particular? Nov 25 04:28:48 Tower2 webGUI: Successful login user root from 192.168.1.138 Nov 25 04:28:49 Tower2 kernel: docker invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0 Nov 26 06:18:07 Tower2 webGUI: Successful login user root from 192.168.1.138 Nov 26 06:18:08 Tower2 kernel: docker invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0 Nov 27 04:57:56 Tower2 webGUI: Successful login user root from 192.168.1.138 Nov 27 04:57:57 Tower2 kernel: php-fpm invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0 You can try limiting Plex's container to something reasonable like 8GB or so to see if it stops going OOM The logins right before the OOM are a mystery to me as they are at 4am or 6am so I would have been asleep - looking at the IP address on my router it appears to be an Apple device - I'm not sure which device, but unclear why an Apple device is logging in at that time?? stupid question - how do you limit a container to a certain amount of RAM? For reference I am using Hotio docker container Quote Link to comment
Michael_P Posted November 28, 2023 Share Posted November 28, 2023 42 minutes ago, chrishorton7 said: stupid question - how do you limit a container to a certain amount of RAM? For reference I am using Hotio docker container Enable the advanced view in the docker container's settings and in the extra parameters line add this: Quote Link to comment
chrishorton7 Posted November 29, 2023 Author Share Posted November 29, 2023 after adding the extra paramater to the docker container yesterday I had the same issue this morning with the OOM error (see attached diagnostics and screenshot of the extra parameter settings tower2-diagnostics-20231129-1225.zip Quote Link to comment
Michael_P Posted November 29, 2023 Share Posted November 29, 2023 39 minutes ago, chrishorton7 said: after adding the extra paramater to the docker container Doesn't look like you're putting it in the right spot - undo what you did and do this: Toggle basic view to advanced view Add it to the Extra Parameters line Quote Link to comment
chrishorton7 Posted November 29, 2023 Author Share Posted November 29, 2023 I do not see the Extra Parameters field in my docker - I notice that you are using binhex - I am using Hotio docker. There is a field titled additional requirements?? Quote Link to comment
Michael_P Posted November 29, 2023 Share Posted November 29, 2023 5 minutes ago, chrishorton7 said: I do not see the Extra Parameters field in my docker Did you toggle advanced view? Quote Link to comment
chrishorton7 Posted November 29, 2023 Author Share Posted November 29, 2023 sorry I completely missed the field, I see it now - have updated, will see if this resolves the issue tomorrow morning Quote Link to comment
chrishorton7 Posted November 30, 2023 Author Share Posted November 30, 2023 still getting the same issue despite limiting the Plex docker to 8GB RAM (see attached diagnostics) tower2-diagnostics-20231130-1129.zip Quote Link to comment
Michael_P Posted November 30, 2023 Share Posted November 30, 2023 1 hour ago, chrishorton7 said: still getting the same issue despite limiting the Plex docker to 8GB RAM Can you take a screenshot of your plex container with the advanced view enabled? Quote Link to comment
chrishorton7 Posted November 30, 2023 Author Share Posted November 30, 2023 1 hour ago, Michael_P said: Can you take a screenshot of your plex container with the advanced view enabled? Quote Link to comment
Michael_P Posted November 30, 2023 Share Posted November 30, 2023 Looks right except yours has 8GB instead of 8G not sure it matters Set the plex scheduled task for the next closest hour, then watch the memory usage as it runs thru it (that way at least you won't have to wait overnight) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.