SIGKILL on 2.3.4 - Out of Memory

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
nybble
Posts: 27
Joined: 04 Jun 2015 19:37

SIGKILL on 2.3.4 - Out of Memory

Post 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:
https://paste.fedoraproject.org/paste/t ... LivL9gydE=

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

Any assistance is appreciated!
nybble
Posts: 27
Joined: 04 Jun 2015 19:37

Re: SIGKILL on 2.3.4 - Out of Memory

Post 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.
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: SIGKILL on 2.3.4 - Out of Memory

Post 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

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
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
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: SIGKILL on 2.3.4 - Out of Memory

Post 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.
Post Reply