Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

gc.log をローテーションするには?

Solution Unverified - Updated -

Issue

  • JVM を頻繁に再起動しないので、GC ファイルが極端に大きくなる場合があります。JVM を再起動しないで "毎日" gc ファイルを作成できるようにしたいです。スクリプトを毎晩使用して、実行している JVM プロセスから gc ファイルを分離し、GC ファイルを新しく作成して、既存の JVM プロセスにファイルを再添付できるようにしたいです。
  • gc ログのサイズが増加しています。gc ログを減らしたりパーティション化するにはどうしたら良いですか? また、ログ記録を無効にすることはできますか?

Environment

  • JBoss またはその他の Java アプリケーション
  • Linux または Unix

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.