Sorry for the callout @matt1, but I think you’re the only one who can help with your binding. It’s been working well with a few hiccups (actually heap space errors, but I could run for days before I’d see them), but I updated to your snapshot a couple days ago to fix them, and now I can’t go for ten minutes without openHAB crashing due to Java heap space errors.
I followed your instructions about increasing the heap space, to no avail.
Also saw this thread; it doesn’t look like anything came of it besides your recommendation of increasing the heap space.
I set the log to TRACE, please find my attached log: openhab_IpCameraJavaHeapSpace_20190808part3.log (546.1 KB)
I’d really appreciate it if you could take a look at it.
Things:
// Amcrest IP2M-841E
Thing ipcamera:DAHUA:120 [IPADDRESS="xxx.xxx.xxx.120", PASSWORD="password", USERNAME="username", POLL_CAMERA_MS=3000]
// Amcrest IP2M-841W
Thing ipcamera:DAHUA:121 [IPADDRESS="xxx.xxx.xxx.121", PASSWORD="password", USERNAME="username", POLL_CAMERA_MS=3000]
// Amcrest IP8M-2493EW
Thing ipcamera:DAHUA:122 [IPADDRESS="xxx.xxx.xxx.122", PASSWORD="password", USERNAME="username", POLL_CAMERA_MS=3000]
// Amcrest IP8M-2493EW
Thing ipcamera:DAHUA:123 [IPADDRESS="xxx.xxx.xxx.123", PASSWORD="password", USERNAME="username", POLL_CAMERA_MS=3000]
Items:
// Camera 120 (xxx.xxx.xxx.120: Amcrest IP2M-841E)
Group G_House_Amc120 "120 Camera" <house> (G_House, G_Cameras)
Image I_House_Amc120_Jpg_im_c "120 Snapshot JPG" <camera> (G_House_Amc120, G_CamJpg_im) { channel="ipcamera:DAHUA:120:image" }
Switch I_House_Amc120_MotEn_sw_v "120 Motion Alarm Enable [%s]" (G_House_Amc120, G_CamMotEn_sw)
Switch I_House_Amc120_MotAct_sw_c "120 Motion Alarm Active [%s]" <motion> (G_House_Amc120, G_CamMotAct_sw) { channel="ipcamera:DAHUA:120:motionAlarm" }
Switch I_House_Amc120_MotTm_sw_v "120 Motion Alarm Timer [%s]" (G_House_Amc120, G_CamMotTm_sw) { expire="3s,command=OFF" }
// Camera 121 (xxx.xxx.xxx.121: Amcrest IP2M-841W)
Group G_House_Amc121 "121 Camera" <house> (G_House, G_Cameras)
Image I_House_Amc121_Jpg_im_c "121 Snapshot JPG" <camera> (G_House_Amc121, G_CamJpg_im) { channel="ipcamera:DAHUA:121:image" }
Switch I_House_Amc121_MotEn_sw_v "121 Motion Alarm Enable [%s]" (G_House_Amc121, G_CamMotEn_sw)
Switch I_House_Amc121_MotAct_sw_c "121 Motion Alarm Active [%s]" <motion> (G_House_Amc121, G_CamMotAct_sw) { channel="ipcamera:DAHUA:121:motionAlarm" }
Switch I_House_Amc121_MotTm_sw_v "121 Motion Alarm Timer [%s]" (G_House_Amc121, G_CamMotTm_sw) { expire="3s,command=OFF" }
// Camera 122 (xxx.xxx.xxx.122: Amcrest IP8M-2493EW)
Group G_House_Amc122 "122 Camera" <house> (G_House, G_Cameras)
Image I_House_Amc122_Jpg_im_c "122 Snapshot JPG" <camera> (G_House_Amc122, G_CamJpg_im) { channel="ipcamera:DAHUA:122:image" }
Switch I_House_Amc122_MotEn_sw_v "122 Motion Alarm Enable [%s]" (G_House_Amc122, G_CamMotEn_sw)
Switch I_House_Amc122_MotAct_sw_c "122 Motion Alarm Active [%s]" <motion> (G_House_Amc122, G_CamMotAct_sw) { channel="ipcamera:DAHUA:122:motionAlarm" }
Switch I_House_Amc122_MotTm_sw_v "122 Motion Alarm Timer [%s]" (G_House_Amc122, G_CamMotTm_sw) { expire="3s,command=OFF" }
// Camera 123 (xxx.xxx.xxx.123: Amcrest IP8M-2493EW)
Group G_House_Amc123 "123 Camera" <house> (G_House, G_Cameras)
Image I_House_Amc123_Jpg_im_c "123 Snapshot JPG" <camera> (G_House_Amc123, G_CamJpg_im) { channel="ipcamera:DAHUA:123:image" }
Switch I_House_Amc123_MotEn_sw_v "123 Motion Alarm Enable [%s]" (G_House_Amc123, G_CamMotEn_sw)
Switch I_House_Amc123_MotAct_sw_c "123 Motion Alarm Active [%s]" <motion> (G_House_Amc123, G_CamMotAct_sw) { channel="ipcamera:DAHUA:123:motionAlarm" }
Switch I_House_Amc123_MotTm_sw_v "123 Motion Alarm Timer [%s]" (G_House_Amc123, G_CamMotTm_sw) { expire="3s,command=OFF" }
Memory when openHAB has crashed from IpCamera:
Memory
Current heap size 334,784 kbytes
Maximum heap size 506,816 kbytes
Committed heap size 506,816 kbytes
openhabian@openHABianPi:~$ free -h
total used free shared buff/cache available
Mem: 976M 764M 36M 11M 175M 151M
Swap: 99M 4.2M 95M
Thanks in advance for the help.
Hardware: Raspberry Pi3
OS: openhabian 2.4.0-1 (Release Build)
IpCamera: 2.5.0.201908030247 (SNAPSHOT downloaded today 2019.08.08)
Amcrest models: IP2M-841EW, IP2M-841B, IP8M-2493EW