Closed monkiki closed 1 year ago
Hello @monkiki , could you please provide your java and tomcat version? Is this the guide you mentioned: https://anotheria.net/blog/msk/monitoring-existing-application-using-moskito-javaagent/ ?
kind regards Leon
Yes, this is the guide I followed. And these are the Tomcat and Java versions used:
And the setenv.sh configuration:
JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx4096m -XX:+UseG1GC -XX:+UseStringDeduplication"
JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$CATALINA_HOME"
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -Dmail.mime.ignoreunknownencoding=true"
JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djava.awt.headless=true"
JAVA_OPTS="$JAVA_OPTS -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider"
JAVA_OPTS="$JAVA_OPTS -javaagent:$CATALINA_HOME/bin/moskito-javaagent-2.10.0.jar"
@PshenAI please reproduce
@monkiki can you download and try with this one? https://www.moskito.org/download/moskito-javaagent-2.10.1.jar Also is using an agent a requirement for you? The source code integration via AOP is more powerful.
With this version the problem is gone.
Thanks.
I've follower the instructions to configure the agent, but it doesn't work. Tomcat fails with this trace: