You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we currently run Dependency Track with 1200 projects, with around 160k components and we notice a certain build up of memory usage during the day: It usally starts with around 1GB in use, but steadily builds up to 10GB.
I see in the logging that the PortfolioMetricsUpdateTask finishes when the memory usage drops down to 1GB. Is this normal behaviour? I have set the Portfolio Metrics update interval set to 1 hour. This is exactly the time after the memory drop before it starts building up again.
Steps to Reproduce
Run Dependeny Track 4.11.7 with the official containers.
Let it run with 1200 projects, 160k components. Portfolio metrics interval set to 1 hour.
The task starts, and keeps using more memory.
Task finishes and all the memory is released again.
Until heap usage approaches the maximum allowed size, there's little incentive for the garbage collector to kick in. The steep fall after heap usage reaches the ~10G mark in your case shows this quite well. Unless the application crashes, this is nothing to be worried about.
Also note that you're looking at specifically JVM heap usage there. The actual memory used by the JVM doesn't fluctuate like this, and in your case likely sits around the 11-12G mark.
If you don't want the heap to grow that large, you can set the EXTRA_JAVA_OPTIONS environment variable to either:
-XX:MaxRAMPercentage=50.0 to restrict heap size to up to 50% (as an example) of available memory
-Xmx4g to restrict heap size to up to 4G (again just an example)
Current Behavior
Hi, we currently run Dependency Track with 1200 projects, with around 160k components and we notice a certain build up of memory usage during the day: It usally starts with around 1GB in use, but steadily builds up to 10GB.
I see in the logging that the PortfolioMetricsUpdateTask finishes when the memory usage drops down to 1GB. Is this normal behaviour? I have set the Portfolio Metrics update interval set to 1 hour. This is exactly the time after the memory drop before it starts building up again.
Steps to Reproduce
Expected Behavior
Perhaps a bit more leveled out memory usage?
Dependency-Track Version
4.11.7
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
16
Browser
N/A
Checklist
The text was updated successfully, but these errors were encountered: