ThreadPool::addJob fails

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
Sr. Member
Sr. Member
Posts: 12
Joined: 14 Sep 2016, 14:00

ThreadPool::addJob fails

Post by stenil »

I have a situation where the logs sometimes print:
"ThreadPool::addJob cannot find available thread for processing"
Could this be related to some improper combination of config settings?
At the time, 14 clients were connected.
The people using the client are saying that OPCUA variables are not updated/written by our server SW, and the message above is everything I find so far that looks suspicious (with <UaAppTraceLevel>Info</UaAppTraceLevel>, which we will increase for further trouble shooting)

Some config settings:
<!--Maximum number of sessions the server allows to create. Default value 0 is unlimited-->
<!--Maximum number of messages in the republish queue the server allows per Subscription.-->
<!--Maximum size of monitored item data queues.-->
<!--Maximum size of monitored item event queues.-->

<!--Settings for the thread pools used in the server application-->

<!--Settings for the thread pools used in the OPC UA Stack-->
<!--Controls whether the secure listener uses a thread pool to dispatch received requests-->
<!--The minimum number of threads in the thread pool-->
<!--The maximum number of threads in the thread pool-->
<!--The length of the queue with jobs waiting for a free thread-->
<!--If MaxJobs is reached the add operation can block or return an error-->
<!--If the add operation blocks on a full job queue, this value sets the maximum waiting time. 0 is infinite-->

The SDK version is 1.5.2.

Post Reply