简体   繁体   中英

Java profiling using jdwp

I have a java webserver (wildfly 10) running my java *.war applications. I managed to setup my Eclipse to "Remote Debug" listen to port 9797. This is all great but how do I profile how long each of my methods takes - using jdwp?

bin/standalone.conf
JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=9797,server=y,suspend=n"

You cannot use JDWP alone for profiling. I'd recommend that you take a look at Visual VM that can attach to the existing process and perform profiling / sampling for you : https://visualvm.github.io/download.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM