Out of memory: Killed Processes; no web UI

When trying to update a checkpoint on my WD MyCloud, the device runs out of memory and systematically kills about all processes including the web UI

WDMyCloud:~# dmesg | grep Killed
[797.043849] Killed process 5835 (rpc.mountd) total-vm:4352kB, anon-rss:0kB, file-rss:0kB
[801.184322] Killed process 5865 (nmbd) total-vm:7552kB, anon-rss:0kB, file-rss:0kB
[808.362332] Killed process 5885 (smbd) total-vm:35008kB, anon-rss:0kB, file-rss:0kB
[809.084838] Killed process 5869 (smbd) total-vm:35008kB, anon-rss:0kB, file-rss:0kB
[821.635879] Killed process 5916 (winbindd) total-vm:28352kB, anon-rss:0kB, file-rss:0kB
[851.370528] Killed process 5913 (winbindd) total-vm:28352kB, anon-rss:0kB, file-rss:0kB
[852.199563] Killed process 5952 (afpd) total-vm:9920kB, anon-rss:0kB, file-rss:0kB
[854.454397] Killed process 7324 (cnid_metad) total-vm:6656kB, anon-rss:0kB, file-rss:0kB
[858.380032] Killed process 7955 (netatalk) total-vm:6912kB, anon-rss:320kB, file-rss:0kB
[863.804222] Killed process 7956 (cnid_metad) total-vm:4928kB, anon-rss:384kB, file-rss:0kB
[867.702121] Killed process 7957 (afpd) total-vm:7872kB, anon-rss:0kB, file-rss:0kB
[869.606280] Killed process 7959 (cnid_metad) total-vm:5440kB, anon-rss:0kB, file-rss:0kB
[871.269471] Killed process 7960 (netatalk) total-vm:6912kB, anon-rss:0kB, file-rss:0kB
[875.458682] Killed process 7963 (cnid_metad) total-vm:3520kB, anon-rss:0kB, file-rss:0kB
[879.865674] Killed process 7965 (afpd) total-vm:3072kB, anon-rss:128kB, file-rss:0kB
[880.541969] Killed process 7966 (netatalk) total-vm:6912kB, anon-rss:64kB, file-rss:0kB
[881.365138] Killed process 5950 (netatalk) total-vm:6912kB, anon-rss:192kB, file-rss:0kB
[882.276196] Killed process 6033 (mDNSResponderPo) total-vm:2112kB, anon-rss:64kB, file-rss:0kB
[882.922348] Killed process 6368 (upnp_nas_device) total-vm:71232kB, anon-rss:576kB, file-rss:0kB
[907.482352] Killed process 6442 (twonkyserver) total-vm:37952kB, anon-rss:1600kB, file-rss:64kB

Is there a way to restart the web ui without rebooting?

How do I diagnose this low memory, process killing condition?

Somewhere in that log should have been an entry as to which process sucked up the memory, before processes started getting killed off.

Have the same problem.  Probably like everyone else who is getting the message that the Safe Point failed, when looking at the results of ‘dmesg’, they find the Out of Memory.  So here is what I did first:

Killed wdmcserverd (/etc/init.d/wdmcserverd stop)

Killed wdphotodbmergerd (/etc/init.d/wdphotodbmergerd stop)

That didn’t work, then found the ‘rsync’ command and created the file do_rsync.sh in the /root directory with the following contents:

#/bin/sh
rsync -rtDviH --delete --progress --exclude-from “/etc/nas/NSPT/exclude.txt” --delete-excluded “/DataVolume/shares/” “/var/media/My_Book//_WDPROT/WDSAFE/WDMYCLOUD_BK/shares”  > /root/do_rsync.out

followed by a “chmod +x do_rsync.sh”

Then killed apache2  (/etc/init.d/apache2 stop)

Now, when I think about it, I run:

nohup ./do_rsync.sh &

and log out. 

Will create a cron job at some point.

Here is the root cause, like everyone else, I’m using the My WD Cloud to hold 15 yrs of digital photos, videos, music, reference library, and backup data files on 5 home computers, including 2 teenagers iphone photo libraries.   Today at 2.1 TB of data scattered throughout 100’s of 1000’s of files. 

Clearly this was the intent of WD for this system, but they probably never, ever, tried to create a disk full of typial photo and computer data files (between 25 kb to 5 MB) and then “test” the system.

At some point, I may try to increase the swap file size but apache2 has become such a memory hog that I believe it is mostly responsible for the Out Of Memory problems. 

Now, your no web UI problem, that is because the OS decided to kill apache2 instead of the other memory hog.

-Ben