FHIR Chat · help me · implementers

Stream: implementers

Topic: help me


view this post on Zulip Luis EC (May 31 2019 at 19:41):

I try to tests with files but when it exceeds 20 MB it marks me error, I need to correct that to do speed tests with encryption and decryption

may 31, 2019 2:35:12 PM ca.uhn.fhir.util.VersionUtil initialize
INFORMACIÓN: HAPI FHIR version 3.7.0 - Rev f2560071c8
may 31, 2019 2:35:13 PM ca.uhn.fhir.context.FhirContext <init>
INFORMACIÓN: Creating new FHIR context for FHIR version [DSTU3]
may 31, 2019 2:35:16 PM ca.uhn.fhir.util.jar.DependencyLogImpl logStaxImplementation
INFORMACIÓN: FHIR XML procesing will use StAX implementation 'Java Runtime Environment' version '1.8.0_212'
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.StringCoding.encode(StringCoding.java:350)
at java.lang.String.getBytes(String.java:941)
at ca.uhn.fhir.rest.client.apache.ApacheHttpClient.createHttpRequest(ApacheHttpClient.java:134)
at ca.uhn.fhir.rest.client.apache.BaseHttpClient.createByteRequest(BaseHttpClient.java:98)
at ca.uhn.fhir.rest.client.method.BaseHttpClientInvocationWithContents.asHttpRequest(BaseHttpClientInvocationWithContents.java:135)
at ca.uhn.fhir.rest.client.method.HttpPostClientInvocation.asHttpRequest(HttpPostClientInvocation.java:32)
at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:252)
at ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:415)
at ca.uhn.fhir.rest.client.impl.GenericClient$CreateInternal.execute(GenericClient.java:562)
at ca.uhn.fhir.rest.client.impl.GenericClient$CreateInternal.execute(GenericClient.java:517)
at Modelo.HapiTestNormal.main(HapiTestNormal.java:96)

view this post on Zulip Grahame Grieve (May 31 2019 at 19:41):

you should raise this in the HAPI support forum

view this post on Zulip Lloyd McKenzie (May 31 2019 at 19:42):

#hapi

view this post on Zulip Lloyd McKenzie (May 31 2019 at 19:42):

Also, have you tried increasing the memory available to the process?

view this post on Zulip Luis EC (May 31 2019 at 19:44):

where the file is located I was looking for

view this post on Zulip Lloyd McKenzie (May 31 2019 at 20:11):

I'm not understanding your question

view this post on Zulip Luis EC (May 31 2019 at 21:33):

what file I have to modify to be able to solve this error that stops me, I have been searching but I can not find the solution

view this post on Zulip Lloyd McKenzie (May 31 2019 at 22:37):

You probably need to change the memory parameters when launching Java. Which file depends on how you're launching java

view this post on Zulip ben benazzi (Jun 01 2019 at 18:43):

(deleted)

view this post on Zulip Lloyd McKenzie (Jun 01 2019 at 19:16):

Your best bet as a beginner is to use a tool like Trifolia or Simplifier. They're more limited in what they can do, but are much easier to use. The HL7 IGPublisher is more capable but requires quite a bit more effort to get it up and running. We're in the midst of refactoring it to make it simpler (which means that by the time you got up the learning curve for how it works now, it'd be time to mount a new one for the new approach...)


Last updated: Apr 12 2022 at 19:14 UTC