Is there any way to track garbage collector actions in a program? For example, write to the logs all his adventures. So he started, walked around the class that touched? young / old and other types of memory.

  • one
    Check out blogs.oracle.com/poonam/… . Maybe this is what you need - Chubatiy
  • yes it seems - Padawan
  • Perfectly. Good luck! - Chubatiy

1 answer 1

You can enable garbage collection logging by passing the JVM parameter -Xlog:gc* when starting the program.