Replies: 2 comments 4 replies
-
Yeah, asynchronous tasks will load projects (and their components) into memory, e.g. to perform vulnerability analysis on them. The fact that the majority of your heap size is from Unfortunately there's not much you can do outside of:
Since (IIRC) you're running on k8s, can you determine if k8s kills the Pod with
I can't spot any changes between those versions that might impact this particular problem: 4.11.4...4.11.7. Obviously I don't want to discard your observation, but nothing jumps to my eye that would explain this Verschlimmbesserung. I know it doesn't help you right now, but we have a Hyades instance with 40k projects where the memory usage graph looks like this: A big factor is that we were able to disable the L2 cache entirely. Unfortunately we can't do it as easily for everyone using v4 of DT :( |
Beta Was this translation helpful? Give feedback.
-
Hello @nscuro , Thanks for you answer !
But this is done sequentially, right ? So it has to be purgeable at some point or what do I miss ? Also should this kind of activity be visible somewhere in the provided dashboard ? Or do you know which log to track (e.g. ProjectMetricsUpdateTask) ?
I might try -XX:InitiatingHeapOccupancyPercent
Since last time we completely disabled the L2 cache, so that can't be it.
I can't find any log of the crash so I would assume the JVM kills itself (?), to be confirmed.
That's what I thought as well, it might have been an unfortunate combination of factors that made me think that in the 1st place... But it was before the summer break so I can't remember anymore :D Anyway, I can't wait for us to migrate to Hyades, it looks so promising ! Thanks again for your insight ! |
Beta Was this translation helpful? Give feedback.
-
Hello,
According to the official doc the absolute minimum amount of RAM is 4.5GB. But with 6GB it takes ~2 to 6 hours before DT uses all the available memory. This eventually leads to a server restart.
Here are some more information
Do you know what could cause such behavior ?
Is the minimum RAM linked to the number of projects stored ? We naively guessed the RAM was mainly tied to ingestion processing, but maybe background tasks (to keep projects up-to-date & co) also need quite some resources.
Anyway, we'll increase the memory and see if it helps.
Thanks in advance for your insight !
Beta Was this translation helpful? Give feedback.
All reactions