How to disable generation of JVM Core Dump files for TIBCO Spotfire Service for Python (Python Service)

How to disable generation of JVM Core Dump files for TIBCO Spotfire Service for Python (Python Service)

book

Article ID: KB0072348

calendar_today

Updated On:

Products Versions
Spotfire Service for Python All

Description

Large java core dump files ( xxx.mdmp) generated by the Python Service when the JVM process crashes or is not responding can use up a lot of hard disk space / resources in the Node Manager server where Python Service is hosted. This might strain the Node Manager server for Python Service. 

Those JVM core dump files can be manually deleted on a regular basis, or completely disabled by configuring the Python Service. 
 

Issue/Introduction

TIBCO Spotfire Service for Python (Python Service) runs on JVM processes. Large java core dump files could be generated in the temp folder for Python Service, when JVM process crashes or is not responding. This article describes how to disable the generation of these dump files.

Environment

All

Resolution

To disable the creation of core dumps for the Python Service, do the following
----
1.  Add the following option to the configuration (custom.properties) for the Python Service:

javaOptions:-XX:-CreateCoredumpOnCrash

For more details on how to configure the Python Service, please refer to
https://docs.tibco.com/pub/sf-pysrv/1.3.6/doc/html/TIB_sf-pysrv_1.3.6_install/install/topics/configuring_spotfire_service_for_python.html

2. Restart the Python Service to make this change take effect.
----

Starting from Python Service version 1.3.0 (June 2021), the Python Service has JVM core dump file creation disabled by default with the configuration property "disable.java.core.dump" being TRUE by default
See "Manage Java Options" section in this document:
https://docs.tibco.com/pub/sf-pysrv/1.11.1/doc/html/TIB_sf-pysrv_install/pyinstall/topics/manage_java_options.html

"disable.java.core.dump: TRUE" is equivalent to setting "javaOptions:-XX:-CreateCoredumpOnCrash" in the configuration file for Python Service. 

Additional Information