che
che copied to clipboard
Used CPU of a plugin is higher than limit on Developer Sandbox
Describe the bug
On developer sandbox the memory used by a plugin goes above the limit:
That should not happen. A container cannot use more CPU than its limit. Is the limit not applied? Is the used CPU mis-calculated?
Che version
7.36
Steps to reproduce
Use a devfile that includes the openshift connector and specify a low CPU limit for it. Start the workspace on developer sandbox.
Expected behavior
The used CPU should never go above the limit.
Runtime
OpenShift
Screenshots
No response
Installation method
other (please specify in additional context)
Environment
Dev Sandbox (workspaces.openshift.com)
Eclipse Che Logs
No response
Additional context
No response
I have reproduced that for the Java extension too https://github.com/eclipse/che/issues/20769
Issues go stale after 180
days of inactivity. lifecycle/stale
issues rot after an additional 7
days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale
in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen
label to avoid stale mode.
/remove-lifecycle stale
Could not overdraw the limit on dog-fooding with che-code editor:
@vinokurig try to reproduce it on developer sandbox as it is described in the description
Note that this issue was reproduced in Theia, not VS Code.
Could not reproduce it on devspaces 3.0 with che-theia neither:
Could not overdraw the limit on dog-fooding with che-code editor:
On dogfooding we do apply neither limits nor quotas, it should be verified on the Developer Sandbox staging enviroment
I've tried it on the Developer Sandbox with this devfile:
apiVersion: 1.0.0
metadata:
name: bash-psfc
projects:
- name: bash
source:
location: 'https://github.com/che-samples/bash'
type: git
branch: main
components:
- mountSources: true
command:
- tail
args:
- '-f'
- /dev/null
memoryLimit: 64Mi
type: dockerimage
alias: dev
image: 'registry.access.redhat.com/ubi8-minimal:8.3'
- id: mads-hartmann/bash-ide-vscode/latest
type: chePlugin
registryUrl: 'https://eclipse-che.github.io/che-plugin-registry/7.42.0/v3/'
- id: rogalmic/bash-debug/latest
type: chePlugin
registryUrl: 'https://eclipse-che.github.io/che-plugin-registry/7.42.0/v3/'
- id: timonwong/shellcheck/latest
preferences:
shellcheck.executablePath: /bin/shellcheck
type: chePlugin
registryUrl: 'https://eclipse-che.github.io/che-plugin-registry/7.42.0/v3/'
- id: redhat/vscode-openshift-connector/latest
memoryLimit: 500Mi
type: chePlugin
The workspcae failed to start because of the Pod crash loop back-off
error see the video:
It seems the problem with memory limit, did you detect which container was failed with OOM? Try to increase memoryLimit for that component
After the developer sandbox has been updated to 3.1 I still can't reproduce the issue. When I setupt the limit to less then 750 Mi, workspaces crashes when it reaches the maximum of RAM, but if setup more than 750 Mi, I can't overload the containers RAM limit.
I've reproduced it on the dogfooding instance:
- Start a Quarkus workspace with VSCode editor
- Install all recommended plugins
- Enable the normal Java LS
- See that Java LS is building the project
- Open resource monitor info
Issues go stale after 180
days of inactivity. lifecycle/stale
issues rot after an additional 7
days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale
in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen
label to avoid stale mode.