Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

Z-JAVA-105 - Java exception java.lang.OutOfMemoryError

Before we are able to make an exact diagnosis of the problem, we would require to know the following:

...

We are getting the following error message:

Code Block

 Z-JAVA-105 Java exception java.lang.OutOfMemoryError("Java heap space"), method=spooler_process()Z

...

Problem unable to create new native thread

We are getting the following error message:

Code Block

 Z-JAVA-105 Java exception java.lang.OutOfMemoryError("unable to create new native thread"), method=spooler_process()Z []

...

Workaround unable to create new native thread

Copy the attached file force_new_task.js from force_new_task.zip to the folder where the api job is stored and configure the job with the following monitor-script and a parameter "max_num_of_orders_per_task":

Code Block
languagehtml/xml

<job  order="yes" stop_on_error="no">
    <params >
        <param  name="max_num_of_orders_per_task" value="10"/>
    </params>

    <script .../>

    <monitor  name="forceNewTask" ordering="1">
        <script  language="javax.script:rhino">
            <include  live_file="force_new_task.js"/>
        </script>
    </monitor>

    <run_time />
</job>

...