Hi Team,

We have precompileJSPs tests that include compilation of around 4000 jsp files. 
After upgrading to Tomcat 8.5.34 from Tomcat 8.5.32 we are facing an Error: 
java.lang.OutOfMemoryError: unable to create new native thread

The machines on which tests were executed have 16GB of RAM, out of which around 
13GB was free.
The precompileJSPs tests were executed on Tomcat 8.5.34 by setting ANT_OPTS 
from -Xmx4096m to -Xmx10240m, But Still the result was OutOfMemoryError.

However, We successfully tested precompileJSPs tests for Tomcat 8.5.32 with 
ANT_OPTS as -Xmx384m

Can someone please have a look into this issue?


Thanks and Regards,
Rajendra Rathore
9922701491

<taskdef classname="org.apache.jasper.JspC" name="jasper2">  <!-- load key 
JspC/jasper2 task -->
      <classpath id="jspc.classpath">
        <pathelement location="${toolsJarLocation}"/>
        <fileset dir="${tomcatHome}/bin">
          <include name="*.jar"/>
        </fileset>
        <pathelement location="${tomcatHome}/lib"/>
        <fileset dir="${tomcatHome}/lib">
          <include name="*.jar"/>
        </fileset>
      </classpath>
    </taskdef>


<jasper2 uriroot="${docBaseLocation}" classpath="${wcWebAppClasspathAsString}"
             compile="true" outputDir="${outputDir}" mappedFile="true"
             classDebugInfo="true" smapSuppressed="${smapSuppressed}"
             compilerSourceVM="${sourceVer}" compilerTargetVM="${targetVer}"
             listErrors="true" verbose="${jspcVerbosityLevel}" 
jspFiles="${jspFileList}"/>
--------------------------------------------------------------------------------
!+! EXITING FROM ANTCALL WITHIN PreCompileJsps[preCompileJsps.xml]
--------------------------------------------------------------------------------
     [echo] FAILED to compile temp.jsp
     [echo] 
     [echo] The following error occurred while executing this line:
     [echo] preCompileJsps.xml: The following error occurred while executing 
this line:
     [echo] preCompileJsps.xml: java.lang.OutOfMemoryError: unable to create 
new native thread
  [antcall] Exiting preCompileJsps.xml.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to