Ask the Community
Groups
Java Out of Memory Error When Importing URL Transaction Test Scripts - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>PROBLEM:</strong></p> <p>Importing URL transaction test scripts will not finish in environments with a large number or devices and tests provisioned. </p> <p><strong>CAUSE:</strong></p> <p>By default, the maximum memory allocated to the Java Virtual Machine is 256 megabytes. When you import the test scripts, the procedure attempts to load all the devices/test objects and 256 megabytes are not enough to load very large environments. </p> <p><strong>RESOLUTION:</strong></p> <p>Near the end of the 'TRAVERSE_HOME\database\schema\alter>\insertDeepWebTestScripts.sh.cmd' script there is a reference to 'Xmx256m' (maximum memory allocated to Java Virtual Machine):</p> <div> <pre class="code codeBlock" spellcheck="false" tabindex="0">"%JAVA_CMD%" -Xmx256m ^<br> -XX:-UseSplitVerifier ^<br> -Djava.ext.dirs="%INSTALL_DIR%\apps\jre\lib\ext;%INSTALL_DIR%\webapp\WEB-INF\lib" ^<br> -Dlog4j.configuration="file:///%INSTALL_DIR%\etc\log4j.conf" ^<br> -Dnetvigil.config="%INSTALL_DIR%\etc\emerald.properties" ^<br> com.zyrion.traverse.utils.DeepWebTestScriptInserter ^<br> "/%INSTALL_DIR%\etc\emerald.xml" "/%IMPORT_FILE%"</pre> </div> <p>Change it to 'Xmx512m' to allocate 512 megabytes to the Java Virtual Machine.</p> <p> </p> <p><strong>APPLIES TO:</strong></p> <p>All versions of Traverse</p> </article> </main>