Garbage Collection
You can define the Java garbage collector that Transformer uses. By default, Transformer uses the Concurrent Mark Sweep (CMS) garbage collector.
For example, if you configure Transformer to use a large heap size, you might want to use the G1 garbage collector. If you define another garbage collector, test and evaluate Transformer performance before making the same change in a production environment. Garbage collector performance depends on each particular use case.
Define the garbage collector by modifying the Java Options property in the Java configuration properties. To use the G1 garbage collector, add the following option to the property:
-XX:+UseG1GC
- Tarball or RPM installation
- Define the garbage collector in the TRANSFORMER_JAVA_OPTS environment variable.
Logging
Transformer
enables garbage collector logging by default to facilitate troubleshooting. Log
files are written to $TRANSFORMER_LOG/gc.log
. You can disable
logging.
Disable garbage collector logging based on your installation:
- Tarball or RPM installation
- Set the TRANSFORMER_GC_LOGGING environment variable to false. For example: