yuuvis® RAD Q&A

+2 votes
by (2.8k points)

Dear OS Team,

how can we configure the maximum heap size for custom microservices?

If we set the heap size at a specific service to 6144M in service-watcher.yml the service.log says

dokumentenservice.10099   : Error: Could not create the Java Virtual Machine.
dokumentenservice.10099   : Error: A fatal exception has occurred. Program will exit.
dokumentenservice.10099   : Invalid maximum heap size: -Xmx6144M
dokumentenservice.10099   : The specified size exceeds the maximum representable size.

We already tried to set "C:\enaio\core-service\bin\yuuvis_rad_core-servicew.exe" -> Java - Maximum Memory Pool to 8192M and restart the machine but that did not help. We get the same error message.

Thank you.

1 Answer

+2 votes
by (1.2k points)
selected by
 
Best answer

Does it seem that you are using the 32bit JVM runtime? The theoretical limit for 32bit JVMs is 4GB.

You need to configure the x64 architecture for your microservice in the service watcher configuration like this:

-   name: extraction
    type: microservice
    arch: x64
    profiles: prod, cloud
    memory: 128M
    port: 8080
    path: ${appBase}/extractionservice/extraction-app.jar
by (2.8k points)
Thanks Michael that helped!

Related questions

0 votes
1 answer
0 votes
1 answer
asked Sep 26, 2018 by dennisschmidt (2.8k points)
0 votes
1 answer
asked Jul 24, 2020 by dennisschmidt (2.8k points)
...