apache / plc4x

PLC4X The Industrial IoT adapter
https://plc4x.apache.org/
Apache License 2.0
1.26k stars 401 forks source link

[Bug][OPC-UA]: org.apache.plc4x.java.api.exceptions.PlcProtocolException: Server returned error BadTooManySessions (0x80560000) #1589

Open ShawnKion opened 5 months ago

ShawnKion commented 5 months ago

What happened?

When I tried to read some nodes multiple times, the issue of too many sessions occurred. I'm wondering if there is a configuration file that I can set some values to limit the max session I need?

Version

0.12.0

Programming Languages

Protocols

splatch commented 4 months ago

Hello @ShawnKion, Can you share some more information - how do you scrap PLC, how long it does take to get this error, and how many threads you use in your application?

Strictly speaking it is runtime issue, so we have to look closer at how you read data and, probably, what are server settings.

qtvbwfn commented 1 month ago

@ShawnKion The OPCUA SERVER limits the number of connection sessions, so make sure you haven't established too many connections. You also need to check the OPCUA SERVER's limitations regarding connections.