Theia gets offline on heavy processes

It seems that when we run a heavy process on the IDE or on its machine that causes the IDE to be offline for few seconds. Is there a way to overcome it?

[original thread by amiramw]

On backend?

[amiramw]

yes

The main process should be used to handler frontend requests, heavy computation should be forked to another process.

[amiramw]

could be heavy npm install

So it is forked already?

[amiramw]

yes

[amiramw]

you don’t see this on gitpod?

We seen one issue last 2 weeks, but it was fixed: https://github.com/eclipse-theia/theia/pull/7676

Can you reproduce with latest Theia?

Otherwise it would be good to come up with reproducible example and we can profile.

[varmanishant]

Are you on VM? On my Hyper-V this happens possibly due to huge RAM consumption causing some outage.

[amiramw]

On K8S pod

As first step i would try to reproduce and profile it in your envs. If during profiling you notice that there are some blocking code for frontend from framework part, then look what project setup is triggering it. If there are no blocking code then it is indeed maybe caused by some other CPU hungry process in your container. There are some VS Code extensions like https://github.com/felixfbecker/vscode-php-intellisense which eats all CPU while indexing.

[amiramw]

we saw correlation between high cpu process on the container and those yellow lines