1

I have installed runjettyrun in Eclipse, now I can run/profile with jetty; but in the profiler config tab, there's no jetty selection. How can I add jetty to profile selections; or are there some other ways that can meet my need to profile a jetty hosted WS? Thanks!

4

1 回答 1

0

在这种情况下,我很少使用 eclipse 插件,而是选择编写一个小的 main 方法来连接并运行它,或者编写一个可以暂停以检查状态或调试的单元测试。测试用例中嵌入式使用的jetty源码中有很多例子。

http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/example-jetty-embedded/src/main/java/org/eclipse/jetty/embedded

如果您选择研究此选项,这些示例可以帮助您继续前进。

于 2012-08-23T12:35:40.653 回答