FHIR Chat · Forge profile and build memory · conformance

Stream: conformance

Topic: Forge profile and build memory


view this post on Zulip Corey Spears (Mar 22 2016 at 16:10):

I have built a Composition StructureDefinition profile based off of the C-CDA Transfer Summary using Forge. When I run the build with only 3 section slices the build completes successfully. However, when I create all 29 sections, the build fails with "Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded". Is there a reason the build is only limited to 64m (ANT_OPTS=-Xms64m )? Is there a way I should look at addressing this other than adjusting the heap size? On a similar note, is there a way to decrease the size of the profile in Forge (I see Forge adds a lot of definition, comments, and requirements by default that I did not add. Is there a way to remove that)?

view this post on Zulip Michel Rutten (Mar 22 2016 at 17:53):

Hi Corey, Forge tries to merge missing values from the underlying base resource. If you clear certain properties, effectively the values will be inherited from the base profile, as defined by the current FHIR standard. FHIR seems to lack a way to explicitly clear certain inherited values in a derived profile (this could be a topic to discuss at the next WGM). Also, Forge tries hard to emit a small differential, but the result might still contain some unnecessary nodes, because of my sloppy coding ;p

view this post on Zulip Grahame Grieve (Mar 22 2016 at 19:11):

Corey, how big is all 29 sections? and which build is failing? the main FHIR build?

view this post on Zulip Corey Spears (Mar 22 2016 at 21:43):

Grahame, I am trying to build it on my local machine (before checking it in). Each section has 8 differential elements each containing a short, description, comments, min, max, base, type, and mapping. I will try the build again with a smaller version of the profile to see where the issues arise. Is there a quick way to start the build at the profile or better yet, just build my single profile?

view this post on Zulip Grahame Grieve (Mar 22 2016 at 21:46):

no there's no quick way. Sorry. It's on the to do list, but it has never quite got to the top

view this post on Zulip Grahame Grieve (Mar 22 2016 at 21:46):

but 64? that's just the ant memory. the fhir build uses 1GB+


Last updated: Apr 12 2022 at 19:14 UTC