Increasing Max configured JVM memory to run hapi-fhir-3.4.0

162 views
Skip to first unread message

julious...@gmail.com

unread,
Aug 20, 2018, 2:22:14 AM8/20/18
to HAPI FHIR
Hi all,

Just want to ask how to increase JVM memory to run hapi-fhir-3.4.0 cli.
Currently my default JVM memory Xmx is 239.8MB.
That is why im having outofmemory error. 

Thanks,
Juls

James Agnew

unread,
Aug 20, 2018, 5:29:17 AM8/20/18
to julious...@gmail.com, HAPI FHIR
Hi Juls,

You should be able to increase the max memory by setting an environment variable called JVM_CONFIG_CLI_PROPS (windows) or CLI_OPTS (linux/osx) to a value like "-Xmx1g".

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/d8fc5b27-4c08-4f51-99d0-0837531788ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrick Werner

unread,
Aug 20, 2018, 5:33:28 AM8/20/18
to HAPI FHIR
Hi Juls,

if you start the jar directly you can specify the JVM memory size:

java -Xmx256m -jar hapi-cli.jar

Xmx256m -> 256 MB Heapsize
Xmx2G -> 2GB Heapsize

julious...@gmail.com

unread,
Aug 20, 2018, 5:53:55 AM8/20/18
to HAPI FHIR
Thanks very much to both of u, James Agnew & Patrick Werner
Reply all
Reply to author
Forward
0 new messages