Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Development (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=8)
-   -   Mirth Stack Size Bug (http://www.mirthcorp.com/community/forums/showthread.php?t=217831)

odo 12-08-2017 06:48 AM

Mirth Stack Size Bug
3 Attachment(s)
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.

All times are GMT -8. The time now is 02:24 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation