Giter Site home page Giter Site logo

Comments (7)

robkamp avatar robkamp commented on June 16, 2024 1

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.

from openhab-distro.

openhab-bot avatar openhab-bot commented on June 16, 2024

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/really-struggling-with-miele-cloud-number-of-threads-in-docker/144919/7

from openhab-distro.

wborn avatar wborn commented on June 16, 2024

You can fix this by reconfiguring the parameters in conf/services/runtime.cfg:

################################## WEBCLIENT ###################################
# For installations on higher end systems with many cores, increasing number of webclient threads
# may be necessary. Usually, this is reported with "Insufficient configured threads" in the logs.
#
# org.openhab.webclient:minThreadsShared = 20
# org.openhab.webclient:maxThreadsShared = 80
# org.openhab.webclient:minThreadsCustom = 20
# org.openhab.webclient:maxThreadsCustom = 40

from openhab-distro.

robkamp avatar robkamp commented on June 16, 2024

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.

from openhab-distro.

wborn avatar wborn commented on June 16, 2024

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

from openhab-distro.

robkamp avatar robkamp commented on June 16, 2024

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.

from openhab-distro.

wborn avatar wborn commented on June 16, 2024

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.

from openhab-distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.