cdsframework / ice

Immunization Calculation Engine (ICE) Service
https://cdsframework.atlassian.net/wiki/spaces/ICE/overview
Other
12 stars 9 forks source link

Memory requirements for the API? #31

Closed vshahrda closed 2 years ago

vshahrda commented 2 years ago

Hello, I have set up an instance of the openCDS calculation machine on one of our VMs. The machine has 2GB of memory and I have set the km.threads=3.

While doing some testing with a sample patient input with around 20 immunization records in the payload, we encounter the below error:

java.lang.OutOfMemoryError: Java heap space

What is the minimum system/memory requirements for this service? I have already configured Tomcat9 to increase the memory, but still getting this error:

set CATALINA_OPTS=-Xms4096m -Xmx4096m;
set JAVA_OPTS="-Xms4096m -Xmx4096m"
op-kevin-graveley commented 2 years ago

Documentation has the the memory settings at: -Xms512m -Xmx2560m

I'm running on a 1g container for testing. If your VM has 2GB of ram maybe try -Xms512m -Xmx1024m

vshahrda commented 2 years ago

After some investigation, we discovered that the request had some duplicate records that was causing the memory spike. Closing this. Thanks for the response.