File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/info Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,27 @@ private ResponseFieldsSnippet processInfo() {
114
114
fieldWithPath ("memory.garbageCollectors" ).description ("Details for garbage collectors." ),
115
115
fieldWithPath ("memory.garbageCollectors[].name" ).description ("Name of of the garbage collector." ),
116
116
fieldWithPath ("memory.garbageCollectors[].collectionCount" )
117
- .description ("Total number of collections that have occurred." ));
117
+ .description ("Total number of collections that have occurred." ),
118
+ fieldWithPath ("virtualThreads" )
119
+ .description ("Virtual thread information (if VirtualThreadSchedulerMXBean is available)" )
120
+ .type (JsonFieldType .OBJECT )
121
+ .optional (),
122
+ fieldWithPath ("virtualThreads.mounted" )
123
+ .description ("Estimate of the number of virtual threads currently mounted by the scheduler." )
124
+ .type (JsonFieldType .NUMBER )
125
+ .optional (),
126
+ fieldWithPath ("virtualThreads.queued" ).description (
127
+ "Estimate of the number of virtual threads queued to the scheduler to start or continue execution." )
128
+ .type (JsonFieldType .NUMBER )
129
+ .optional (),
130
+ fieldWithPath ("virtualThreads.parallelism" ).description ("Scheduler's target parallelism." )
131
+ .type (JsonFieldType .NUMBER )
132
+ .optional (),
133
+ fieldWithPath ("virtualThreads.poolSize" )
134
+ .description (
135
+ "Current number of platform threads that the scheduler has started but have not terminated" )
136
+ .type (JsonFieldType .NUMBER )
137
+ .optional ());
118
138
}
119
139
120
140
private ResponseFieldsSnippet javaInfo () {
You can’t perform that action at this time.
0 commit comments