Modifying Jira Garbage Collection logs to exclude the date.

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Server* 製品のサポートは 2024 年 2 月 15 日をもって終了します。Server 製品を利用している場合は、Atlassian Server のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

By default, the Atlassian-garbage collection logs include the date in their description when the JVM is initialized(For example, when Jira is restarted). 

例:

atlassian-jira-gc-2021-03-12_15-45-25.log.0.current

If you would like to remove the date, you will need to modify the file responsible for the Garbage collection log parameters. 

(warning) Please note that with GC log rotation(enabled by default), these files will be overwritten causing loss of historical GC data. If you would like to retain historical data, please do not remove the date parameter from the Garbage collection logs. 

ソリューション

  1. Jira をシャットダウンします。
    1. For Jira Data Center, shut down all nodes
  2. Navigate to /<Jira-installation-dir>/bin/set-gc-params.sh
    1. For Windows the file is set-gc-params.bat
  3. Modify the section:
    1. From: -Xloggc:$LOGBASEABS/logs/atlassian-jira-gc-%t.log
    2. To : -Xloggc:$LOGBASEABS/logs/atlassian-jira-gc.log
    3. Remove the -t%
  4. Jira の起動
  5. The file format will now be atlassian-jira-gc.log.0.current



Last modified on Mar 15, 2021

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.