How can I run Tomcat with profiler ?

Answered

I've set up the CPU profiler, and it works with applications (those having a main). So my general setup is probably correct.

But for my "tomcat" run configurations, the profiler is unavailable. In the "Startup/Connection" tab of the run config settings, I only have Run, Debug, Coverage. What do I need to setup for tomcat ?

1
4 comments

Maven profile can affect how artifact is built, but it will not change anything in Tomcat Run/Debug configuration. If you are building with Maven, deploy artifact built by Maven from the External Source instead of using the built-in artifact generated by IntelliJ IDEA.

0

I'm building with ant. And I'm deploying the ant build result. However ... I don't see how this affects the available run options.

Maybe I should describe what I'm trying to do a bit more detailed:

I have a run configuration of type "Tomcat Server". In the "Before launch" section, I added "Run Ant target" to build my artifact. This artifact is configured in the "Deployment" tab of the run configuration.

The problem is: In the "Startup/Connection" tab, I only have Run / Debug / Coverage, but no "Run with profiler" as I had it in my test run configuration of type "Application".

My question is: What do I have to do to have "Run with profiler" available in my "Tomcat Server" run configuration ?

 

0
Avatar
Permanently deleted user

I have the same question. Liubov Melnikova's answer seems to refer to Maven profiles, and has nothing to do with profiling.

0

This action is not available for application server Run/Debug Configurations. Feel free to file a request at https://youtrack.jetbrains.com/issues/IDEA

0

Please sign in to leave a comment.