Page 1 of 1

SIGKILL on 2.3.4 - Out of Memory

Posted: 19 May 2017 20:33
by nybble
I am running into an issue where the z-way-server service on my Raspberry PI is being sent a SIGKILL signal after it has consumed all available memory.

The process will start, begin to consume all available memory on the PI, and eventually be terminated by the kernel.

This behavior existed in 2.3.1 and upgrading to 2.3.4 did not resolve the issue.

I'm not sure what could be causing this issue since the z-way-server has worked flawlessly for a few years now.

Here is a link to the output of my /var/log/messages: ... LivL9gydE=

Here is a link to the output of my /var/log/z-way-server.log: ... LivL9gydE=

Any assistance is appreciated!

Re: SIGKILL on 2.3.4 - Out of Memory

Posted: 20 May 2017 02:40
by nybble
Not sure what was causing this problem, but I discovered that the kernel would kill the z-way-server process after the swap space on the Pi ran to 0 KB available.

Since the Pi I am using had the default swap size of 100MB, I increased the swap space to 512MB.

The z-way-server process would consume physical memory, gradually being swapped out to the swap file, until about 200MB of swap remained, before finally releasing most of its allocated memory back to the system.

This allowed the process to remain up and I can now get back in to my Z-Wave SmartHome portal.

Re: SIGKILL on 2.3.4 - Out of Memory

Posted: 20 May 2017 16:50
by micky1500
Just curious about swap space.
2.3.1 and I think my swap space used is zero.
Are you using "TOP" command to check it ?

top - 14:45:52 up 40 days, 18:27, 1 user, load average: 0.20, 0.21, 0.18
Tasks: 110 total, 1 running, 109 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.1 us, 0.3 sy, 0.0 ni, 97.5 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 947732 total, 342116 used, 605616 free, 47328 buffers
KiB Swap: 102396 total, 0 used, 102396 free. 164172 cached Mem

30578 root 20 0 183840 90656 17276 S 8.9 9.6 2104:58 z-way-serv+
29343 pi 20 0 5112 2452 2100 R 0.7 0.3 0:00.36 top
1 root 20 0 5396 3916 2792 S 0.0 0.4 0:44.90 system

Re: SIGKILL on 2.3.4 - Out of Memory

Posted: 30 May 2017 20:17
by PoltoS
Please check for the size of automation/storage/*.json. In the new rc we have fixed a problem that one file was growing too much.