Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[O11y] [ SpringBoot] Support GC datastream on springboot 2.x with LTS JDK versions 11,17 and 21 #8405

Merged
merged 5 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/spring_boot/_dev/build/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Spring Boot integration is used to fetch observability data from [Spring Boo

## Compatibility

This integration has been tested against Spring Boot v2.3.12.
This integration has been tested against Spring Boot v2.7.17 with LTS JDK versions 8, 11, 17, and 21.

## Requirements

Expand Down
5 changes: 5 additions & 0 deletions packages/spring_boot/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.2.0"
changes:
- description: Add support for GC datastream on Spring Boot 2.x with LTS JDK versions 11, 17, and 21.
type: enhancement
link: https://github.com/elastic/integrations/pull/8405
- version: "1.1.0"
changes:
- description: Limit request tracer log count to five.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"events": [
{
"jolokia": {
"metrics": {
"mbean": "java.lang:name=G1 Concurrent GC,type=GarbageCollector",
"name": "G1 Concurrent GC",
"last_info": {
"memoryUsageBeforeGc": {
"CodeCache": {
"init": 2555904,
"committed": 15597568,
"max": 50331648,
"used": 7985664
},
"G1 Old Gen": {
"init": 171966464,
"committed": 25165824,
"max": 3103784960,
"used": 17718928
},
"G1 Survivor Space": {
"init": 0,
"committed": 2097152,
"max": -1,
"used": 1055280
},
"Compressed Class Space": {
"init": 0,
"committed": 5308416,
"max": 1073741824,
"used": 4993888
},
"Metaspace": {
"init": 0,
"committed": 36962304,
"max": -1,
"used": 36143624
},
"G1 Eden Space": {
"init": 23068672,
"committed": 39845888,
"max": -1,
"used": 0
}
},
"duration": 0,
"GcThreadCount": 5,
"startTime": 13422137,
"endTime": 13422137,
"id": 18,
"memoryUsageAfterGc": {
"G1 Old Gen": {
"init": 171966464,
"committed": 25165824,
"max": 3103784960,
"used": 17718928
},
"CodeCache": {
"init": 2555904,
"committed": 15597568,
"max": 50331648,
"used": 7985664
},
"G1 Survivor Space": {
"init": 0,
"committed": 2097152,
"max": -1,
"used": 1055280
},
"Compressed Class Space": {
"init": 0,
"committed": 5308416,
"max": 1073741824,
"used": 4993888
},
"Metaspace": {
"init": 0,
"committed": 36962304,
"max": -1,
"used": 36143624
},
"G1 Eden Space": {
"init": 23068672,
"committed": 39845888,
"max": -1,
"used": 0
}
}
}
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"expected": [
{
"ecs": {
"version": "8.5.1"
},
"event": {
"category": [
"web"
],
"dataset": "spring_boot.gc",
"kind": "metric",
"module": "spring_boot",
"type": [
"info"
]
},
"spring_boot": {
"gc": {
"last_info": {
"id": 18,
"memory_usage": {
"after": {
"code_cache": {
"committed": 15597568,
"init": 2555904,
"max": 50331648,
"used": 7985664
},
"compressed_class_space": {
"committed": 5308416,
"init": 0,
"max": 1073741824,
"used": 4993888
},
"g1_eden_space": {
"committed": 39845888,
"init": 23068672,
"max": -1,
"used": 0
},
"g1_old_gen": {
"committed": 25165824,
"init": 171966464,
"max": 3103784960,
"used": 17718928
},
"g1_survivor_space": {
"committed": 2097152,
"init": 0,
"max": -1,
"used": 1055280
},
"metaspace": {
"committed": 36962304,
"init": 0,
"max": -1,
"used": 36143624
}
},
"before": {
"code_cache": {
"committed": 15597568,
"init": 2555904,
"max": 50331648,
"used": 7985664
},
"compressed_class_space": {
"committed": 5308416,
"init": 0,
"max": 1073741824,
"used": 4993888
},
"g1_eden_space": {
"committed": 39845888,
"init": 23068672,
"max": -1,
"used": 0
},
"g1_old_gen": {
"committed": 25165824,
"init": 171966464,
"max": 3103784960,
"used": 17718928
},
"g1_survivor_space": {
"committed": 2097152,
"init": 0,
"max": -1,
"used": 1055280
},
"metaspace": {
"committed": 36962304,
"init": 0,
"max": -1,
"used": 36143624
}
}
},
"thread_count": 5,
"time": {
"duration": 0,
"end": 13422137,
"start": 13422137
}
},
"name": "G1 Concurrent GC"
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"events": [
{
"jolokia": {
"metrics": {
"mbean": "java.lang:name=G1 Young Generation,type=GarbageCollector",
"name": "G1 Young Generation",
"last_info": {
"duration": 2,
"memoryUsageBeforeGc": {
"CodeCache": {
"init": 2555904,
"committed": 15597568,
"max": 50331648,
"used": 7985664
},
"G1 Old Gen": {
"init": 171966464,
"committed": 25165824,
"max": 3103784960,
"used": 17685216
},
"G1 Survivor Space": {
"init": 0,
"committed": 2097152,
"max": -1,
"used": 1186384
},
"Compressed Class Space": {
"init": 0,
"committed": 5308416,
"max": 1073741824,
"used": 4994400
},
"Metaspace": {
"init": 0,
"committed": 36962304,
"max": -1,
"used": 36145456
},
"G1 Eden Space": {
"init": 23068672,
"committed": 39845888,
"max": -1,
"used": 37748736
}
},
"GcThreadCount": 5,
"startTime": 13422112,
"endTime": 13422114,
"id": 43,
"memoryUsageAfterGc": {
"CodeCache": {
"init": 2555904,
"committed": 15597568,
"max": 50331648,
"used": 7985664
},
"G1 Old Gen": {
"init": 171966464,
"committed": 25165824,
"max": 3103784960,
"used": 17718928
},
"G1 Survivor Space": {
"init": 0,
"committed": 2097152,
"max": -1,
"used": 1055280
},
"Compressed Class Space": {
"init": 0,
"committed": 5308416,
"max": 1073741824,
"used": 4994400
},
"Metaspace": {
"init": 0,
"committed": 36962304,
"max": -1,
"used": 36145456
},
"G1 Eden Space": {
"init": 23068672,
"committed": 39845888,
"max": -1,
"used": 0
}
}
}
}
}
}
]
}
Loading