• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Data Center
    • None
    • 0
    • 2
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Currently the JFR (Java Flight Recorder) configuration file (active_config.jfr) is stored in the $JIRA_HOME/log/jfr files directory. This raises several issues:

      1. It breaks the best practice of storing configuration files in a common location
      2. In containerized environments with a non-persistent log files dir,
        • your configuration will reset on every restart of Jira
        • OR you must manage a persistent volume to maintain the integrity of a single config file.
        • OR you must manage the file as code, which also means you must ensure that changes from within the UI are also updated in code.
      3. If you clean out your log files directory either as a troubleshooting task, or as a regular process, you may lose your JFR configuration if you are unaware of the file or it's changes.
      4. Allows for inconsistency between nodes in a DataCenter environment as it is stored in the local home, rather than the shared home.
        • for example, if one node is down when it is configured, it would not pick up the changes.
      5. If you are upgrading Jira using a new server, you will lose any custom configuration if you are unaware of changes in this file, and fail to copy it to your new server.
      6. In some instances JFR will fail to start due to a missing configuration file if the file doesn't exist because one of the previous issues.
        • with a non-persistent log volume this means you must add a manual step to every Jira restart, to go in, and turn off and back on JFR.

      The following solutions are proposed:

      1. Include a setting to move the location of the configuration file
      2. Move the configuration file to a common location for configuration files (such as the $shared_home, $shared_home/data, $jira_home, or $jira_install directories)Move the configuration into the database
      3. Move the configuration into the database

          Form Name

            [JSWSERVER-21613] Java Flight Recorder Configuration File Location

              Unassigned Unassigned
              tyler.miller Tyler Miller
              Votes:
              8 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: