Skip to content
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

Too low resource requirements and too high heap memory causes processes to go OOM #106

Closed
mvanniekerkHartwig opened this issue Oct 25, 2024 · 0 comments · Fixed by #107
Closed
Labels
bug Something isn't working

Comments

@mvanniekerkHartwig
Copy link

Description of the bug

When testing out oncoanalyser against some more difficult samples I ran into quite some erratic behaviour of stages running out of memory.
In general this was caused by the java process allocating 95% of available memory, followed by the java process invoking an external (usually R) script. This would cause the container to go over the memory limits set in the base.config, and the container would be killed by the supervisor (in my case k8s).
Even without an external application (outside of java) being invoked this can happen. The Xmx parameter only sets the size of the heap. The GC operates outside of this. So if the heap fills up, the GC kicks in, filling up the remaining memory, and causing the whole container to go OOM.
Also, some stages, like purple and sage are set to a resource class that is too low for the amount of work they need to do, especially for more difficult samples.

Command used and terminal output

No response

Relevant files

No response

System information

No response

@mvanniekerkHartwig mvanniekerkHartwig added the bug Something isn't working label Oct 25, 2024
@scwatts scwatts linked a pull request Nov 8, 2024 that will close this issue
@scwatts scwatts closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants