Tomcat plugin - parallel deployment
已回答
In the tomcat documentation, there is an option to deploy applications in parallel (https://tomcat.apache.org/tomcat-7.0-doc/config/engine.html, startStopThreads)
This option works well in Eclipse, but it does not seem to be taken into account when used in Intellij with a local Tomcat, even if the catalina base has the correct server.xml file.
Is there an option I am missing to allow parallel deployment through Intellij?
Thanks
请先登录再写评论。
Do you deploy multiple artifacts in a single run/debug configuration? How do you know that this option doesn't work? Is there anything in Tomcat logs that can confirm the option is enabled or not?
I'm deploying multiples artifacts by adding them in te Tomcat local configuration (Tab Deployment >Deploy at the server startup). All the artifacts are exploded
I'm assuming this option doesn't work because the startup time is not the one expected from a parallel deployment, as it would be under eclipse. Also, in the intellij tomcat console, logs show that deployments are made sequentially as it shows in orders:
[2019-07-03 11:49:44,450] Artifact A: Artifact is deployed successfully
[2019-07-03 11:49:44,450] Artifact A: Deploy took 229,420 milliseconds
[2019-07-03 11:50:49,654] Artifact B: Artifact is deployed successfully
[2019-07-03 11:50:49,654] Artifact B: Deploy took 294,623 milliseconds
[2019-07-03 11:52:05,636] Artifact C: Artifact is deployed successfully
[2019-07-03 11:52:05,636] Artifact C: Deploy took 370,604 milliseconds
etc.
I didn't find any logger that would let me see if the configuration is effective, however I see :
Using CATALINA_BASE: "C:\Users\xxx\.IntelliJIdea2019.1\system\tomcat\Unnamed_app"
Using CATALINA_HOME: "C:\project\apache-tomcat"
Using CATALINA_TMPDIR: "C:\Users\xxx\.IntelliJIdea2019.1\system\tomcat\Unnamed_app\temp"
Where "C:\Users\xxx\.IntelliJIdea2019.1\system\tomcat\Unnamed_app" contains the correct server.xml
Thanks, I've added a feature request at https://youtrack.jetbrains.com/issue/IDEA-217503. Please follow for updates.