After upgrading to 4.1 i seem to have a wierd USB / modbus problem
USB 3 devices:
- I have 8 arduinos connected through modbus
- comfoair
- Wavin (zmartify binding)
After reboot, everything seems to work very fine. But after some random hours (everything between 1 to 36 hours), all arduinos suddenly seems to all fail at the same time.
The other USB-devices also get communication problems (But comfoair and wavin things still shows as online)
I cant see any smoking gun. I suspect It might have to do with memory problems - but I cant see what is cause and effect.
I tried, without succes:
- higher Xms, xmx settings in /etc/default/openhab
(currently -Xms512m -Xmx1536m) - removing 7 arduino things (less traffic)
- removing zmartify binding
sudo systemctl status openhab.service
openhabian@openhabian:~ $ sudo systemctl status openhab.service
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: active (running) since Sat 2024-02-17 17:28:38 CET; 17h ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 755 ExecStartPre=/bin/rm -f /var/lock/LCK..ttyAMA0 /var/lock/LCK..ttyACM0 (code=exited, status=0/SUCCESS)
Main PID: 764 (java)
Tasks: 220 (limit: 4531)
CPU: 1h 49min 44.882s
CGroup: /system.slice/openhab.service
└─764 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.log>
Feb 18 10:32:31 openhabian karaf[764]: File "/var/lib/openhab/cache/org.eclipse.osgi/266/0/bundleFile/Lib/threading.py", line 353, in run
Feb 18 10:32:31 openhabian karaf[764]: self.finished.wait(self.interval)
Feb 18 10:32:31 openhabian karaf[764]: File "/var/lib/openhab/cache/org.eclipse.osgi/266/0/bundleFile/Lib/threading.py", line 463, in wait
Feb 18 10:32:31 openhabian karaf[764]: self.__cond.release()
Feb 18 10:32:31 openhabian karaf[764]: IllegalMonitorStateException: java.lang.IllegalMonitorStateException
Feb 18 10:32:31 openhabian karaf[764]: Exception in thread Thread-215:Traceback (most recent call last):
Feb 18 10:32:31 openhabian karaf[764]: File "/var/lib/openhab/cache/org.eclipse.osgi/266/0/bundleFile/Lib/threading.py", line 222, in _Thread__bootstrap
Feb 18 10:32:31 openhabian karaf[764]: self.run()
Feb 18 10:32:31 openhabian karaf[764]: File "/var/lib/openhab/cache/org.eclipse.osgi/266/0/bundleFile/Lib/threading.py", line 353, in run
Feb 18 10:32:31 openhabian karaf[764]: self.finished.wait(self.interval)
openhab-cli console -p habopen shell:info
Karaf
Karaf version 4.4.4
Karaf home /usr/share/openhab/runtime
Karaf base /var/lib/openhab
OSGi Framework org.eclipse.osgi-3.18.0.v20220516-2155
JVM
Java Virtual Machine OpenJDK Client VM version 17.0.9+9-Raspbian-1deb11u1rpt1
Version 17.0.9 Reboot:
Vendor Raspbian
Pid 764
Uptime 17 hours 23 minutes
Process CPU time 1 hour 49 minutes
Process CPU load 0.00
System CPU load 0.50
Open file descriptors 237
Max file descriptors 102,642
Total compile time 1 minute
Threads
Live threads 222
Daemon threads 122
Peak 227
Total started 19348 1181
Memory
Current heap size 352,507 kbytes
Maximum heap size 1,520,512 kbytes
Committed heap size 507,264 kbytes
Pending objects 0
Garbage collector Name = 'Copy', Collections = 957, Time = 25.611 seconds Collections = 98
Garbage collector Name = 'MarkSweepCompact', Collections = 5, Time = 2.084 seconds
Classes
Current classes loaded 38,903
Total classes loaded 39,752
Total classes unloaded 849
Operating system
Name Linux version 6.1.21-v8+
Architecture arm
Processors 4
Total physical memory 3,936,500 kbytes
Free physical memory 1,417,252 kbytes