Announcement

Collapse
No announcement yet.

Mirth Stack Size Bug

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mirth Stack Size Bug

    Symptoms:
    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

    Effect:
    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.

    Reason:
    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).

    Workaround:
    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":
    Code:
    -Xss2M
    For the mirth Administrator add the following option in the "Mirth Administrator.jnlp" file:

    Code:
    	<resources>
    		<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 Files
    Last edited by odo; 12-08-2017, 08:43 AM.
Working...
X