| had no problem with Tomcat installation and all | | | | it worked, sometime did not. |
| installation packages which | | | | So, my advice to you: if you make an installation |
| I tried, worked fine for me. I will not describe all | | | | package for distribution to many people, it will be |
| installation steps, you always can find the details on it | | | | safer to extract files from war files by |
| on the home site for Apache Tomcat. | | | | your installation program and do not rely on Tomcat. |
| It was a few years ago, when Tomcat had version | | | | And you can disable this feature at all (I do not rely on |
| 4.1.0. My first impression was that I am swimming in a | | | | it). |
| swamp, so slow | | | | How to move Tomcat from one directory to another? |
| Tomcat was. The whole memory on my computer | | | | My answer here is for the Solaris and Linux OSs. But it |
| was consumed by Tomcat, every click on my | | | | is very similar procedures for |
| program interface resulted in freezing the whole | | | | Windows. |
| machine for second. The prstat (program in Solaris to | | | | Tomcat 5.x, comparing to earlier versions, has quite |
| supervise processes status, in Linux it is | | | | good structure and properly written configuration files. |
| top command) indicated that CPU jumped to 100%. | | | | There are no files with hard coded paths or versions. |
| After 5 years with Apache server I was completely | | | | Everything is read from surrounding environment and it |
| disappointed... | | | | makes Tomcat very transportable. You can easily |
| I thought that those guys, that always complain about | | | | move Tomcat from one place to another. |
| Java, are right: it is just waste of money, resources | | | | Just update environment |
| and time. This hungry (in terms of resources) monster | | | | variable $CATALINA_HOME (this variable point to |
| - Tomcat - will never fly! | | | | "home place" of Tomcat). |
| I was not right. The problem was with settings, which | | | | For example, on my machine default place was: /usr |
| were in my Tomcat installation. Having used that | | | | local/tomcat. |
| Apache runs perfectly right away after an installation, | | | | Later I moved it to /home/httpd/alex. |
| I was not ready for performance tuning. Honestly | | | | I was running Tomcat as tomcatuser and default shell |
| saying I have no clue how to do that. Especially after | | | | for that user was bash. |
| working withhttpd.conf (Apache configuration file) it | | | | To find out which shell is default in your case you need |
| was not so easy to get into multiple xml files, where | | | | to open the file /etc/passwd and locate the line with |
| Tomcat's configuration is spread around. Some | | | | tomcat's user name. In my case this line looked like |
| strange things happened here and there... | | | | this:tomcatuser:x:112:214:Tomcat process user/usr/local |
| First step was to make everything working. | | | | tomcat /:/bin/bash |
| And soon Tomcat began to work better and better. | | | | So, I opened the file .bashrc in home directory for |
| First problem was because of additional libraries in my | | | | tomcatuser and changed two lines: |
| web applications. I could not link them from | | | | CATALINA_HOME=/usr/local/tomcatexport |
| Tomcat's common/libdirectory. I had to have them | | | | CATALINA_HOMEto |
| just in one place, directly in thecommon/lib, no linking | | | | CATALINA_HOME=/ home/httpd/alexexport |
| for another place! | | | | CATALINA_HOME |
| Second problem was that, even if Tomcat's | | | | That's all. Now Tomcat 5 can run from new place. |
| documentation claims that "*.war files will be | | | | It is just a beginning of my story about Tomcat. I |
| discovered in webapps directory and extracted | | | | continue my article about Tomcat tuning |
| automatically", they actually sometime could be there | | | | (mostly performance) in the second part. |
| for hours and nothing happened. Sometimes | | | | |