Got Bad_TooManyPublishRequest

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

Moderator: uasdkjava

Post Reply
roger
Jr. Member
Jr. Member
Posts: 3
Joined: 15 Jan 2016, 14:23

Got Bad_TooManyPublishRequest

Post by roger »

Hello

After registering several listener on all variables I get the log message:
2016-01-15 14:27:15,322 INFO [Blocking-Work-Executor-47] UaClient$a - Got Bad_TooManyPublishRequest from the server, waiting until one returns before sending another
1 to 3 times per seconds.

What does it mean? What is the problem?

The registration seems to work but obviously I made something wrong...

Thanks for help.

Regards

roger

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: Got Bad_TooManyPublishRequest

Post by Support Team »

Hi,

A client normally sends more than one Publish request to the server to have a queue of them available for the server to send notifications like data changes.
This error indicates that the client sent more Publish request than the server is able to queue.

Is your server a small embedded server?

Best Regards,
Unified Automation Support Team

roger
Jr. Member
Jr. Member
Posts: 3
Joined: 15 Jan 2016, 14:23

Re: Got Bad_TooManyPublishRequest

Post by roger »

Hi,
Thank you for your answer.
I am not sure what you mean with small embedded server, but I think it is one. The server is on a B&R PLC and there is probably an embedded server running...

Is there something I can improve?

Best Regards

Roger

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: Got Bad_TooManyPublishRequest

Post by Support Team »

Hi,

There is a parameter in the client SDK that allows you to change the number of parallel Publish Requests sent to the server:
UaClient.setPublishRequestFactor

The default value is 2. This value is multiplied with the number of Subscriptions.

How many Subscriptions do you create?
If you create several Subscriptions you should consider reducing the number of Subscriptions.

Best Regards,
Unified Automation Support Team

roger
Jr. Member
Jr. Member
Posts: 3
Joined: 15 Jan 2016, 14:23

Re: Got Bad_TooManyPublishRequest

Post by roger »

Hi

Reducing the public request factor helped. I set it to 1 and now the warnings don't appear anymore.
I use 6 Subscriptions and the server has a buffer of 10 Requests to handle. So that was the problem.

Thanks for your help!

Regards

Post Reply