gpt4 book ai didi

jvm - 如何在 Debug模式下运行 Apache Tomcat 8?

转载 作者:行者123 更新时间:2023-12-04 11:04:32 25 4
gpt4 key购买 nike

我正在尝试在 Debug模式下运行 Apache Tomcat 8.0.21。

当我发出命令时

sh catalina.sh jpda start

它给出了这个错误。

错误信息

ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options. Error occurred during initialization of VM agent library failed to init: jdwp



任何人都可以帮忙吗?

最佳答案

您可以像往常一样添加环境变量并运行tomcat

调试端口为 8000 在这种情况下

export CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"

然后运行tomcat
sh ./catalina.sh start

关于jvm - 如何在 Debug模式下运行 Apache Tomcat 8?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30011505/

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