Skip to content

Why is 4GB of heap required? #3553

Answered by nscuro
rbi asked this question in Q&A
Mar 14, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Now I wonder how these high memory requirements are justified.

The reason for the defaults in the docker-compose.yml, and the requirements check on startup, was to prevent users from running into issues due to under-resourced machines. To my understanding, this has been an issue in the past.

As for the reason of the high memory requirement, that is mostly due to an unfortunate default of the ORM that Dependency-Track is using. The ORM, similar to other ORMs in the field, has an L1 and L2 cache to reduce database roundtrips. In the majority of ORMs, the L2 cache is disabled by default. In this one, it's enabled.

I wrote a bit more about it here: stevespringett/Alpine#493, and as of today…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rbi
Comment options

Answer selected by rbi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants