[ 
https://issues.apache.org/jira/browse/AMBARI-25928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17847864#comment-17847864
 ] 

zrain commented on AMBARI-25928:
--------------------------------

Hi [~skumar34] 

Thank you for your feedback, but this should be the expected situation. The 
specific duration displayed in the *Time* column indicates that the WebSocket 
connection has been closed; it will not send or receive anything. The developer 
tools are merely recording this connection. 'Pending' indicates that the 
WebSocket connection is active. The issue arises when multiple WebSocket 
connections show as 'Pending'. We need to ensure that there is only one active 
connection at any given time.

> Continuous increase of websocket connections in Ambari web UI
> -------------------------------------------------------------
>
>                 Key: AMBARI-25928
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25928
>             Project: Ambari
>          Issue Type: Technical task
>          Components: ambari-server
>    Affects Versions: 2.8.0
>            Reporter: caijialiang
>            Assignee: zrain
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: WebSocketLeakAtAmbariUI.mov, 
> image-2023-04-14-14-48-36-956.png, image-2023-04-14-14-54-25-386.png
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> How to reproduce: Open Ambari UI page and use Chrome to view the websocket 
> connections. At the beginning, there is only one connection. After a few 
> minutes, it is observed that the connections keep increasing infinitely. If 
> the page is refreshed, the number of connections will return to one, and then 
> continue to increase.
>  
> {code:java}
> 2023-04-14 14:23:19,062  INFO [MessageBroker-1] 
> WebSocketMessageBrokerStats:128 - WebSocketSession[2 current 
> WS(2)-HttpStream(0)-HttpPoll(0), 258459 total, 0 closed abnormally (0 connect 
> failure, 0 send limit, 171 transport error)], stompSubProtocol[processed 
> CONNECT(258377)-CONNECTED(258377)-DISCONNECT(0)], stompBrokerRelay[null], 
> inboundChannel[pool size = 4, active threads = 0, queued tasks = 0, completed 
> tasks = 2109843], outboundChannel[pool size = 4, active threads = 3, queued 
> tasks = 0, completed tasks = 1747340], sockJsScheduler[pool size = 2, active 
> threads = 1, queued tasks = 0, completed tasks = 193]
> 2023-04-14 14:23:20,256  INFO [MessageBroker-1] 
> WebSocketMessageBrokerStats:128 - WebSocketSession[3 current 
> WS(3)-HttpStream(0)-HttpPoll(0), 18 total, 0 closed abnormally (0 connect 
> failure, 0 send limit, 0 transport error)], stompSubProtocol[processed 
> CONNECT(18)-CONNECTED(18)-DISCONNECT(15)], stompBrokerRelay[null], 
> inboundChannel[pool size = 10, active threads = 0, queued tasks = 0, 
> completed tasks = 415155], outboundChannel[pool size = 10, active threads = 
> 0, queued tasks = 0, completed tasks = 138408], sockJsScheduler[pool size = 
> 2, active threads = 1, queued tasks = 0, completed tasks = 193] {code}
>  
>  
>  
> !image-2023-04-14-14-48-36-956.png!
>  
> !image-2023-04-14-14-54-25-386.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to