This thread is marked Solved but the discussion is related to my problem. Perhaps it should me moved to a different/new thread.
After a reboot and a couple of days the logging to openhab.log and events.log stops. The frontail frontend is empty part from headers showing events.log and openhab.log, there is no actual content. I will remember to take a screenshot at the next occurence.
I’m using the zram-feature and as I havent seen this behavior before I’m suspecting that zram is out of memory. But the openhab logging documentation does not describe how to change the logging preferences like size and number of logs.
The configuration file org.ops4j.pax.logging.cfg does not mention any log4j2.appender.out.strategy.max options. Only a size option is configured, defauilt seems to be 16M. I have tried to change this to 8M but logging still stops.
I think the openhab docs should be updated to also descibe this logging adjustments in size and rotation.
Luckily only the logging related to /opt/zram/zram2/ seems to be affected. All my persistence data such as rrd4j is still complete and persistence resides in /opt/zram/zram1/ as I understand it.
I have logged the zram memory usage daily, please see below:
2020-04-23 08:42:45
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 95,6M 21,6M 23,1M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 42,8M 9,2M 10,2M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 16,6M 7,6M 8,6M 4 [SWAP]
2020-04-24 10:50:54
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 277,8M 70M 73,7M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 47,1M 10,5M 11,7M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 32,6M 14,5M 15,6M 4 [SWAP]
2020-04-26 08:54:31
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 453,9M 108,8M 113,6M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 59,3M 13,7M 14,6M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 213,1M 73,7M 77,6M 4 [SWAP]
2020-04-27 16:29:11
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 453,9M 108,6M 113,4M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 60M 14M 14,9M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 204,7M 71,5M 75,8M 4 [SWAP]
2020-04-28 08:00:02
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 453,9M 109,1M 114M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 60M 14M 14,9M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 203,9M 71,4M 75,2M 4 [SWAP]
2020-04-28 08:51:23
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 40,3M 6,6M 7,2M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 22,8M 1,9M 2,4M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 4K 76B 4K 4 [SWAP]
2020-04-29 08:00:01
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 82,3M 19,1M 20,3M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 41,3M 8,9M 9,8M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 12,9M 5,8M 6,5M 4 [SWAP]
2020-04-30 08:00:01
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 108,4M 26,2M 28M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 51,7M 11,7M 12,6M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 23,6M 10,6M 11,5M 4 [SWAP]
2020-05-01 08:00:01
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 366,5M 91,5M 96M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 55,8M 12,7M 13,7M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 71,3M 29M 30,7M 4 [SWAP]
2020-05-02 08:00:02
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 455,1M 112,2M 117,2M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 57,8M 13,4M 14,2M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 226M 79,4M 84,4M 4 [SWAP]
2020-05-03 08:00:01
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 455,1M 112,2M 117,2M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 59,8M 14M 15M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 198,5M 72M 76,4M 4 [SWAP]
2020-05-03 09:50:17
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo 500M 44,1M 6,6M 7,3M 4 /opt/zram/zram2
/dev/zram1 lz4 600M 22M 1,9M 2,4M 4 /opt/zram/zram1
/dev/zram0 lz4 600M 4K 76B 4K 4 [SWAP]
I did at reboot on the 28th of april and on the 3rd of may.
The data usage of zram2 is quite close to the available disksize but its not exceeding it. But is this the problem?
Some background:
Rapbian-buster
openhab install though apt-get (openHAB 2.5.3-1)
openhabian install through apt-get ([master]v1.5-552(869c2ea))
zram feature install though openhabian-config
Is there a need to do a periodic reboot or a zram-stop/start to write data to disc? Or should it work continuously if I set the logging size to something more appropriate?
Thanks!