Translated message

A translation of this page exists in English.

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content