Translated message

A translation of this page exists in English.

如何启用 Java 垃圾收集日志记录?

Solution In Progress - Updated -

Issue

  • 我们收到一个 OutOfMemoryError,如何打印垃圾收集(GC)日志。
  • 用来启用 JVM 详细 GC 日志记录的最佳选项是什么?
  • 我们希望对 Java 应用程序进行故障排除,是否有任何启用 GC 日志的文档?
  • 如何诊断 Java 应用程序的高 CPU 或内存使用率?
  • 是否有任何启用 GC 日志记录的推荐方法?

Environment

  • Java
  • Red Hat JBoss Enterprise Application Platform (EAP)
  • Red Hat JBoss Enterprise Web Server (EWS)
    • Tomcat
  • Red Hat JBoss A-MQ (A-MQ) 6.x
  • Red Hat JBoss AMQ Broker (AMQ) 7.x
  • Red Hat JBoss Fuse
  • OpenShift

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