Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Pid *
On 27 Jan 2012, at 23:53, bxqdev bxq...@themailbay.com wrote: On 1/28/2012 3:41 AM, Pid wrote: On 27/01/2012 23:35, bxqdev wrote: On 1/28/2012 3:16 AM, Pid wrote: On 27/01/2012 22:51, bxqdev wrote: On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012 21:35, bxqdev wrote: On 1/28/2012 1:16

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
On 1/28/2012 6:33 AM, Terence M. Bandoian wrote: How much is a lot? 10'000/sec How many Tomcats are you running? 1 How much RAM/CPU per server etc? 8GB/Xeon How big is the average response? 300Kb How many NICs do you have? Have fast are they? one. as i said above, the

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
On 1/28/2012 12:09 PM, Pid * wrote: On 27 Jan 2012, at 23:53, bxqdevbxq...@themailbay.com wrote: On 1/28/2012 3:41 AM, Pid wrote: On 27/01/2012 23:35, bxqdev wrote: On 1/28/2012 3:16 AM, Pid wrote: On 27/01/2012 22:51, bxqdev wrote: On 1/28/2012 2:39 AM, Pid wrote: On 27/01/2012

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Mark Thomas
On 27/01/2012 23:16, bxqdev wrote: 2. async servlet api is not much usefull for servers, with nio connectors (tomcat-7). at least you can't image the case. I don't say that. In fact, I said exactly the opposite. well, then what's the case to use both of this technologies? can you make up a

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Pid
On 28/01/2012 09:07, bxqdev wrote: snip I see. Did you identify where the bottleneck was? well, we are getting too far from the subject. can you make up 3 cases when to use 3 combinations of connector+servlet api 1. bio connector + async servlet 2. nio connector + sync servlet 3. nio

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
well, let's separate the wheat from the chaff and arrogance: 1. nio connector is useful when one needs to handle a lot of client connections, keep-alive ones, for example. 2. async servlet is useful when one app thread can fulfill many responses. 3. communication between connector and async

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
On 1/28/2012 5:01 PM, Pid wrote: On 28/01/2012 09:07, bxqdev wrote: snip I see. Did you identify where the bottleneck was? well, we are getting too far from the subject. can you make up 3 cases when to use 3 combinations of connector+servlet api 1. bio connector + async servlet 2. nio

Re: ThreadLocals, context listeners and classloader leaks

2012-01-28 Thread Rainer Jung
On 26.01.2012 18:00, Jess Holle wrote: On 1/26/2012 10:38 AM, Mark Thomas wrote: OK. ThreadLocals have no place in a web application. Period. If a programmer insists on using them, then it is their responsibility to clean up the mess they leave behind. Tomcat's memory leak detection and

Re: [OT] Inspecting JMX

2012-01-28 Thread Rainer Jung
On 26.01.2012 19:32, Christopher Schultz wrote: Now I'm trying to get similar information using a command-line tool that is very simple called check_jmx -- it's a plug-in for Nagios. It appears that this tool does not support the attach API and so it looks like I'll have to enable remote JMX,

Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service

2012-01-28 Thread Rainer Jung
On 28.01.2012 07:27, Caldarale, Charles R wrote: From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service Haven't yet figured out why the ${catalina.base} references in logging.properties aren't

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Pid *
On 28 Jan 2012, at 13:34, bxqdev bxq...@themailbay.com wrote: On 1/28/2012 5:01 PM, Pid wrote: On 28/01/2012 09:07, bxqdev wrote: snip I see. Did you identify where the bottleneck was? well, we are getting too far from the subject. can you make up 3 cases when to use 3 combinations of

How to configure certificate file (*.cer) in Tomcat 6

2012-01-28 Thread Geet Chandra
Hi, My requirements is how to configure *.cer in Tomcat's server.xml file. Actually I don't want to use keytool -import command to import the *.cer file into *.keystore file. Is that possible to use configure *.cer file without using keytool -import command. Appreciate your help. -- Thanks

Re: TC7 very slow SessionIdGenerator SecureRandom initialization

2012-01-28 Thread Rainer Jung
On 28.01.2012 00:38, Pid wrote: On 27/01/2012 23:25, Caldarale, Charles R wrote: From: David Rees [mailto:dree...@gmail.com] Subject: Re: TC7 very slow SessionIdGenerator SecureRandom initialization Hmm, yes, the systems I've checked running Java 1.7.0_02 list /dev/urandom as the

RE: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service

2012-01-28 Thread Konstantin Preißer
Hi, -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Saturday, January 28, 2012 3:00 PM To: users@tomcat.apache.org Subject: Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service On 28.01.2012 07:27, Caldarale, Charles R

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
On 1/28/2012 6:14 PM, Pid * wrote: On 28 Jan 2012, at 13:34, bxqdevbxq...@themailbay.com wrote: On 1/28/2012 5:01 PM, Pid wrote: On 28/01/2012 09:07, bxqdev wrote: snip I see. Did you identify where the bottleneck was? well, we are getting too far from the subject. can you make up 3

Re: Catching Exception in Application

2012-01-28 Thread Jonathan Rosenberg
On Fri, Jan 27, 2012 at 6:46 PM, Terence M. Bandoian tere...@tmbsw.com wrote:  On 1:59 PM, Pid wrote: On 27/01/2012 18:53, Jonathan Rosenberg wrote: On Fri, Jan 27, 2012 at 1:45 PM, Pidp...@pidster.com  wrote: On 27/01/2012 18:38, Jonathan Rosenberg wrote: That is in the original CAS

Re: Reinstall with 302 error

2012-01-28 Thread Bilal S
It would not be unusual for a page to redirect to itself. Have you tried an alternate connection mechanisms. Http proxy or BonCode ( http://tomcatiis.riaforge.org)? Does it behave the same? If this app works unmodified in Mac OSX, it should work in Windows. On Wed, Jan 25, 2012 at 5:08 PM,

Re: Correct behavior while checking the thread binding in DirContextURLStreamHandler ?

2012-01-28 Thread Ivan
So is the current behavior by design, or it is a defect ? 2012/1/28 Ivan xhh...@gmail.com Yes, but guess that getParent() will not be null in most scenarios :-) And if the thread binding value is expected to be returned while no classloader binding, think the codes should be in the end of the

Re: Reinstall with 302 error

2012-01-28 Thread Pid
On 28/01/2012 15:08, Bilal S wrote: It would not be unusual for a page to redirect to itself. Have you tried an alternate connection mechanisms. Http proxy or BonCode ( http://tomcatiis.riaforge.org)? Really, is that relevant here? Please don't top-post. Please reply below each relevant

[OT] Re: TC7 very slow SessionIdGenerator SecureRandom initialization

2012-01-28 Thread Pid
On 28/01/2012 14:23, Rainer Jung wrote: On 28.01.2012 00:38, Pid wrote: On 27/01/2012 23:25, Caldarale, Charles R wrote: From: David Rees [mailto:dree...@gmail.com] Subject: Re: TC7 very slow SessionIdGenerator SecureRandom initialization Hmm, yes, the systems I've checked running Java

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread André Warnier
Hi. Your original question was quote 1. What are the premises to use either apache.coyote.http11.Http11NioProtocol or org.apache.coyote.http11.Http11NioProtocol connectors? 2. Do i get any advantages if i use Sync Servlet Api with Http11NioProtocol connector or do i have to use Async Servlet

Re: How to configure certificate file (*.cer) in Tomcat 6

2012-01-28 Thread Pid
On 28/01/2012 14:22, Geet Chandra wrote: Hi, My requirements is how to configure *.cer in Tomcat's server.xml file. You mean you want to set up a connector that uses SSL? Actually I don't want to use keytool -import command to import the *.cer file into *.keystore file. Any particular

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread bxqdev
andre, i'm sorry if i hurt your feelings and trust in humanity, try to be positive, try to look on the situation from another point of view, the one which is not depressive. i hope my question answer summary upgraded your level of tomcat understanding. and that's a good thing, because you

[OT] Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread Pid
On 28/01/2012 19:07, bxqdev wrote: andre, i'm sorry if i hurt your feelings and trust in humanity, try to be positive, try to look on the situation from another point of view, the one which is not depressive. i hope my question answer summary upgraded your level of tomcat understanding. and

Re: Connectors: Http11Protocol vs. Http11NioProtocol

2012-01-28 Thread André Warnier
Considering your previous posts, I wasn't really expecting you to take this lying down. You haven't disappointed me. The world is full of wonders. Un paquet de m. dans un bas de soie. :-) bxqdev wrote: andre, i'm sorry if i hurt your feelings and trust in humanity, try to be positive, try to

Re: connection autoReconnect?

2012-01-28 Thread Jerry Malcolm
Not good news. I changed every resource statement in server.xml to something like this: Resource* testOnBorrow=true validateQuery=SELECT 1*name=jdbc/xxx auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 removeAbandoned=true removeAbandonedTimeout=60

Re: connection autoReconnect?

2012-01-28 Thread Mark Eggers
Answers and comments are inline (mostly). - Original Message - From: Jerry Malcolm 2ndgenfi...@gmail.com To: Tomcat Users List users@tomcat.apache.org; Mark Eggers its_toas...@yahoo.com Cc: Sent: Saturday, January 28, 2012 5:32 PM Subject: Re: connection autoReconnect? Not

RE: Tomcat 6 - How to make an application available at www.mydomain.com

2012-01-28 Thread Caldarale, Charles R
From: Dean Del Ponte [mailto:dean.delpo...@gmail.com] Subject: Tomcat 6 - How to make an application available at www.mydomain.com How can I make this application available at http://www.mydomain.com; without deploying it as ROOT.war? Just save yourself much grief and go ahead and deploy it