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

Sandeep Kumar commented on AMBARI-25928:
----------------------------------------

Hi [~zrain] 
The fix you have given is just for not letting many web sockets to go in 
pending state, only one would be in pending state[correct me if I am wrong 
here]. I applied your changes to app.js and I observe that though only one 
websocket is in pending state but many web sockets are still open and no date 
is being exchanged using them. You can check this in the video attached. 
Shouldn't we close these unused web socket connnections? Can you check this 
once?



[^WebSocketLeakAtAmbariUI.mov]

 

 

 

> 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: issues-unsubscr...@ambari.apache.org
For additional commands, e-mail: issues-h...@ambari.apache.org

Reply via email to