Java™ out-of-memory error for the Streams Console
When you use the Streams Console, you might encounter a Java™ out-of-memory error if the amount of memory that is allocated to the web management service is not sufficient.
You might encounter one of the following Java™ error messages:
OutOfMemoryError
or
Failed to load data!
The amount of memory that is allocated to the web management service is not sufficient.
- Increase the amount of memory that can be allocated to the Java™ environment for the web management service by updating the following domain properties:
- sws.initialJvmSize
- sws.maximumJvmSize
For more information about these properties, enter streamtool man domainproperties.
To view the current property settings, use the streamtool getdomainproperty command, for example:streamtool getdomainproperty -d domain-id sws.initialJvmSize sws.maximumJvmSize
To update the property settings, use the streamtool setdomainproperty command, for example:You must specify the newstreamtool setdomainproperty -d domain-id sws.initialJvmSize=size sws.maximumJvmSize=size
size
in megabytes (Mb
). This value cannot exceed the amount of memory that is available on the resource where the web management service is running. Valid values are 64-65536 Mb.Warning: If you specify a value that exceeds the amount of memory that is available, the web management service cannot start and the domain might fail to start. - Stop and restart the domain. For example, run the commands:
streamtool stopdomain -d domain-id streamtool startdomain -d domain-id