web stats
Mirth Community - View Single Post - Mirth Stack Size Bug
View Single Post
Old 12-08-2017, 07:48 AM
odo odo is offline
OBX.3 Kenobi
Join Date: Feb 2017
Location: Luxembourg
Posts: 144
odo is on a distinguished road
Default Mirth Stack Size Bug

When a code template is imported to mirth (via the webservice interface), wich contains a lot of formatting in the header section (Javascript-Doc), Mirth server and also administrator are throwing a java.lang.StackOverflowError. Please find a sample code template attached (and also a screenshot of the JavascriptDoc). Same effect occurs if such a template is created in Mirth Administrator and saved.

Please see also: https://www.mirthcorp.com/community/...wse/MIRTH-3828

If a code template library contains such a code template, the no code template library is accessible anymore. The StackOverflowError is thrown in the backend and the codetemplate library view never finishs loading.

This is just a guess: I assume that this is caused by a recursive call to a regex matching function (Please also see attached stack trace).

When the stacksize is increased in the vm-options, this issue does not appear anymore.

For the mirth service add the following line to the config file "mcservice.vmoptions":
For the mirth Administrator add the following option in the "Mirth Administrator.jnlp" file:

		<j2se href="http://java.sun.com/products/autodl/j2se" max-heap-size="2048m" version="1.6+" java-vm-args="-Xss2M"/>
Infos about the jvm stack-size can be found here.

It would be great if either the stack-size could be increased or the parsing function could be rewritten for the next release.
Attached Images
File Type: jpg SampleFunctionJavascriptDocOutput.jpg (176.1 KB, 3 views)
Attached Files
File Type: xml SampleFunctionCausingStackOverflow.xml (5.7 KB, 3 views)
File Type: xml StackOverflowErrorStacktrace.xml (79.4 KB, 2 views)

Last edited by odo; 12-08-2017 at 09:43 AM.
Reply With Quote