On 27.03.2017 09:30, Joan Tomàs i Buliart wrote:
Hello,

We currently deploy our JSPs outside of the WAR. This allows us to deploy the 
main
application container and the JSP views at different pace (one team moves much 
faster than
the other).  In order to support this, we have JSPs out of the war. When the 
webapp is
deployed some soft-links are created to the folders the JSPs are. Finally, when 
we deploy
new/updated JSPs, the JspServlet detects it, recompiles the new/updated JSPs 
and replaces
the classes.

This workflow works fine when the changes are little and the servers load 
average is low.
The problem comes when a developer modifies one of the main JSPs or the load of 
the
servers is high. In this situation, all the servers starts to compile the 
updated JSP and,
due to the amount of load, lots of request end up throwing 504 errors.

We are considering to pre-compile the JSPs before deploying them to the server. 
The
problem is that we are not able to find any option to force Tomcat to hot 
reload ONLY the
updated classes. All the different reload options that we have tested end up 
reloading all
the webapp (which means 80s of downtime for us).

Is there any recommended option to manage this? Does somebody have a similar 
scenario or a
suitable solution?

Hi.
I cannot help you personally, and this will have to wait for a real expert.
But thanks in any case for the clear and succint description of the issue, I am sure that will help you get some answers quickly.

Maybe one additional information might help someone to help you : the precise version of Tomcat which this is related to (options may differ depending on the version).
And while you're at it, throw in the platform and JVM too.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to