Stream: hapi
Topic: help me
Luis EC (May 31 2019 at 19:42):
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)
Paul Lynch (May 31 2019 at 20:39):
I'm not sure where in HAPI you would do this, but you might look into increasing he maximum heap size Java uses to start (the -Xmx option). (https://stackoverflow.com/questions/5374455/what-does-java-option-xmx-stand-for)
Last updated: Apr 12 2022 at 19:14 UTC