Replies: 2 comments 2 replies
-
|
The container is configured such that up to 80-90% of available memory may be used for the JVM's heap. You can pass a custom, absolute size using: However it's a bit odd that you'd need this much to begin with. We test with BOMs larger than yours and those work fine even with much smaller heap sizes of 2g or less. How many projects does your DT instance have? And are you able to provide some logs for the crashes you are observing? That would help with figuring out what's going wrong here. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks - I changed the line in my docker_compose.yml to " EXTRA_JAVA_OPTIONS: "-Xmx8g"" and uncommented it and now it seems to start up fine, but I'm still getting a java heap error. There's only a single project, and I upload my SBOM to it. It seems to find the 9017 components OK in the 'Components' tab with a few invalid CPE warnings in the API server log, but it doesn't identify any vulnerabilities and no errors show up in any of the containers. I go to the 'Audit Vulnerabilities' tab and click 'Reanalyze' and that's when the following error eventually shows in in the API Server log `2026-02-22 14:16:58,574 INFO [EventService] An singleton event (ScheduledNotificationDispatchEvent) was received but another singleton event of the same type is already in progress. Skipping. 2026-02-22 14:17:11,520 ERROR [LoggableUncaughtExceptionHandler] An unknown error occurred in an asynchronous event or notification thread java.lang.OutOfMemoryError: Java heap space 2026-02-22 14:18:57,701 INFO [EventService] An singleton event (ScheduledNotificationDispatchEvent) was received but another singleton event of the same type is already in progress. Skipping. 2026-02-22 14:19:08,194 ERROR [LoggableUncaughtExceptionHandler] An unknown error occurred in an asynchronous event or notification thread java.lang.OutOfMemoryError: Java heap space 2026-02-22 14:19:08,211 WARN [ProxyConnection] non-transactional - Connection org.postgresql.jdbc.PgConnection@298872a3 marked as broken because of SQLSTATE(08003), ErrorCode(0) [principal=admin, requestUri=/v1/finding/project/{uuid}/analyze, requestId=f1f170dd-99d2-4747-bfeb-821d64eec016, requestMethod=POST] org.postgresql.util.PSQLException: This connection has been closed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I keep running into Java heap space issues and I was wondering how I can increase it for DT in Docker. I tried uncommenting the 'EXTRA_JAVA_OPTIONS: ""' in docker_compose.yml and adding '-Xms8g' as an option but the app wouldn't even start up when I did that. After commenting it back out everything started up fine. I have 'memory: 16g' set up under 'deploy', but I keep getting the heap error. Note that I'm ingesting a SBOM with over 9,000 components and around 4,700 vulns so far.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions