Jump to content

Out Of Memory Error (Fix Common Problems)


Jaytie
Go to solution Solved by Jaytie,

Recommended Posts

Good evening,

so I'm following the advice and opening a thread after seeing an "Out of memory" Error in my Fix Common Problems Plugin.

 

After looking at the logs, it might have something to do with Rsync.

Found this in the logfile:

Feb  9 16:05:25 Dockerbox kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=de0cfc44e0f23b22886296a3fdf0b85379af75a1e42099b33f9043bbcc605304,mems_allowed=0,global_oom,task_memcg=/,task=avahi-daemon,pid=21551,uid=61
Feb  9 16:05:25 Dockerbox kernel: Out of memory: Killed process 21551 (avahi-daemon) total-vm:3607048kB, anon-rss:3601876kB, file-rss:4kB, shmem-rss:2804kB, UID:61 pgtables:7092kB oom_score_adj:0

 

I started/configured a rsync daemon folling this post:

I want my Unraid Server  to be a rsync target for Synology Hyper Backup, which worked and is actually running right now.

 

Logfiles attached. Can you give me some further information?

 

diagnostics-20230210-0057.zip

Link to comment

I was now able to reproduce it. When accessing a nextcloud folder with a lot of thumbnails to create, memory usage of the nextcloud container bumps up and the 'out of memory' error occurs.

 

39 minutes ago, JorgeB said:

If it keeps happening try limiting more the RAM for VMs and/or docker containers

 

Okay thanks! Whats the best way to do this? Should I set a parameter here:

 

grafik.png.e818f97c23e6e27620ce06452adb61fc.png

 

Like:

"--memory=2G"

 

 

Will have a look at the swapfile, thanks!

 

 

Edit:

I'm a little bit confused here. As I wrote in my initial post, it also runs out of memory, when a client reaches the Unraid-Server via rsync.

Does somebody have a clue, why that's the case?

 

Edited by Jaytie
Link to comment
  • Solution

Another update and hopefully the solution for my issue:

 

As mentioned above, the issue reproducedable occured, when connecting with the Hyper Backup Client via rsync to Unraid.

I guess because of failing reverse lookups the avahi-daemon used all the ram and most of the CPU:

 

Feb 10 00:55:03 Dockerbox  rsync[2997]: connect from 192.168.10.2 (192.168.10.2)
Feb 10 00:55:03 Dockerbox  rsyncd[2997]: name lookup failed for 192.168.10.2: Name or service not known
Feb 10 00:55:03 Dockerbox  rsyncd[2997]: connect from UNKNOWN (192.168.10.2)

 

Also Hyper Backup wasn't able to connect during that time. Eventually the system was out of memory killed a process (not always the same) and Hyper Backup connected.

 

Solution:

 

I added the line

 

reverse lookup = no

 

to my

/boot/custom/etc/rsyncd.conf

 

This results in no more failed name lookups, Hyper Backup connects instantly and Ram usage stays as it should.

 

I hope this was the main issue. Maybe this will help someone in the future.

  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...