在基准测试期间将 jconsole 连接到 tomcat
我有一个简单的 spring 应用程序,我正在使用 jmeter 对其进行基准测试。
我是否必须对我的应用程序做一些事情才能使用 jconsole 连接到它?
我以前从未使用过 jconsole,但我认为如果我可以查看创建的对象数量、内存消耗以及 GC 的行为等,那就太好了。
I have a simple spring application that I am benchmarking with jmeter.
Do I have to do something to my application to be able to hook into it using jconsole?
I've never used jconsole before, but I think it would be great if I can view the # of objects created and memory consumption and the behaviour of the GC etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JConsole是老东西了,用VisualVM。请查看此讨论,了解如何将 VisualVM 连接到 Tomcat。
不,您无需对应用程序执行任何操作即可使用任何(我希望)分析器对其进行分析。
JConsole is an old stuff, use VisualVM. Look at this discussion to see how to connect VisualVM to your Tomcat.
And no, you don't have to do anything to your application to be able to profile it with any (I hope) profiler.