yuuvis® RAD Q&A

+2 votes
by (2.9k 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.9k points)
Thanks Michael that helped!

Related questions