Multiple log entries for warning: SetWsConnection: stalled WS connection detected for endpoint
search cancel

Multiple log entries for warning: SetWsConnection: stalled WS connection detected for endpoint

book

Article ID: 265381

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

 Found the following warning in the agent logs:

SetWsConnection: stalled WS connection detected for endpoint: agent=xxxxxxxx-ebda-489b-9a9d-80c665c3bab1, auth=True, addr=10.200.164.58:63385 (Closed), conn-id=xxxxxxxx-f347-4349-b6e0-0e2c9e0b5f71, rage=00:06:14.0377893
-----------------------------------------------------------------------------------------------------
Date: 5/4/2023 10:23:36 AM, Tick Count: 265853546 (3.01:50:53.5460000), Size: 488 B
Process: AtrsHost.exe (13204), Thread ID: 6780, Module: AtrsHost.exe
Priority: 2, Source: Altiris.ClientTask.Server.ClientStatus.SetWsConnection

Environment

ITMS 8.6, 8.7

Cause

This message is usually related to Persistent Connection issues with clients registered to the task server - that should just be a temporary issue with the clients due to network issues.

 

Resolution

This warning is normal when the connection to the client is lost. Task Server releases the socket. In most cases, this is just an entry reflecting a network slowness causing websockets (for persistent connections) to stall but later on we release those connections.

Usually, there is an entry about our Atrshost.exe service making a websocket check:

[Socket Watch] # 22, age=00:00:03.0157073, speed=0.00 [] [00:00:00], payload=0 B [] [00:00:00],
 mode=0, wait=3000, threads=1, max sockets=50000, min age=00:05:00, ka-period=00:10:00, ka-retry=00:00:05, d-events=False,
 loop time=140.65 [140.65],
 poll time=0.00 [0.00],
 reads=22.0, closes=0.0, loops=1.0
-----------------------------------------------------------------------------------------------------
Date: 5/4/2023 11:38:46 AM, Tick Count: 270363421 (3.03:06:03.4210000), Size: 542 B
Process: AtrsHost.exe (16552), Thread ID: 13676, Module: AtrsHost.exe
Priority: 4, Source: SocketWatchThread

Our Dev team has been working on improving how these warnings are displayed but at this point, there is not much to worry about besides checking your network performance.