Skip to content

Commit 004ae93

Browse files
committed
Fix process into documentation to include garbage collectors
See gh-45631
1 parent df2d0ec commit 004ae93

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/info/InfoEndpointDocumentationTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ private ResponseFieldsSnippet processInfo() {
110110
fieldWithPath("memory.nonHeap.used").description("The number of bytes currently being used."),
111111
fieldWithPath("memory.nonHeap.committed").description("The number of bytes committed for JVM use."),
112112
fieldWithPath("memory.nonHeap.max")
113-
.description("The maximum number of bytes that can be used by the JVM (or -1)."));
113+
.description("The maximum number of bytes that can be used by the JVM (or -1)."),
114+
fieldWithPath("memory.garbageCollectors").description("Details for garbage collectors."),
115+
fieldWithPath("memory.garbageCollectors[].name").description("Name of of the garbage collector."),
116+
fieldWithPath("memory.garbageCollectors[].collectionCount")
117+
.description("Total number of collections that have occurred."));
118+
114119
}
115120

116121
private ResponseFieldsSnippet javaInfo() {

0 commit comments

Comments
 (0)