Fix process into documentation to include garbage collectors

See gh-45631
This commit is contained in:
Phillip Webb
2025-05-20 15:19:30 -07:00
parent df2d0ec420
commit 004ae93df6

View File

@@ -110,7 +110,12 @@ class InfoEndpointDocumentationTests extends MockMvcEndpointDocumentationTests {
fieldWithPath("memory.nonHeap.used").description("The number of bytes currently being used."),
fieldWithPath("memory.nonHeap.committed").description("The number of bytes committed for JVM use."),
fieldWithPath("memory.nonHeap.max")
.description("The maximum number of bytes that can be used by the JVM (or -1)."));
.description("The maximum number of bytes that can be used by the JVM (or -1)."),
fieldWithPath("memory.garbageCollectors").description("Details for garbage collectors."),
fieldWithPath("memory.garbageCollectors[].name").description("Name of of the garbage collector."),
fieldWithPath("memory.garbageCollectors[].collectionCount")
.description("Total number of collections that have occurred."));
}
private ResponseFieldsSnippet javaInfo() {