Deploying TOMCAT on live production server

2003-11-03 Thread Steve Jenkins
Hi,

Wonder if anyone can help. I keep reading that one should not deploy TOMCAT on its' 
own on a live production server, that you should use Apache as the main webserver 
redirecting through to TOMCAT - but I don't find anywhere that says why.

Why shouldn't you put just TOMCAT on a live production server? Why should you use 
Apache  Tomcat?
Anyone help?

Many thanks,
Steve.



Re: Deploying TOMCAT on live production server

2003-11-03 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/connectors.html#integrate

-Tim

Steve Jenkins wrote:

Hi,

Wonder if anyone can help. I keep reading that one should not deploy TOMCAT on its' own on a live production server, that you should use Apache as the main webserver redirecting through to TOMCAT - but I don't find anywhere that says why.

Why shouldn't you put just TOMCAT on a live production server? Why should you use Apache 
 Tomcat?
Anyone help?
Many thanks,
Steve.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Deploying TOMCAT on live production server

2003-11-03 Thread Florian Ebeling
Hi,

Apache is faster for static content and has shorter startup times. And 
HTTP implemenation is probably more mature in a pure HTTP server like 
apache.

Steve Jenkins wrote:

Hi,

Wonder if anyone can help. I keep reading that one should not deploy TOMCAT on its' own on a live production server, that you should use Apache as the main webserver redirecting through to TOMCAT - but I don't find anywhere that says why.

Why shouldn't you put just TOMCAT on a live production server? Why should you use Apache 
 Tomcat?
Anyone help?
Many thanks,
Steve.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Deploying TOMCAT on live production server

2003-11-03 Thread Shapira, Yoav

Howdy,

Apache is faster for static content and has shorter startup times. And
HTTP implemenation is probably more mature in a pure HTTP server like
apache.

Shorter startup times for Apache, yes.  More mature HTTP server, yes.
The FAQ Senor Funk pointed to is very good reading.

But please, can someone post static performance benchmarks for Apache
vs. Tomcat?  Maybe it's me, but every time someone says Apache is
faster, there's never proof.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploying TOMCAT on live production server

2003-11-03 Thread Jean-Francois Arcand
That's not true.

Do your own tests and see if Apache + Tomcat or just Tomcat fullfill 
your requirement. Tomcat 4.1.x in some case is as good as Apache/Tomcat.

-- Jeanfrancois

Florian Ebeling wrote:

Hi,

Apache is faster for static content and has shorter startup times. And 
HTTP implemenation is probably more mature in a pure HTTP server like 
apache.

Steve Jenkins wrote:

Hi,

Wonder if anyone can help. I keep reading that one should not deploy 
TOMCAT on its' own on a live production server, that you should use 
Apache as the main webserver redirecting through to TOMCAT - but I 
don't find anywhere that says why.

Why shouldn't you put just TOMCAT on a live production server? Why 
should you use Apache  Tomcat?
Anyone help?

Many thanks,
Steve.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Deploying TOMCAT on live production server

2003-11-03 Thread Steve Jenkins
Thanks to one and all for their responses, particularly for the URL:
http://jakarta.apache.org/tomcat/faq/connectors.html#integrate
My final question is - is deploying TOMCAT on its' own secure enough? Or is
deploying just Apache secure enough?

Thanks, Steve.


- Original Message - 
From: Steve Jenkins
To: [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 1:32 PM
Subject: Deploying TOMCAT on live production server


Hi,

Wonder if anyone can help. I keep reading that one should not deploy TOMCAT
on its' own on a live production server, that you should use Apache as the
main webserver redirecting through to TOMCAT - but I don't find anywhere
that says why.

Why shouldn't you put just TOMCAT on a live production server? Why should
you use Apache  Tomcat?
Anyone help?

Many thanks,
Steve.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploying TOMCAT on live production server

2003-11-03 Thread Tim Funk
It depends. One would argue that tomcat by itself is more secure because
1) Its only one thing to defend
2) Don't need to worry about any apache exploits
OTOH
1) Apache has been hardened - its exploits are rare and when exposed are 
quickly fixed. (Tomcat's eploits are also quickly fixed too)
2) Apache can act as a barrier to prevent exploits from happening in tomcat 
(or exploits written into webapps)

IOW, different strokes for different folks.

-Tim

Steve Jenkins wrote:

Thanks to one and all for their responses, particularly for the URL:
http://jakarta.apache.org/tomcat/faq/connectors.html#integrate
My final question is - is deploying TOMCAT on its' own secure enough? Or is
deploying just Apache secure enough?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat as a production server?

2003-02-18 Thread Shapira, Yoav

Howdy,

Please where can I get a free non graphical profiler? (The server
doesn't
have any graphic stuff installed)

Comes with java: hprof ;)  There are also scripts around the web,
including on java.sun.com, that analyze hprof output to provide some
nice additional, human-friendly output.  Google is your friend for
these.

But the idea behind profiling is to profile before you ship.  Profile in
your development and test environments, which hopefully have ability to
display graphics ;)  My personal favorite profiler is OptimizeIt (and
believe me, if there was a free one that I've found better, I'd be using
the free one)

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat as a production server?

2003-02-18 Thread Ryan Chambers

To force a dump of the call stack, type:
kill -3 process id

I'm not sure where the output will go for you, it depends on the
configuration of your system. Search for Thread- in your log files.

As for the CPU pinning, I agree with whoever wrote in earlier that it's
probably some bad code that you wrote. Which isn't nice to hear, because
finding the code can be like finding a needle in a haystack. If I was you,
I'd start looking at any connections made from your tomcat server to other
servers, eg. JDBC connections or HTTP posts, maybe even SMTP. If these
connections hang then you might get performance problems.



-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 7:07 AM
To: Tomcat Users List
Subject: Re: Tomcat as a production server?


You want to put a profiler on that box and see what threads are racing
away. You can also tell the JVM to throw a traceback of all the threads
being used, but I for got how exactly :(

Anyway, look at the code. You definately have something going on there.

Ben Ricker

On Sat, 2003-02-15 at 18:47, Arcadius A. wrote:
 Hello!
 We're using tomcat 4.1.12, Apache 1.3.27 , mod_jk1.2.2 on a redhat 7.3
 server ( AMD Duron 1.2GHz, 256 RAM).

 The problem is that the server runs quite fine the first few days but
 after a week, the server is heavily busy: While the number of tomcat
 processes and the memory usage is slightly the same, the CPU usage of each
 of the tomcat processes highly increase (  from 0.0% to about 19% for each
 of the tomcat processes). so tomcat can no longer respond to requests
 from the browser. the only one thing I use to do is restart the
 server then everything works fine again
 Note that all the  6 java processes shown in the attached file are from
 tomcat. And we're using tomcat's default configurations.

 Please has anyone coped with this problem before?

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
--
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat as a production server?

2003-02-17 Thread Ben Ricker
You want to put a profiler on that box and see what threads are racing
away. You can also tell the JVM to throw a traceback of all the threads
being used, but I for got how exactly :(

Anyway, look at the code. You definately have something going on there.

Ben Ricker

On Sat, 2003-02-15 at 18:47, Arcadius A. wrote:
 Hello!
 We're using tomcat 4.1.12, Apache 1.3.27 , mod_jk1.2.2 on a redhat 7.3
 server ( AMD Duron 1.2GHz, 256 RAM).
 
 The problem is that the server runs quite fine the first few days but
 after a week, the server is heavily busy: While the number of tomcat
 processes and the memory usage is slightly the same, the CPU usage of each
 of the tomcat processes highly increase (  from 0.0% to about 19% for each
 of the tomcat processes). so tomcat can no longer respond to requests
 from the browser. the only one thing I use to do is restart the
 server then everything works fine again
 Note that all the  6 java processes shown in the attached file are from
 tomcat. And we're using tomcat's default configurations.
 
 Please has anyone coped with this problem before?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat as a production server?

2003-02-17 Thread Arcadius A.
Hello!

Ben Ricker [EMAIL PROTECTED] wrote in message
1045494425.1758.7.camel@localhost">news:1045494425.1758.7.camel@localhost...
 You want to put a profiler on that box and see what threads are racing
 away. You can also tell the JVM to throw a traceback of all the threads
 being used, but I for got how exactly :(


Please where can I get a free non graphical profiler? (The server doesn't
have any graphic stuff installed)

Thanks.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat as a production server?

2003-02-16 Thread Harish Kumar K.K.
Hi

I have also had this problem of tomcat jumping to high cpu utilization...but
restarting is the solution I have also resorted toAnybody else have any
clues on this?

Thanks
Harish
- Original Message -
From: Arcadius A. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 4:49 PM
Subject: Re: Tomcat as a production server?


 the top file can be found here: http://ahouans.sh.cvut.cz/top.txt

 Arcadius.




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat as a production server?

2003-02-16 Thread Michael Micek
On Sun, Feb 16, 2003 at 01:08:31AM -0800, Harish Kumar K.K. wrote:
 I have also had this problem of tomcat jumping to high cpu utilization...but
 restarting is the solution I have also resorted toAnybody else have any
 clues on this?

We've had problems like this and I believe it turned out to
be bugs in beans we wrote.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Tomcat as a production server?

2003-02-15 Thread Arcadius A.
Hello!
We're using tomcat 4.1.12, Apache 1.3.27 , mod_jk1.2.2 on a redhat 7.3
server ( AMD Duron 1.2GHz, 256 RAM).

The problem is that the server runs quite fine the first few days but
after a week, the server is heavily busy: While the number of tomcat
processes and the memory usage is slightly the same, the CPU usage of each
of the tomcat processes highly increase (  from 0.0% to about 19% for each
of the tomcat processes). so tomcat can no longer respond to requests
from the browser. the only one thing I use to do is restart the
server then everything works fine again
Note that all the  6 java processes shown in the attached file are from
tomcat. And we're using tomcat's default configurations.

Please has anyone coped with this problem before?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat as a production server?

2003-02-15 Thread Arcadius A.
the top file can be found here: http://ahouans.sh.cvut.cz/top.txt

Arcadius.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]