FHIR Chat · Java Memory question · hapi

Stream: hapi

Topic: Java Memory question


view this post on Zulip Grahame Grieve (Aug 29 2018 at 02:34):

I have a user trying to use the IG Publisher. He's invoking it using -Xmx4096, but actually only getting 247MB available to Java - why doesn't that work? any thoughts?

view this post on Zulip Chris Moesel (Aug 29 2018 at 02:41):

Is it really -Xmx4096 or do you mean -Xmx4096m? Without the m, you're talking bytes.

view this post on Zulip Grahame Grieve (Aug 29 2018 at 03:47):

to be precice: -Xmx4096M

view this post on Zulip Chris Moesel (Aug 29 2018 at 13:22):

Darn. I was hoping this would be an easy one!

view this post on Zulip Oliver Egger (Aug 29 2018 at 14:16):

did the user try to also specify a minimum size with the -Xms flag? maybe the user has not enough memory on the machine? what kind of java version is it? from jdk8 on you could use jmap -heap <pid> (see https://betsol.com/2017/06/java-memory-management-for-java-virtual-machine-jvm/) to get info about the heap size

view this post on Zulip Grahame Grieve (Aug 29 2018 at 20:36):

so turns out that the user hadn't specified the -Xms flag in the right place (before the jar, not after)


Last updated: Apr 12 2022 at 19:14 UTC