dsldevkit / dsl-devkit

Developer kit for implementing Domain Specific Languages with Xtext. Format, Check, Export and Scope languages of DSL Developer Kit standardize DSL implementations.
https://ddk.tools.avaloq.com
Eclipse Public License 1.0
42 stars 28 forks source link

Limit size of queue for storing binary models #882

Closed ava-fred closed 8 months ago

ava-fred commented 8 months ago

There is a queue of unprocessed binary models to be stored in MonitoredClusterinBuilderState. Previously, there was no size limit queue which means it could grow very large and cause memory issues.

This commit introduces this size limit. It is set to 15'000 by default and can be changed at run time by setting the system property com.avaloq.tools.ddk.xtext.builder.binaryStorageExecutor.queueCapacity.

The number of threads used to stored binary models is now also configurable by setting com.avaloq.tools.ddk.xtext.builder.binaryStorageExecutor.parallelDegree.