Persistent Connection Analysis

Hello,

I recently setup our environment following these articles to enable persistent connections between our agents, relays and parent relay.

I’ve checked our own internal servers and can see healthy signs in the logs. i.e. OpenPersistentConnection: socket opened successfully. and Client is entitled to open a persistent connection.

But i’d like to know if there’s an analysis option available to check if a persistent connection has been established?

As far as I remember there is no built-in RP or analysis for it. However, it’s also not typically required, and here’s why:

Persistent Connections are designed as a fallback method for environments where UDP connectivity is not available because of so many reasons.

If UDP is available, client will not use persistent connections even if they are configured.

So even if you have persistent connection settings enabled, as long as UDP connectivity available, the client will continue to rely on UDP and won’t establish a persistent TCP connection.

When UDP is not available and if persistent connection is enabled _BESClient_PersistentConnection_Enabled = 1, the client will open a persistent TCP socket to receive updates, however its also depend upon other aspects like configured or available subnet list, direct connection etc.

If you’re looking to create a retrieved property to monitor persistent connection usage, there are two possible approaches:

  • You can check the value of the _BESClient_PersistentConnection_Enabled setting — this confirms intent but not actual usage.
  • You can attempt to parse the latest BESClient log file for indicators such as OpenPersistentConnection: socket opened successfully
1 Like