Login  •  Register


Got Bad_TooManyPublishRequest  Topic is solved

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

Got Bad_TooManyPublishRequest

Postby roger » 15 Jan 2016, 14:29

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
roger
Newbie
Newbie
 
Posts: 3
Joined: 15 Jan 2016, 14:23

Re: Got Bad_TooManyPublishRequest

Postby Support Team » 22 Jan 2016, 13:51

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
User avatar
Support Team
Hero Member
Hero Member
 
Posts: 2397
Joined: 18 Mar 2011, 15:09

Re: Got Bad_TooManyPublishRequest  Topic is solved

Postby roger » 02 Feb 2016, 10:55

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
roger
Newbie
Newbie
 
Posts: 3
Joined: 15 Jan 2016, 14:23

Re: Got Bad_TooManyPublishRequest

Postby Support Team » 02 May 2016, 07:31

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
User avatar
Support Team
Hero Member
Hero Member
 
Posts: 2397
Joined: 18 Mar 2011, 15:09

Re: Got Bad_TooManyPublishRequest

Postby roger » 02 May 2016, 09:29

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
roger
Newbie
Newbie
 
Posts: 3
Joined: 15 Jan 2016, 14:23


Return to JAVA based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 0 guests