grafana / grafana/pyroscope-java
OpenJDK CRaC support
- Vorherrschende Sprache
- Java
- Sterne
- 126
- Forks
- 48
- Ø Merge
- 4 T. 14 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
I'm using Spring Boot app and I was hoping I could utilize the [CRaC](https://docs.azul.com/core/crac/crac-introduction) project. My app uses [this](https://github.com/grafana/pyroscope-java) javaagent to send profiling data to server.
In order for CRaC to work, so called checkpoint must be captured, and restored. Before checkpoint is captured, all open connections, sockets and files must be closed. Also, when restoring the checkpoint, every such connection,socket and file must be reopened so the app can perform the same way before the checkpoint was taken.
So the problem here is that pyroscope java agent has an open connection to server where it sends data to, and from the java code, we have no way to close/reopen such connection, meaning capturing the checkpoint is impossible.
The solution would be to make pyroaxopw javaagent CRaC compatible, meaning that the agent can automatically respond to checkpoint capturing/restoring by closing /reopening connections,sockets and files it manages.
That way capturing the checkpoint would be possible.
Other javaagents have the same issue with CRaC and are actively working on it:
https://github.com/elastic/apm-agent-java/issues/2982
https://github.com/newrelic/newrelic-java-agent/issues/1697
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/10363
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Das Issue nennt keine Quelldateien, Tests oder Einstiegspunkte. Beginne damit nachzuverfolgen, wie der javaagent seine Serververbindung verwaltet, und überprüfe den CRaC-Checkpoint- und Restore-Lebenszyklus; als erledigt gilt die Aufgabe, wenn der Agent verwaltete Ressourcen vor einem Checkpoint schließen und sie nach der Wiederherstellung erneut öffnen kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- backend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100