grafana / grafana/pyroscope-java
Java agent invalid_argument unexpected EOF
- Vorherrschende Sprache
- Java
- Sterne
- 126
- Forks
- 48
- Ø Merge
- 4 T. 14 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
#### Describe the bug
Hi, I'm sending profiles from a ARM64 based java service to a Pyroscope distributor.
My Java agent config
```
public class PyroscopeProfiler {
protected final FlagsConfig flags;
protected final String serviceName;
protected final String PYROSCOPE_BETA_URL =
"http://pyroscope-distributor.northwest.service.envoy:10080";
public PyroscopeProfiler(ServerBaseConfig serverBaseConfig, FlagsConfig flags) {
this.flags = flags;
this.serviceName = serverBaseConfig.getServiceName();
}
/** Start the profiler */
public void start() {
PyroscopeAgent.start(
new Config.Builder()
.setApplicationName(serviceName)
.setProfilingEvent(EventType.ITIMER)
.setFormat(Format.JFR)
.setServerAddress(PYROSCOPE_BETA_URL)
.setProfilingAlloc("512k")
.setProfilingInterval(Duration.ofMillis(10))
.setUploadInterval(Duration.ofSeconds(30))
.build());
}
/** Stop the profiler */
public void stop() {
PyroscopeAgent.stop();
}
}
```
Distributor error
```
"{\\\"code\\\":\\\"invalid_argument\\\",\\\"message\\\":\\\"unexpected EOF\\\"}\\n\"
```
Distributor config should all be default.
JDK version: 11
Java agent version: 0.18.0
#### To Reproduce
Steps to reproduce the behavior:
1. Start Pyroscope
2. Start client
3. Check logs in Pyroscope distributor
#### Expected behavior
Profiles should correctly distributed
#### Environment
- Infrastructure: Kubernetes
- Deployment tool: Internal tool
#### Additional Context
The requests does go through internal envoy proxy, I'm not sure if it affects the request payload.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit der Konfiguration von PyroscopeAgent.start und dem Upload-Pfad für Profile des Java-Agenten. Reproduziere das Problem anschließend auf ARM64 mit JDK 11 und Version 0.18.0 und prüfe dabei die Distributor-Logs. Vergleiche direkte Anfragen mit Anfragen, die über den internen Envoy-Proxy gesendet werden; abgeschlossen ist die Aufgabe, wenn Profile ohne den Fehler invalid_argument unexpected EOF akzeptiert und verteilt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, kubernetes
- Bereich
- observability
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100