To optimize the garbage collection in JVM for a Spring Boot application, developers can configure the _____ option in JVM parameters.

  • -XX:MaxGCPauseMillis
  • -Xmx
  • -Xms
  • -XX:OnOutOfMemoryError
To optimize the garbage collection in the JVM for a Spring Boot application, developers can configure the -XX:MaxGCPauseMillis option in JVM parameters. This option allows developers to specify a target maximum pause time for garbage collection operations. By setting an appropriate value for this option, developers can fine-tune garbage collection behavior to minimize application pauses, ensuring smoother and more predictable application performance. Proper garbage collection configuration is essential for maintaining optimal application responsiveness and resource utilization.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *