py5_tools.add_options()#

Provide JVM options to use when the JVM starts.

Examples#

1import py5_tools
2py5_tools.add_options('-Xmx4096m')
3import 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 March 01, 2022 12:15:01pm UTC