Closed robkamp closed 1 year ago
This issue has been mentioned on openHAB Community. There might be relevant details there:
You can fix this by reconfiguring the parameters in conf/services/runtime.cfg
:
I changed both conf/services/runtime.cfg
and dist/conf/services/runtime.cfg
.
I then restarted the container. Tried the mielecloud authentication and had the same error.
The conf/services/runtime.cfg
still shows the org.openhab.webclient:maxThreadsCustom = 80
but the dist/conf/services/runtime.cfg
was overwritten due to restarting the container as this part is not persisted.
You'll only need to update conf/services/runtime.cfg
Did you also uncomment the lines by removing the #
?
After uncommenting the lines you can check that the values have been applied on the console:
openhab> config:list "(service.pid=org.openhab.webclient)"
----------------------------------------------------------------
Pid: org.openhab.webclient
BundleLocation: null
Properties:
maxThreadsCustom = 40
maxThreadsShared = 80
minThreadsCustom = 20
minThreadsShared = 20
service.pid = org.openhab.webclient
These parameters were not in the conf/services/runtime.cfg
so I had to copy them in.
After restartting the container they say what you showed:
openhab> config:list "(service.pid=org.openhab.webclient)"
----------------------------------------------------------------
Pid: org.openhab.webclient
BundleLocation: null
Properties:
maxThreadsCustom = 40
maxThreadsShared = 80
minThreadsCustom = 20
minThreadsShared = 20
service.pid = org.openhab.webclient
I tried the pairing again and it worked.
Can this configuration be automated for a deployment on a system with many cores, like mine? I have been struggling for more than half a year with this, so now I might be the only one but in the future there might be more.
Insufficient configured threads: required=16 < max=10 for QueuedThreadPool[OH-httpClient-OAuthConnector]
Maybe we can use similar logic as Jetty to automatically determine the lower bounds of these values. That way users do not need to reconfigure the values on computers with a lot of cores.
When trying to authenticate for the Miele Cloud binding using containerized OpenHAB (Docker) it fails with the following error in the log file.
Insufficient configured threads: required=16 < max=10 for QueuedThreadPool[OH-httpClient-OAuthConnector]