Author Topic: Updating to Tomcat 6  (Read 3544 times)

QueueMetrics

  • Moderator
  • Hero Member
  • *****
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Updating to Tomcat 6
« on: September 16, 2011, 10:41:27 »
If you want to update to Tomcat 6, you can do so easily on an existing installation, by issuing:

Code: [Select]
yum clean all
/etc/init.d/queuemetrics stop
yum upgrade queuemetrics-tomcat
/etc/init.d/queuemetrics start

The main advantage of Tomcat 6, apart from the improved performance and reduced memory footprint, is that the restart script is much safer than the one supplied with Tomcat 5.

There are also a couple of new tricks you can issue:

Code: [Select]
/etc/init.d/qm-tomcat6 cleancache
Will clean the compilation cache of your Tomcat system (useful if you find errors after an upgrade), and


Code: [Select]
/etc/init.d/qm-tomcat6 threaddump
Will print a detailed memory-and-thread state to STDOUT that can be easily sent over for inspection.

Since today, all fresh installs come with Tomcat 6.