che icon indicating copy to clipboard operation
che copied to clipboard

Show warning notification in CheCode if >90% of the resource limit is reached

Open dkwon17 opened this issue 3 years ago • 0 comments

Is your enhancement related to a problem? Please describe

When working on a che-code project, I ran a task which led to the memory usage of my developerment container to exceed the memoryLimit. The VS Code editor stopped responding as a result, so I had to restart the workspace.

Describe the solution you'd like

It would be nice if the che-resource-monitor extension displayed a warning notification if, say, >%90 of the memory or CPU limit has been reached.

Maybe something like:

Warning: 9.43GB out of 10GB memory used by the {CONTAINER_NAME} container.
Consider increasing the memoryLimit for this container.

[Don't show again]

I think there should also be a setting to disable the notification.

Describe alternatives you've considered

No response

Additional context

No response

dkwon17 avatar Aug 08 '22 19:08 dkwon17