-
Bug Report
-
Resolution: Cannot Reproduce
-
L3 - Default
-
None
-
None
-
None
Environment (Required on creation):
Camunda 7.14.0
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
We got huge memory usage on our production and after the heap dump analyzing we got that most of memory is used by camunda and expecially by DbEntityManager class.
Steps to reproduce (Required on creation):
Run big number of process instances with full history level
Observed Behavior (Required on creation):
Huge memory usage
Expected behavior (Required on creation):
No memory leacks
Root Cause (Required on prioritization):
See description
Solution Ideas (Optional):
Store in cache only these objects camunda won't work without
Hi,
Please provide a proper analysis of the memory issue that you are observing. What is currently missing:
I'm sorry that we can't do memory analysis for you. If you can point us to a specific problem in our code, we are happy to fix it.
Please note that the DbEntityManger and DbEntityCache objects only live for as long as an (API) command runs. Once a command completes, the entity manager and cache are dereferenced and garbage-collected. If however that command loads a lot of data (e.g. because it makes a query with many results), then you may see an increase in memory consumption while that command runs. Also, if the command never returns (e.g. in the case of an infinite loop in the process), then the memory will also not be freed up.
Cheers,
Thorben