Configuration settings for Java™ memory issues
Updating the JVM size for services that run independently
The rest, jmx, application, data, and view services all run independently of the domain and instance service containers.
Update the following properties to adjust the JVM size for these services, where * is replaced with the service name.
- *.initialJvmSize
- *.maximumJvmSize
Updating the JVM size for Teracloud® Streams services
- registerdomainhost
- chdomainhostconfig
- getdomainhostconfig
- rmdomainhostconfig
- If the domain.jvmSizeComputationEnabled property is set to the default
value of
true
, Teracloud® Streams selects a maximum JVM size based on the system memory usage. - If the domain.jvmSizeComputationEnabled property is set to
false
, Teracloud® Streams selects a maximum JVM size based on the system default size.
You can specify the JVM size for Teracloud® Streams services by using the following domain and instance properties:
- controller.maximumJvmSize
- domainServiceContainer.initialJvmSize
- domainServiceContainer.maximumJvmSize
- instanceServiceContainer.initialJvmSize
- instanceServiceContainer.maximumJvmSize
For more information about the controller and domain properties, enter streamtool man domainproperties. For more information about the instance properties, enter streamtool man properties.
true
, the
authentication and authorization service and logging service can run independently. Use the following domain properties to specify the JVM size for these services:- aas.initialJvmSize
- aas.maximumJvmSize
- auditlog.initialJvmSize
- auditlog.maximumJvmSize
Updating the JVM size for the Streams Console
- If the domain.jvmSizeComputationEnabled property is set to the default
value of
true
, Teracloud® Streams selects a maximum JVM size based on the system memory usage. - If the domain.jvmSizeComputationEnabled property is set to
false
, Teracloud® Streams selects a maximum JVM size based on the system default size.
- sws.initialJvmSize
- sws.maximumJvmSize
For troubleshooting information, see Java™ out-of-memory error in the Streams Console.
Updating the JVM size for the streamtool command-line interface
export STREAMTOOL_MAX_JVM_SIZE=size
- The
size
that you specify cannot exceed the amount of memory that is available on the resource where you run streamtool commands. For asize
of 256 megabytes, specify 256m. For asize
of 1 gigabyte, specify 1g. - If the STREAMTOOL_MAX_JVM_SIZE environment variable is not set, Teracloud® Streams selects a maximum JVM size based on the system default size.
For troubleshooting information, see Java™ out-of-memory error when using streamtool commands.