You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/12/12 07:06:43 UTC

[GitHub] [cloudstack] rohityadavcloud commented on a diff in pull request #6970: fix cpu usage for console vm when using vnc over websockets

rohityadavcloud commented on code in PR #6970:
URL: https://github.com/apache/cloudstack/pull/6970#discussion_r1045465621


##########
services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVncClient.java:
##########
@@ -113,6 +113,12 @@ public void run() {
                                 updateFrontEndActivityTime();
                             }
                             connectionAlive = client.isVncOverWebSocketConnectionAlive();
+                            try {
+                                Thread.sleep(1);
+                            } catch (Exception e) {
+                                e.printStackTrace();

Review Comment:
   this should be logged instead of on stderr



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org