Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
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
|
...
- If a main JobScheduler process is being allocated too little heap space, you can read how to increase the heap space in this FAQour How to increase or decrease the Java heap space article.
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 | ||
---|---|---|
| ||
<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>
|
...