Tomcat Windows

Knowledge Base : WAR Files Not Completely Extracted on Deployment on Windows

posted by SpringSource on May 26, 2010 07:15 AM

File locking in Windows may prevent the directory from being deleted.

File locking on Windows is different than file locking on Unix in that on Windows a file can be locked on read. If you are redeploying a second version of an already deployed web application, you may see something like the following web application:

- myapp.war
- myapp

Read More



Operations | deployment, Tomcat Admin, Tomcat Memory

Ask the Experts : Apache Tomcat 4.1 and Windows 2008


working on a Windows 2000 to 2008 migration, the application uses Tomcat 4.1 running on Windows 2000 server .  We are upgrading to Windows 2008 server. Will Tomcat 4.1 work with Windows 2008/IS 7?  Has anybody installed Tomcat 4.1 on a Windows 2008 box?

thank you,

asked by jerryemcse


The Apache Tomcat project is developed by a community of volunteers. This is important to remember, since it does have an impact on you as a user. Software being developed, is always developed for use with other software that is current in its era. Apache Tomcat 4, just like Windows 2000, are both 10 years old by now.

So, when the question is asked, will my 10 year old software work on this brand new operating system that didn't even exist when my software was written. The best place for an off shoot question like that is on the mailing lists. Why, well, Apache Tomcat 4.1 is no longer being actively developed. It's been sun setted. So it may or may not work, and if it doesn't, no one will fix it.

In an enterprise environment, one would most likely not plan an upgrade like that. If you have 10 year old software running in your environment, one must ask the questions

  1. Is there a plan to upgrade the software itself or will the software end of life in the next few years?

If the software will end of life, there would be little meaning spending a great deal of effort upgrading the operating system underneath. If there is a need to upgrade the operating system due to other software needs, then I would isolate my old Java/Apache Tomcat on a virtual machine with the operating system and configuration I know works.

If the software itself will be upgraded, then I would plan a migration path, where I would upgrade

  • The web applications running in Apache Tomcat
  • Apache Tomcat
  • The Java Virtual Machine
  • The operating system

This is not always an easy process, but the bottom line is, the longer you wait, the harder the process becomes. An upgrade like this, will have to start at the web applications, as web applications are not guaranteed to be compatible between different versions of the JSP/Servlet/EL specifications.

Even commerical support vendors will eventually end of life a specific product version. If that time is 3 years, 10 years or 30 years depends on the vendor and the contract itself, but no software lives on forever. When it comes to free and open source software, developed by volunteers, one can expect that timeframe to be in the lower numbers.

answered by fhanik on June 16, 2011 11:50 AM

Read More




Operations | Tomcat Admin, Tomcat Windows

Knowledge Base : Allocating more RAM to Apache Tomcat on Windows

posted by SpringSource on April 15, 2010 08:36 AM

If you've recently upgraded the RAM, or are moving your Tomcat applications to a larger box, you may want to update your allocated memory.

To find out how much RAM is allocated already to your Tomcat instance, if you have Tomcat installed as a Windows service, you can run Regedit and look at:

Apache Software Foundation
Procrun 2,0

Under that key will be all the tomcat service instances you have installed on that machine. If you expand an instance tree you will see another key named Parameters. Expand this and you will see a number of named values:

Read More



| JvmMs, JvmMx, RAM

Knowledge Base : Can not increase max memory heap size on windows

posted by SpringSource on April 7, 2010 12:04 PM

If you have installed Tomcat without the "Start Menu Items" on Windows it may make it harder to increase max heap size. 

An approach to help correct this would be:

  1. Back up all current custom configuration and web applications, etc.
  2. Uninstall the old service using the command line:
  3. Reinstall Tomcat, with "Start Menu Items" selected. You might encounter an error when the installer tries to install the service again. You can elect to ignore it.
  4. After Tomcat is reinstalled, you can use the Java tab in "Start" --> "Apache Tomcat 5.5" --> "Configure Tomcat" to increase the heap size.

Read More



Operations | heap, OutOfMemoryError, Tomcat 5.5

Knowledge Base : How to enable JConsole on Windows

posted by SpringSource on January 6, 2010 06:21 PM

How to enable the Java Monitoring and Management Console (JConsole) to monitor performance and resource consumption on Windows.

The JDK 5.0 provides extensive monitoring and management support through the Java Monitoring and Management Console (JConsole) tool. JConsole uses the built-in instrumentation of the Java virtual machine to provide information on performance and resource consumption of applications running on the Java platform using Java Management Extension (JMX) technology.

To enable JConsole for the Tomcat process on Windows: 

1. Click on the "java" tab in the Tomcat monitor

2. Add to the java options line. 

Read More



Developers | jconsole, Tomcat Console, Tomcat Windows

Syndicate content