py5_tools.add_options()

Provide JVM options to use when the JVM starts.

Examples

1
2
3
import py5_tools
py5_tools.add_options('-Xmx4096m')
import py5

Description

Provide JVM options to use when the JVM starts. This is useful to set the JVM memory size, for example.

After the JVM has started, new options cannot be added. This function will throw a RuntimeError if it is called after the JVM has already started. Use py5_tools.is_jvm_running() to first determine if the JVM is running.

Syntax

add_options(*options: List[str]) -> None

Parameters

  • options: List[str] - list of desired JVM options

Updated on September 11, 2021 16:51:34pm UTC