[opencms-dev] Restarting OpenCms programmatically

Marcus Popetz marcus at roundpeg.com
Wed May 17 16:21:51 CEST 2006


At 10:16 AM 5/17/2006, Christian Steinert wrote:
>But you can also cause tomcat to keep running and just restart your 
>opencms web application.
>This can be done through a simple HTTP request as described here: 
>http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
>
>Personally, I use a small shell script, which uses wget in order to access 
>the HTTP-based manager. Wget is also able to issue authentication-based 
>requests and therefore this is possible even, if the tomcat manager has 
>been password-protected (which is certainly advisable).

Test it in a loop of 1-100 or so to make sure all is well.  The reloading 
of our context causes tomcat to eventually run out of memory.  (our context 
= our custom app...not opencms)

-mp




More information about the opencms-dev mailing list