grafana / grafana/pyroscope-java
Java agent invalid_argument unexpected EOF
- Dominant language
- Java
- Stars
- 126
- Forks
- 48
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 5
Description
#### 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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.