articlehaul.com articlehaul.com
Search:    Index Page :> About Us :> Privacy of Info :> Terms of Use :> Add Your Link :> Submit Article   
Add Your Link
 

Self Help

Healthcare & Medicine

Education & Learning

Travel & Accommodation

Online Shopping

Adventure & Sports

Drink & Food

Research & Science

Finance & Investment

Careers & Employment

News & Media

Relationship & Lifestyle

Health & Hygiene

Family & Home

Recreation & Entertainment

Vehicles & Automotive

Art & Culture

Computers & Networking

Politics & Government

Property & Estate

Teens & Kids

Indoor Games

People & Communities

Companies & Business


 

Index Page –› Computers & Networking –› Paid Software
 

How to Tomcat 5? Part 1

 

I had no problem with Tomcat installation and all installation packages which I tried, worked fine for me. I will not describe all installation steps, you always can find the details on it on the home site for Apache Tomcat.

It was a few years ago, when Tomcat had version 4.1.0. My first impression was that I am swimming in a swamp, so slow Tomcat was. The whole memory on my computer was consumed by Tomcat, every click on my program interface resulted in freezing the whole machine for second. The prstat (program in Solaris to supervise processes status, in Linux it is top command) indicated that CPU jumped to 100%.

After 5 years with Apache server I was completely disappointed...

I thought that those guys, that always complain about Java, are right: it is just waste of money, resources and time. This hungry (in terms of resources) monster Tomcat - will never fly!

I was not right. The problem was with settings, which were in my Tomcat installation. Having used that Apache runs perfectly right away after an installation, I was not ready for performance tuning. Honestly saying I have no clue how to do that. Especially after working with httpd.conf (Apache configuration file) it was not so easy to get into multiple xml files, where Tomcats configuration is spread around. Some strange things happened here and there

First step was to make everything working. And soon Tomcat began to work better and better.

First problem was because of additional libraries in my web applications. I could not link them from Tomcats common/lib directory. I had to have them just in one place, directly in the common/lib, no linking for another place!

Second problem was that, even if Tomcat's documentation claims that "*.war files will be discovered in webapps directory and extracted automatically", they actually sometime could be there for hours and nothing happened. Sometimes it worked, sometime did not.

So, my advice to you: if you make an installation package for distribution to many people, it will be safer to extract files from war files by your installation program and do not rely on Tomcat. And you can disable this feature at all (I do not rely on it).

How to move Tomcat from one directory to another?

My answer here is for the Solaris and Linux OSs. But it is very similar procedures for Windows.

Tomcat 5.x, comparing to earlier versions, has quite good structure and properly written configuration files. There are no files with hard coded paths or versions. Everything is read from surrounding environment and it makes Tomcat very transportable. You can easily move Tomcat from one place to another. Just update environment variable $CATALINA_HOME (this variable point to "home place" of Tomcat).

For example, on my machine default place was: /usr/local/tomcat.

Later I moved it to /home/httpd/alex.

I was running Tomcat as tomcatuser and default shell for that user was bash. To find out which shell is default in your case you need to open the file /etc/passwd and locate the line with tomcats user name. In my case this line looked like this:

tomcatuser:x:112:214:Tomcat process user/usr/local/tomcat /:/bin/bash

So, I opened the file .bashrc in home directory for tomcatuser and changed two lines:

CATALINA_HOME=/usr/local/tomcat
export CATALINA_HOME

to

CATALINA_HOME=/ home/httpd/alex
export CATALINA_HOME

Thats all. Now Tomcat 5 can run from new place.

It is just a beginning of my story about Tomcat. I continue my article about Tomcat tuning (mostly performance) in the second part.

Author: Alexandre Patchine
 
Author Bio:
Alexandre Patchine is an authority in this industry. Alexandre has written several articles in the past on this subject.
This article can be searched using: free software, free software downloads, cheap computer software, discount software
 
 
 

Related Articles

 
FBI on the Fourth of July!
 
How to Get Customers for Free
 
Stephen King, Radio Plays, and Online Marketing
 
Hot MP3 Players
 
Huntsville, AL Offers Municipal WiFi Offering That Makes Sense
 
How To Choose Right Web Site Template
 
PDF Ebook Protection - To Wrap Or Not To Wrap?
 
Ad-blockers Now A Necessary Application
 
What is EDI?
 
What Is An Autoresponder Anyway?
 
 
 
 
 

Email to Telephone - Innovative Tool or High Tech Hype?

Email to telephone does pretty much what the name implies. It allows you to send or receive email me ... - Kevin Erickson
 

How To Make Money With Pixel Ad Websites

You really can make lots of money with your own pixel ad site, you just need to know how. - Jonny Murphy
 

Three Ways to Lose an eBook Sale on eBay

Many of us spend a great deal of time and effort trying to find the best strategies to supercharge o ... - John Thornhill
 
 

Are You Making The Most of Your Email List?

It sounds easy. Build a website, sell products, and watch the sales roll in. Better be sure your web ... - Mike Wyman
 

Free Cell Phones

With so many offers of Free Cell phones these days it is hard to make a choice. All the major phone ... - Christine Hancock
 
 
Index Page :> Privacy of Info :> Terms of Use
© 2006 www.articlehaul.com - All Rights Reserved Worldwide