Full CodeCache causes Jira to crash or perform slowly

お困りですか?

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

コミュニティに質問

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

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

The instance may crash, become slow, or become unresponsive.

The following entries can be found in the atlassian-jira.log:

Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=

Note: An instance might still be impacted by this issue even when the above error is not present in the logs.


The following appears on the thread dumps where the compiler threads would be in the runnable state and consuming CPU.

Note: In JDK 1.8 and above these threads are no longer present 

"C2 CompilerThread0" #6 daemon prio=5 tid=0x000000001ab9c000 nid=0xcfc runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE


The following may also appear and seems to affect the majority of every running thread:

                at org.terracotta.statistics.jsr166e.LongAdder.add(LongAdder.java:62)
                at org.terracotta.statistics.jsr166e.LongAdder.increment(LongAdder.java:76)
                at org.terracotta.statistics.GeneralOperationStatistic.end(GeneralOperationStatistic.java:71)
                at net.sf.ehcache.constructs.blocking.BlockingCache.get(BlockingCache.java:176)
                at com.atlassian.cache.ehcache.LoadingCache.get(LoadingCache.java:120)
                at com.atlassian.cache.ehcache.DelegatingCache.get(DelegatingCache.java:107)
                at com.atlassian.cache.impl.metrics.InstrumentedCache.get(InstrumentedCache.java:72)
                at com.atlassian.jira.cache.stats.CacheWithStats.get(CacheWithStats.java:46)
                at com.atlassian.jira.propertyset.CachingOfBizPropertyEntryStore.resolve(CachingOfBizPropertyEntryStore.java:126)
                at com.atlassian.jira.propertyset.CachingOfBizPropertyEntryStore.getEntry(CachingOfBizPropertyEntryStore.java:151)
                at com.atlassian.jira.propertyset.CachingOfBizPropertySet.get(CachingOfBizPropertySet.java:189)

環境

All versions of Jira Data Center

原因

This issue can occasionally happen when the Java CodeCache becomes full.

ソリューション

  1. Modify setenv.sh or setenv.bat accordingly ( if you've already increased to 1024m, increase to 2048m )

    # The following setting configures the size of JVM code cache.  A high value of reserved size allows Jira to work with more installed apps.
    #
    JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=1024m'
  2. Clear catalina.out log file under <JIRA_INSTALL>/logs directory because the health check may be responding to outdated messages in catalina.out.
  3. Restart the application for the new settings to take effect.





最終更新日: 2025 年 2 月 7 日

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

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