Skip to end of metadata
Go to start of metadata

You should increase the Java heap space if JobScheduler reports out of memory Java exceptions (java heap space). The message in the log file looks like this:

There are two ways how to increase the available Java heap space. You can achieve this for individual jobs or you can apply the increment for all jobs.

Please note:

  • If you increase the initial heap space (-Xms) for all jobs you could run into memory troubles if you are running to much Java tasks at one time.
  • In most cases it is sufficient to apply just a maximum Java heap space with -Xmx.

You should descrease the Java heap space if the JVM crashes with this dump

 Expand source

 

Increment/Decrement for only one job using Java

If you want to increase the heap space for only one job you can do this by the job configuration, see http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job.xml#attribute_java_options

Increment/Decrement for all jobs using Java

You can increase the maximum Java heap space (set by the JobScheduler when starting the JVM) within the configuration file sos.ini, for example:

You can add more Java options. For example you can set the initial and maximum Java heap space with:

See also

  • Please consider the different strategies of Java heap space usage covered in the article How to manage the Java heap space
  • For possible JVM options please see the Java documention