我尝试在调试模式下启动Glassfish,但是我收到以下错误:
Error occurred during initialization of VM
agent library failed to init: jdwp
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
有人可以帮忙吗?
答案 0 :(得分:0)
我在Domain Admin Consol Glassfish中解决了这个问题 配置> JVM设置>启用调试和调试选项:-agentlib:jdwp = transport = dt_socket,server = y,suspend = n,address = 9009
答案 1 :(得分:0)
从位于glassfish5 \ glassfish \ domains \ domain1 \ config \ domain.xml的glassfish域中删除 -XX:MaxPermSize = 192m 条目。然后运行命令以启动服务器域,即asadmin起始域。