-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not enough memory for sidecar container #13507
Comments
@svor yes it would be nice. Maybe report the kind of issues that you've faced when there was not enough memory. |
@tsmaeder it is not just about sidecars with LS, it is about all containers, we should know if something can't work because of OOM. @benoitf i think the cases can be different. In my case the process was killed (for java plugin), problems with web socket connection (for apache-camel plugin https://github.com/svor/files/blob/master/theia-ide_log). It is difficult to predict what might be broken |
@svor ok thx. For websocket connection errors we can easily display reports to the user. For the process killed, as they're started by the vs code extensions (and the vscode language server library is more difficult. Probably propose patchs to upstream vscode project and add new events) or enhance vscode-java to check process after it's spawn. |
As I understand it, the container gets killed as well, when more memory is requested than available. Is this something we can detect in theia or does it need to be determined from kubernetes? Do we understand in which cases the container gets killed and in which cases only the process dies? |
If it can help here is some k8s doc and in this is a command to retrieve a Che workspace pod failures reasons (a couple of containers were $ k get po -o json workspacezkdyy2ccc7vjs60h.workspace-7d87b984d6-zkdxh | jq --raw-output '.status.containerStatuses[] | "\(.image) \(.name) \(.lastState.terminated.reason)"'
eclipse/che-remote-plugin-runner-java8:next 3g0 Error
eclipse/che-machine-exec:latest che-machine-exec25j Error
eclipse/che-theia-endpoint-runtime:next kcm OOMKilled
maven:3.6.0-jdk-11 maven-container Error
centos/mysql-57-centos7:latest mysql Error
mariolet/petclinic:d2831f9b spring-boot Error
eclipse/che-theia:next theia-ideb3h Error
eclipse/che-remote-plugin-kubernetes-tooling-1.0.0:next xey OOMKilled In practice we may add this information to the containers view or create a new plugin that watch for errors in a Che workspace pod and show them in the error panel. |
I have similar use case, but instead of OOM, yaml plugin just doesn't work.
Setting memory limit to 512 Mb resolved the problem. So, at least yaml plugin doesn't work with default settings. I think we should check other plugins and make them work with default settings. |
@mmorhun do you have trace on your UnhandledPromiseRejectionWarning, to know in which code we could handle this error ? |
All what I have is logs from container with autogenerated name Logs
|
thx @mmorhun |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Description
Sometimes sidecar container has not enough memory to work perfect. In that case it is very hard to understand that problem is with memory limit. It would be nice to detect and notice somehow this problem, but I am not sure if it is possible.
@benoitf WDYT?
The text was updated successfully, but these errors were encountered: