gpt4 book ai didi

java - Elastic APM Tomcat zip 文件或 JAR list 丢失

转载 作者:行者123 更新时间:2023-12-01 17:22:49 25 4
gpt4 key购买 nike

我正在尝试使用 Elastic APM 来检测基于 tomcat 的 java web 应用程序。 Tomcat 在没有 javaagent 的情况下可以正常启动,但拒绝使用它启动。我在/var/log/tomcat 中没有看到任何日志。日志如下:

Redirecting to /bin/systemctl status  -l tomcat.service
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2020-04-17 01:45:36 UTC; 1s ago
Process: 25660 ExecStart=/usr/libexec/tomcat/server start (code=exited, status=1/FAILURE)
Main PID: 25660 (code=exited, status=1/FAILURE)

arguments used: start
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: Ignoring option PermSize; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Error opening zip file or JAR manifest missing : /opt/elastic/elastic-apm-agent-1.15.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument
tomcat.service: main process exited, code=exited, status=1/FAILURE
Unit tomcat.service entered failed state.
tomcat.service failed.

以前有人遇到过这种情况吗?我能做些什么来解决这个问题吗?

最佳答案

您是否尝试授予文件夹/opt/elastic 权限?

chmod -R uog+x

关于java - Elastic APM Tomcat zip 文件或 JAR list 丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61262895/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com