Versions Compared

Key

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

...

Code Block
languagebash
titleSpecify minimum and maximum heap size for JOC Cockpit with Unix
# Default value
JAVA_OPTIONS="-Xms128m -Xmx500m"
Code Block
languagebash
titleSpecify minimum and maximum heap size for JOC Cockpit for Windows
@rem Default value
set JAVA_OPTIONS=-Xms128m -Xmx500m

Explanation:

  • JOC Cockpit can be operated from initially 128 MB heap size with -Xms128m.
  • Heap size can grow up to the specified maximum -Xmx500m based on performance indicators such as
    • the number users working with JOC Cockpit,
    • the number of inventory items such as workflows, schedules etc.
  • The above values should work for approx. 10 concurrent users.

...

Code Block
languagebash
titleSpecify minimum and maximum heap size for Controllers with Unix
# No Default value

# Recommended: limit initial and max. heap size
JAVA_OPTIONS="-Xms500m -Xmx1g"
Code Block
languagebash
titleSpecify minimum and maximum heap size for Controllers with Windows
@rem No Default value

@rem Recommended: limit initial and max. heap size
set JAVA_OPTIONS=-Xms500m -Xmx1g

Explanation:

  • The Controller can be operated from initially 500 MB heap size with -Xms500m.
  • Heap size can grow up to the specified maximum -Xmx1g based on performance indicators such as
    • the number of workflows deployed to the Controller,
    • the max. failure time for which the Controller is not connected to JOC Cockpit.
  • The above values should work for approx. 10 000 workflows with a max. failure time of 24 hours.

...

Code Block
languagebash
titleSpecify minimum and maximum heap size for Agents with Unix
# Default value
JAVA_OPTIONS="-Xms100m"

# Recommended: limit initial and max. heap size
JAVA_OPTIONS="-Xms100m -Xmx1g"
Code Block
languagebash
titleSpecify minimum and maximum heap size for Agents with Windows
@rem Default value
set JAVA_OPTIONS=-Xms100m

@rem Recommended: limit initial and max. heap size
set JAVA_OPTIONS=-Xms100m -Xmx1g

Explanation:

  • The Agent can be operated from initially 100 MB heap size with -Xms100m.
  • By default no maximum heap size is assigned, i.e. the Agent will be assigned the heap size calculated by Java when starting the Java Virtual Machine.
  • Heap size can grow up to the specified maximum -Xmx1g based on performance indicators such as
    • the number of workflows deployed to the Agent,
    • the number of parallel tasks executed with the Agent,
    • the max. failure time for which the Agent is not connected to a Controller.
  • The above values should work for approx. 10 000 workflows with a max. failure time of 24 hours.

...

Code Block
languagebash
titleSpecify thread stack size for JOC Cockpit with Unix
# Default value
JAVA_OPTIONS="-Xss=4000kb"4000kb"
Code Block
languagebash
titleSpecify thread stack size for JOC Cockpit with Windows
@rem Default value
set JAVA_OPTIONS=-Xss=4000kb

Explanation:

  • If a StackOverflowError exception is raised then the stack in use is larger than the thread stack size and suggests to increase the thread stack size..
  • if an OutOfMemoryError exception is raised then the stack is larger then the available memory and suggests to decrease the thread stack size.

...

Code Block
languagebash
titleActivate G1 Garbage Collector with Unix
# Recommended: use G1 Garbage Collector
JAVA_OPTIONS="-XX:+UseG1GC"
Code Block
languagebash
titleActivate G1 Garbage Collector with Windows
@rem Recommended: use G1 Garbage Collector
set JAVA_OPTIONS=-XX:+UseG1GC

Explanation:

  • It is recommended to activate the G1 Garbage Collector
  • This applies to Java releases 1.8 to 11. For Java 17 the default Garbage Collector is G1.
  • This option is applicable for JOC Cockpit, Controller and Agents.

...

Code Block
languagebash
titleActivate String Deduplication with Unix
# Recommended: activate string deduplication
JAVA_OPTIONS="-XX:+UseStringDeduplication"
Code Block
languagebash
titleActivate String Deduplication with Windows
@rem Recommended: activate string deduplication
set JAVA_OPTIONS=-XX:+UseStringDeduplication

Explanation:

  • String deduplication reduces memory consumption.
  • This option is applicable for JOC Cockpit, Controller and Agents.

...

Code Block
languagebash
titleSet entropy pool with Unix
# Recommended: specify non-blocking entropy pool if not specified by java.security file
JAVA_OPTIONS="-Djava.security.egd=file:///dev/urandom"
Code Block
languagebash
titleSet entropy pool with Windows
@rem Recommended: specify non-blocking entropy pool if not specified by java.security file
set JAVA_OPTIONS=-Djava.security.egd=file:///dev/urandom

NoteExplanation:

...