Java agent invalid_argument unexpected EOF
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- java, kubernetes
调研方向
先从 PyroscopeAgent.start 配置和 Java agent 的 profile 上传路径入手,然后在 JDK 11 和版本 0.18.0 下于 ARM64 上重现问题,同时检查 distributor 日志。比较直接发送的请求与通过内部 Envoy 代理发送的请求;当 profile 在没有 invalid_argument unexpected EOF 错误的情况下被接受并分发时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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:
- Start Pyroscope
- Start client
- 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.
- 主要语言
- Java
- 星标
- 125
- 派生
- 48
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
grafana/pyroscope-java 的其他 Issue
-
Clean up dead publishing repository config and credentials in subproject build files可能已有人在做 @arnabnandy7 于 23 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
grafana/pyroscope-java#294 ·
-
难度 4/5 3-5 天 新手友好度 54/100
grafana/pyroscope-java#371 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
grafana/pyroscope-java#368 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
grafana/pyroscope-java#283 ·
-
libasyncProfiler-linux-x64.so dump in /tmp可能重新可做 @korniltsev-grafanista 于 261 天前认领,目前没有进行中的 PR。 未关闭
grafana/pyroscope-java#250 · 1 条评论 · 已指派 1 人 ·
查看 grafana/pyroscope-java 的全部 Issue
相似的 Issue
-
RRateLimiter acquire methods accept negative permits and raise available permits above the rate.可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
krahets/hello-algo#1993 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
NationalSecurityAgency/ghidra#9884 ·
维护者通常 2 天内回复
-
Status: Pending Review Type: Feature Request
难度 1/5 1 小时以内 新手友好度 82/100
OpenRefine/OpenRefine#8019 ·
维护者通常 1 天内回复
-
[TEMP] pin maven version to 3.9.x可能已有人在做 @petrenyi-mark 今天认领。 未关闭
难度 2/5 1 小时以内 新手友好度 62/100