cpvm: fix cpu usage for console vm when using vnc over websockets - #6970
Conversation
|
SonarCloud Quality Gate failed. |
Codecov Report
@@ Coverage Diff @@
## 4.18 #6970 +/- ##
=========================================
Coverage 12.93% 12.93%
Complexity 8941 8941
=========================================
Files 2715 2715
Lines 256107 256107
Branches 39938 39938
=========================================
Hits 33128 33128
Misses 218820 218820
Partials 4159 4159 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
f208dc9 to
bf8631a
Compare
|
SonarCloud Quality Gate failed. |
yadvr
left a comment
There was a problem hiding this comment.
Needs testing but otherwise LGTM
|
cc @nvazquez |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5934 |
|
Tested this with a VMware 7 env and I'm not able to see any difference in the CPU usage.
Not sure if we need to increase the sleep time or use a different approach. I'll try to test CPU usage from vCenter (Lows only when cloud service is restarted) |
|
cc @nvazquez to review |
|
@rohityadavcloud a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6110 |
|
@blueorangutan test |
|
@rohityadavcloud a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan test alma8 vmware-7u3 |
|
@rohityadavcloud [SF] unsupported parameters provided. Supported mgmt server os are: |
|
@blueorangutan test alma8 vmware-70u3 |
|
@rohityadavcloud a [SF] Trillian-Jenkins test job (alma8 mgmt + vmware-70u3) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6749 |
|
@blueorangutan test alma8 vmware-70u3 |
|
@rohityadavcloud a [SF] Trillian-Jenkins test job (alma8 mgmt + vmware-70u3) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7389)
|
| updateFrontEndActivityTime(); | ||
| } | ||
| connectionAlive = client.isVncOverWebSocketConnectionAlive(); | ||
| try { |
There was a problem hiding this comment.
a nested try should be in a separate method
@shwstppr |
|
@alexandru-bagu |
|
I haven't had the CPU issue after I applied my own patch for it. I don't know how to trigger the cpu usage for either issues though. |
ok , thanks @alexandru-bagu @nvazquez @shwstppr @DaanHoogland @rohityadavcloud |
By the looks of the code both would help, but I do not know whether that would be overkill. Is it worth testing all four combinations of those two patches? cc @JoaoJandre @alexandru-bagu |
|
I've hit this issue on vmware7u3, now I no longer have the env; but this should be easy to test in our lab cc @weizhouapache @DaanHoogland |
|
verified ok without this PR, the CPU usage increased to 100% even when only 1 vm console is open. |












Description
On a VMware ESXi 7 environment the Console VM would always use 100% cpu after one connection and it would not stop until a VM restart (or well cloud service restart inside of the VM).
This PR fixes this issue by adding a Thread.sleep(1).
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?