You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
plc4j
plc4go
plc4c
plc4net
Protocols
AB-Ethernet
ADS /AMS
BACnet/IP
CANopen
DeltaV
DF1
EtherNet/IP
Firmata
KNXnet/IP
Modbus
OPC-UA
S7
The text was updated successfully, but these errors were encountered:
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.
chrisdutz
changed the title
[Bug]: org.apache.plc4x.java.api.exceptions.PlcProtocolException: Server returned error BadTooManySessions (0x80560000)
[Bug][OPC-UA]: org.apache.plc4x.java.api.exceptions.PlcProtocolException: Server returned error BadTooManySessions (0x80560000)
Jun 30, 2024
@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.
This issue is most likely environment specific. Make sure that you 1) open few connections to PLC 2) construct application logic independently of connection 3) manage number of opened connections according to hardware manufacturer limits.
I am closing it for now - please re-open it if you will be able to provide more details or suspect bug in driver itself. You can try running extra diagnostics to see if your app is able to keep connection active for long time.
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
The text was updated successfully, but these errors were encountered: