Re: org.apache.coyote.http11.AbstractHttp11Processor.process Error processing request

2012-05-11 Thread Konstantin Kolinko
2012/5/10 Jesse Farinacci :
> Greetings,
>
> I'm running Apache Tomcat 7.0.27 on Linux 2.6.32.x kernel, where
> Tomcat reports at startup:
>
>  Loaded APR based Apache Tomcat Native library 1.1.22
>
> and Connector definitions look like:
>
>        compression="on" enableLookups="false" URIEncoding="UTF-8"/>
>        compression="on" enableLookups="false" URIEncoding="UTF-8"
>     SSLEnabled="true"
> SSLCertificateFile="${catalina.home}/conf/cacert.pem"
> SSLCertificateKeyFile="${catalina.home}/conf/privkey.pem"/>
>
> The web application was deployed via the manager application, and it
> is unpacked into ROOT/ directory. On most every request we're seeing
> delays and then in the log:
>
> 10-May-2012 08:13:58.523 SEVERE [AsyncFileHandlerWriter-1685021807]
> org.apache.coyote.http11.AbstractHttp11Processor.process Error
> processing request
>  java.lang.IllegalStateException: zip file closed
>       at java.util.jar.JarFile.getMetaInfEntryNames(Native Method)
>       at java.util.jar.JarFile.maybeInstantiateVerifier(JarFile.java:329)
>       at java.util.jar.JarFile.getInputStream(JarFile.java:433)
>       at 
> org.apache.naming.resources.WARDirContext$WARResource.streamContent(WARDirContext.java:988)
>       at 
> org.apache.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1656)
>       at 
> org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1536)
>       at 
> org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:297)
>       at 
> org.apache.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.java:996)
>       at 
> org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:808)
>       at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:671)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:646)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
>       at 
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
>       at 
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
>       at 
> org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1770)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920)
>       at java.lang.Thread.run(Thread.java:736)
>
> This has been happening for a while, but it never really caused
> delays. Now users are seeing the delays and so the issue has
> escalated.. Any help is appreciated, let me know if I can provide some
> better data,


I can easily reproduce this "zip file closed" issue in trunk with a
simple jar containing Tomcat's icon in META-INF/resources/favicon.ico
if I change configuration by removing JreMemoryLeakPreventionListener
from server.xml.

The first request to /favicon.ico hits the error.

It is a rare configuration and IMHO a broken one.
I think that running without JreMemoryLeakPreventionListener is wrong.



A place that I know that closes JARs is WebappClassLoader#closeJARs().
The closeJARs() is called after StandardContext has started up.

But WebappClassLoader and WARDirContext use different API to locate
and open the JAR file and I do not see how they can interfere with
each other.

I cannot reproduce the issue with the standard configuration.


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: maxParameterCount with Tomcat 5.5.23

2012-05-11 Thread Caldarale, Charles R
> From: Haenni, Tia [mailto:thae...@burnsmcd.com] 
> Subject: RE: maxParameterCount with Tomcat 5.5.23

> I read some posts where it was apparently ignored and the default 
> used instead.

It would be interesting to know who's publishing such garbage.

> Can you confirm that setting maxParameterCount in the connector 
> attribute will override the default?

Not on a Tomcat mangled by Red Hat - you're on your own with that.  If you use 
a real Tomcat, it will certainly work.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: maxParameterCount with Tomcat 5.5.23

2012-05-11 Thread Haenni, Tia
Konstantin,

I am aware of the EOL for 5.5. We plan to upgrade to 6.x (whatever version RH 
decides to bestow upon us)

Thanks!

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Friday, May 11, 2012 3:43 PM
To: Tomcat Users List
Subject: Re: maxParameterCount with Tomcat 5.5.23

2012/5/12 Haenni, Tia :
> Chuck,
>
> Thank you for your response. Unfortunately, due to some company policies on 
> supporting packages as supplied by Red Hat, I am stuck with 5.5.23 for now.
>
> I've read the docs and I am aware of the setting for maxParameterCount, which 
> is not set at all in my Tomcat. What I don't know is if it will be honored. I 
> read some posts where it was apparently ignored and the default used instead.
>
> Can you confirm that setting maxParameterCount in the connector attribute 
> will override the default?
>

It should, but that is up to you to confirm. You have that strange version of 
Tomcat, we do not.

BTW Note, that ASF support of Tomcat 5.5.x branch ends in several months, 
http://tomcat.apache.org/tomcat-55-eol.html

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: maxParameterCount with Tomcat 5.5.23

2012-05-11 Thread Konstantin Kolinko
2012/5/12 Haenni, Tia :
> Chuck,
>
> Thank you for your response. Unfortunately, due to some company policies on 
> supporting packages as supplied by Red Hat, I am stuck with 5.5.23 for now.
>
> I've read the docs and I am aware of the setting for maxParameterCount, which 
> is not set at all in my Tomcat. What I don't know is if it will be honored. I 
> read some posts where it was apparently ignored and the default used instead.
>
> Can you confirm that setting maxParameterCount in the connector attribute 
> will override the default?
>

It should, but that is up to you to confirm. You have that strange
version of Tomcat, we do not.

BTW Note, that ASF support of Tomcat 5.5.x branch ends in several months,
http://tomcat.apache.org/tomcat-55-eol.html

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: maxParameterCount with Tomcat 5.5.23

2012-05-11 Thread Haenni, Tia
Chuck,

Thank you for your response. Unfortunately, due to some company policies on 
supporting packages as supplied by Red Hat, I am stuck with 5.5.23 for now. 

I've read the docs and I am aware of the setting for maxParameterCount, which 
is not set at all in my Tomcat. What I don't know is if it will be honored. I 
read some posts where it was apparently ignored and the default used instead.

Can you confirm that setting maxParameterCount in the connector attribute will 
override the default?

Thanks.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, May 11, 2012 3:19 PM
To: Tomcat Users List
Subject: RE: maxParameterCount with Tomcat 5.5.23

> From: Haenni, Tia [mailto:thae...@burnsmcd.com]
> Subject: maxParameterCount with Tomcat 5.5.23

> A recent RHEL patch supplied the following Tomcat packages

Note that 5.5.23 is over five years old...  You might want to consider 
installing a real Tomcat from tomcat.apache.org instead of a 3rd-party mangled, 
horribly out-of-date version.  There are many more serious problems fixed in 
current levels.

> Since then I've encountered a problem with exceeding the 
> maxParameterCount which seems to default at 512:

That's not the default in a standard Tomcat.  Congratulate Red Hat on breaking 
things.

> Does anyone know how to tweak the maxParameterCount

Read the docs:

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: maxParameterCount with Tomcat 5.5.23

2012-05-11 Thread Caldarale, Charles R
> From: Haenni, Tia [mailto:thae...@burnsmcd.com] 
> Subject: maxParameterCount with Tomcat 5.5.23

> A recent RHEL patch supplied the following Tomcat packages 

Note that 5.5.23 is over five years old...  You might want to consider 
installing a real Tomcat from tomcat.apache.org instead of a 3rd-party mangled, 
horribly out-of-date version.  There are many more serious problems fixed in 
current levels.

> Since then I've encountered a problem with exceeding the maxParameterCount 
> which seems to default at 512:

That's not the default in a standard Tomcat.  Congratulate Red Hat on breaking 
things.

> Does anyone know how to tweak the maxParameterCount

Read the docs:

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



maxParameterCount with Tomcat 5.5.23

2012-05-11 Thread Haenni, Tia
A recent RHEL patch supplied the following Tomcat packages which attempt to 
address a possible DoS attack as outlines at the link below:

tomcat5-jasper-5.5.23-0jpp.31.el5_8
tomcat5-server-lib-5.5.23-0jpp.31.el5_8
tomcat5-servlet-2.4-api-5.5.23-0jpp.31.el5_8
tomcat5-jsp-2.0-api-5.5.23-0jpp.31.el5_8
tomcat5-admin-webapps-5.5.23-0jpp.31.el5_8
tomcat5-common-lib-5.5.23-0jpp.31.el5_8
tomcat5-webapps-5.5.23-0jpp.31.el5_8
tomcat5-5.5.23-0jpp.31.el5_8

http://rhn.redhat.com/errata/RHSA-2012-0474.html

Since then I've encountered a problem with exceeding the maxParameterCount 
which seems to default at 512:

May 4, 2012 2:30:27 PM org.apache.catalina.connector.Request parseParameters
WARNING: Exception thrown whilst processing POSTed parameters
java.lang.IllegalStateException: Parameter count exceeded allowed maximum: 512
at 
org.apache.tomcat.util.http.Parameters.addParam(Parameters.java:331)
at 
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:407)
at 
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:358)
at 
org.apache.catalina.connector.Request.parseParameters(Request.java:2400)
at 
org.apache.catalina.connector.Request.getParameterValues(Request.java:1063)
at 
org.apache.catalina.connector.RequestFacade.getParameterValues(RequestFacade.java:394).

I do not need it to be the old default of 1 and I don't think I want to set 
it to unlimited (-1) but I do need more than 512 for the application I am 
supporting.

Does anyone know how to tweak the maxParameterCount in a standalone Tomcat 
listening on 8080, requests are sent via Apache listening on 80?

This is not Tomcat as supplied with JBoss, so a fix such as that detailed at 
the link below I do not think will work:

http://docs.redhat.com/docs/en-US/JBoss_Communications_Platform/5.1/html/5.1.3_Release_Notes/ar01s05.html

Thanks in advance!





Multiple tomcat Instances on Same Server and One Apache Instance

2012-05-11 Thread Vickie Troy-McKoy

Hi, I am in need of a little help.  

I have 2 tomcat instances running on the same machine and one apache instance 
running on a different machine.  I configured jk_mod to access the 1st tomcat 
instance.  Now, I have a second tomcat instance running on the same server as 
the 1st instance.  I would like to access both tomcat instances via the one 
apache webserver instance.  Because some requests are referenced by the same 
name, there is a conflict.  

On the tomcat server in server.xml, one instance is running on port 8009 and 
the 2nd instance (in another directory structure) is running on 7009.

On the apache server in httpd.conf, I have the following:

Listen 80
.
.
.
LoadModule jk_module modules/mod_jk.so

#
JkWorkersFile conf/workers.properties
JkMount /abc* instance1
JkMount /xyz* instance2

In workers.properties, I have the following:

worker.list=instance1, instance2
#
worker.instance1.port=8009
worker.instance1.host=server..com
worker.instance1.type=ajp13
worker.instance1.lbfactor=1
worker.instance1.socket_keepalive=1
#
worker.instance2.port=7009
worker.instance2.host=server..com
worker.instance2.type=ajp13
worker.instance2.lbfactor=1
worker.instance2.socket_keepalive=1

When I call abc*, it goes to instance1; and when I call xyz*, it goes to 
instance2.  However, both instances have apps that start with "tsa".  How do I 
configure the apache webserver to service the "tsa" app for both tomcat 
instances?

Thank you...

___
Regards, 
  

Re: http status 404 error

2012-05-11 Thread Konstantin Kolinko
2012/5/11 Giles Coochey :
> On 11/05/2012 15:19, Konstantin Kolinko wrote:
>>
>>
>> BTW, Tomcat 6.0.20 is 3 years old.
>> Here is a list of known security issues fixed in later releases:
>> http://tomcat.apache.org/security-6.html
>>
>>
> Strangely enough that URL gives me a 404... perhaps this problem is
> spreading!!
>

Works for me for both US and EU mirrors.

Try with https protocol, so that intermediate proxies do not interfere
(if you have those in your network) .

BTW, there is also known epidemic of a virus that misconfigures DNS at
client computers.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: http status 404 error

2012-05-11 Thread Irene Amatulli
Thank you very  much for your help Konstantin!

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Friday, May 11, 2012 10:20 AM
To: Tomcat Users List
Subject: Re: http status 404 error

2012/5/11 Irene Amatulli :
> Hi,
>
> I got this error when trying to access my application's website.

Are you sure that it is your web site?
Configure an access log at the server and look for evidences.

>  The Tomcat service is running, so I don't know why I got this error.  The 
> website appeared with no problems when I used it yesterday.  I'm not sure if 
> some updates that were applied to the server may have caused this to happen.  
> Thanks.
>
> Irene
>
> HTTP Status 404 -
> 
> type Status report
> message
> description The requested resource () is not available.
> 
> Apache Tomcat/6.0.20
>

Tomcat itself is running. Your application is not.

Either your application did not start, or it is just is not there.

BTW, Tomcat 6.0.20 is 3 years old.
Here is a list of known security issues fixed in later releases:
http://tomcat.apache.org/security-6.html

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: http status 404 error

2012-05-11 Thread Giles Coochey

On 11/05/2012 15:19, Konstantin Kolinko wrote:


BTW, Tomcat 6.0.20 is 3 years old.
Here is a list of known security issues fixed in later releases:
http://tomcat.apache.org/security-6.html


Strangely enough that URL gives me a 404... perhaps this problem is 
spreading!!

--
Best Regards,
Giles Coochey, CCNA Security, CCNA
NetSecSpec Ltd
giles.cooc...@netsecspec.co.uk
Tel: +44 (0) 7983 877 438
Live Messenger: gi...@coochey.net
http://www.netsecspec.co.uk
http://www.coochey.net



smime.p7s
Description: S/MIME Cryptographic Signature


Re: http status 404 error

2012-05-11 Thread Konstantin Kolinko
2012/5/11 Irene Amatulli :
> Hi,
>
> I got this error when trying to access my application's website.

Are you sure that it is your web site?
Configure an access log at the server and look for evidences.

>  The Tomcat service is running, so I don't know why I got this error.  The 
> website appeared with no problems when I used it yesterday.  I'm not sure if 
> some updates that were applied to the server may have caused this to happen.  
> Thanks.
>
> Irene
>
> HTTP Status 404 -
> 
> type Status report
> message
> description The requested resource () is not available.
> 
> Apache Tomcat/6.0.20
>

Tomcat itself is running. Your application is not.

Either your application did not start, or it is just is not there.

BTW, Tomcat 6.0.20 is 3 years old.
Here is a list of known security issues fixed in later releases:
http://tomcat.apache.org/security-6.html

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: http status 404 error

2012-05-11 Thread Giles Coochey

On 11/05/2012 14:13, Jose María Zaragoza wrote:

2012/5/11 Irene Amatulli:

Hi,

I got this error when trying to access my application's website.  The Tomcat 
service is running, so I don't know why I got this error.  The website appeared 
with no problems when I used it yesterday.  I'm not sure if some updates that 
were applied to the server may have caused this to happen.  Thanks.



Pid, it's your turn  ( smart questions, you know  ...)

Actually, this is one for Uri Geller I think.

--
Best Regards,
Giles Coochey, CCNA Security, CCNA
NetSecSpec Ltd
giles.cooc...@netsecspec.co.uk
Tel: +44 (0) 7983 877 438
Live Messenger: gi...@coochey.net
http://www.netsecspec.co.uk
http://www.coochey.net



smime.p7s
Description: S/MIME Cryptographic Signature


Re: http status 404 error

2012-05-11 Thread Jose María Zaragoza
2012/5/11 Irene Amatulli :
> Hi,
>
> I got this error when trying to access my application's website.  The Tomcat 
> service is running, so I don't know why I got this error.  The website 
> appeared with no problems when I used it yesterday.  I'm not sure if some 
> updates that were applied to the server may have caused this to happen.  
> Thanks.
>


Pid, it's your turn  ( smart questions, you know  ...)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



http status 404 error

2012-05-11 Thread Irene Amatulli
Hi,

I got this error when trying to access my application's website.  The Tomcat 
service is running, so I don't know why I got this error.  The website appeared 
with no problems when I used it yesterday.  I'm not sure if some updates that 
were applied to the server may have caused this to happen.  Thanks.

Irene

HTTP Status 404 -

type Status report
message
description The requested resource () is not available.

Apache Tomcat/6.0.20



Re: how can i conect apache toncat 7 to oracle 10 g or oracle 11 g an adobe

2012-05-11 Thread reissner

On 10/05/2012 03:56 p.m., Pid wrote:

On 10/05/2012 21:33, Reissner Pabón wrote:

how can i conect apache toncat 7 to oracle 10 g or oracle 11 g

Define an appropriately configured JDBC DataSource in server.xml.


p


using the ip adress of db server an the db name ?

--
Reissner Pabon Castro
C E O
www.bucalinux.com
reis...@bucalinux.com
3102748518



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

RE: Tomcat from remote subnet

2012-05-11 Thread Charles Shreve
We have fixed the problem.  We found the problem to be related to the 
encryption of the point to point VPN.  Thanks for all your help.

Thank You,
Charles Shreve
char...@citinc.biz

Computer Information Technology, Inc.
P.O. Box 607
Cross Junction, VA  22625
(540) 662-1414
http://www.citinc.biz


-Original Message-
From: Jose María Zaragoza [mailto:demablo...@gmail.com] 
Sent: Wednesday, May 09, 2012 5:43 PM
To: Tomcat Users List
Subject: Re: Tomcat from remote subnet

2012/5/9 Charles Shreve :
> I enabled logging and was able to find that the log comes back with code 200 
> which is my understanding that everything connects properly.  I have found 
> that I am able to open any size html file, and jpeg files under 31k from the 
> remote subnet off of the tomcat server.  Anything else from the tomcat server 
> just continues to try and load.  We don't have any problems loading any of 
> our programs or files from the remote subnet from Window based machines on 
> the local side.  Is there any kind of a time out period tha the tomcat server 
> expects a response back from the client before it will send data?  When we 
> try to load the program, firefox and internet explorer continues to say that 
> it is waiting for data from the tomcat server but never gets past that point.


I'm lost , sorry

Have you could to interchange HTTP traffic (both directions) between remote 
side and that machine , via VPN?
Have you could to interchange HTTP traffic between remote side and any war 
deployed into that Tomcat server  , via VPN?
Have you could to interchange HTTP traffic between remote side and any war 
deployed into anotherTomcat server on another machine  , via VPN?

Could be a problem with a firewall and the returned HTTP traffic ?



>
> Thanks.
>
> -Original Message-
> From: Charles Shreve [mailto:char...@citinc.biz]
> Sent: Monday, May 07, 2012 4:40 PM
> To: Tomcat Users List; Mark Eggers
> Subject: RE: Tomcat from remote subnet
>
> You've said very little about your environment.
>
> It would be nice to know:
>
> 1. Tomcat version - be precise
> 2. Package install or downloaded from tomcat.apache.org 3. Fronted by 
> Apache HTTPD or not 4. If fronted by Apache HTTPD, how 
> (mod_proxy_http, mod_proxy_ajp, mod_ajp)
>
> That being said, I'll make some guesses.
>
> I'm going to guess for 1 and 2 . . . Tomcat 5.5.x installed from an RPM.
>
> For 3, I'm going to guess no, and that you're either running as root for 
> ports 80 and 443 (not advisable) or using commons-daemon.
>
> Since I'm guessing 3 is no, that renders question 4 moot.
>
> By default the access log valve is commented out in the stock Tomcat 5.5.x 
> and 6.0.x. It's enabled by default in Tomcat 7.0.x.
>
> To turn it on in 5.5.x, you need to find server.xml and uncomment the 
> following section.
>
> 
>
> The entry will look a bit different for Tomcat 6.0.x, but it should be fairly 
> obvious.
>
> Then restart your Tomcat service.
>
> Now you will need to find your log file. I suspect that RedHat places the log 
> files in /var/log or a subdirectory.
>
> If this is a stock Tomcat installation, then the log file will be in a 
> subdirectory called logs of your Tomcat installation.
>
> . . . . just my two cents.
> /mde/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
>
> Mark,
>
> Tomcat version is 5.5.23
>
> I'm not sure how it was installed, as I was not involved with the setup of 
> tomcat from the beginning so I can't answer that question.
>
> If fronted by Apache, I'm not sure, but I do not believe so, because Apache 
> is not running.
>
> Unfortunately, we are using ports 80 and 443.  Again, I got handed this 
> project because it wasn't working right, so I'm caught in the middle with the 
> whole setup.
>
> I have looked at the server.xml file and found that the log is commented out, 
> so I will get that changed which will hopefully point us to our main problem.
>
> Thanks, Charles
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Slow downloads through mod_jk on Windows XP

2012-05-11 Thread Martin Gainty

Andy-

On the receive side  *if you have windows scaling enabled* you supposedly *can* 
enhance the receive window by setting these registry keys
HKEY_LOCAL_MACHINE\System 
\CurrentControlSet\Services\Tcpip\Parameters\TCPWindowSize 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interface\TCPWindowSize
 registry values can be set to a maximum of 65,535 bytes (without window
 scaling) or 1,073,741,823 (with window scaling).
Microsoft does admit to 5GBPS hard limit for receive

On the send side you can increase thoughput by enabling CTCP (Compound TCP)
 netsh interface tcp set global congestionprovider=ctcp

Loss negotiation can be mitigated by enabling Enhanced Control Notification 
algoithm via
netsh interface tcp set global ecncapability=enabled 

http://technet.microsoft.com/library/bb878127

I remember QOS agents installed on both send and receive sides helped monitor 
and enhance Throughput 
Do you have QOS agents you can enable to track and reconfig send and receive 
parameters?

Thanks for the hard work collecting these stats..this will help me determine 
which connector to use going forward
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.


> Date: Thu, 10 May 2012 17:36:02 -0500
> From: aw...@ptc.com
> To: users@tomcat.apache.org
> Subject: Re: Slow downloads through mod_jk on Windows XP
> 
> So I cannot reproduce the slow down to 4-5MB/s on the same VM I was able 
> to reproduce it on once I copied the VM to an adequate vmware server.  
> But I do see some neat numbers in case people care.
> 
> I ran with ab -5 directly against apache, against a url mapped to ajp as 
> well as direct to the http connectors.
> The numbers were consistent between tomcat 5.0, 5.5, 6.0 and 7.0 so I'm 
> only going to post one set of numbers for tomcat.
> 
> This is against a windows XP SP3 with no sendbuffersize, tcpbuffersize 
> or scaling window tuning:
> Direct to apache http:
> Transfer rate:  21925.90 [Kbytes/sec] received
> 
> Connection Times (ms)
>min  mean[+/-sd] median   max
> Connect:01   0.3  1   1
> Processing: 19593 20077 474.0  20045   20855
> Waiting:12   0.6  2   3
> Total:  19593 20078 474.1  20046   20856
> 
> Through AJP:
> Transfer rate:  36732.95 [Kbytes/sec] received
> 
> Connection Times (ms)
>min  mean[+/-sd] median   max
> Connect:01   0.2  1   1
> Processing: 10662 11984 879.6  12227   12975
> Waiting:45   0.5  5   5
> Total:  10663 11984 879.7  12227   12976
> 
> Direct to tomcat http:
> Transfer rate:  30968.31 [Kbytes/sec] received
> 
> Connection Times (ms)
>min  mean[+/-sd] median   max
> Connect:01   1.6  0   4
> Processing: 11326 14214 2655.1  15565   16952
> Waiting:35   1.6  5   7
> Total:  11326 14215 2654.3  15565   16952
> 
> 
> Note how much better the both the tomcat results are than direct 
> apache.  Most interestingly, note how much better AJP is than direct 
> tomcat HTTP connector.  That was quite unexpected.
> 
> Here are the results from a Windows 2008 system on the same vm host:
> Direct to apache http:
> Transfer rate:  57968.69 [Kbytes/sec] received
> 
> Connection Times (ms)
>min  mean[+/-sd] median   max
> Connect:01   0.1  1   1
> Processing:  7453 7594 181.8   75757890
> Waiting:2   12  18.5  6  45
> Total:   7453 7594 181.8   75767890
> 
> Through AJP:
> Transfer rate:  31532.82 [Kbytes/sec] received
> 
> Connection Times (ms)
>min  mean[+/-sd] median   max
> Connect:01   0.2  1   1
> Processing: 10723 13960 2813.3  15795   16409
> Waiting:35   3.1  4  10
> Total:  10724 13961 2813.4  15795   16410
> 
> Direct to Tomcat http:
> Transfer rate:  37742.45 [Kbytes/sec] received
> 
> Connection Times (ms)
>   

Re: how can i conect apache toncat 7 to oracle 10 g or oracle 11 g an adobe

2012-05-11 Thread André Warnier

Reissner Pabón wrote:

how can i conect apache toncat 7 to oracle 10 g or oracle 11 g


a choice of answers :
1) if they run on separate hosts, the first thing you will need is a cable..
2) http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html
3) to do what ?
4) http://www.catb.org/~esr/faqs/smart-questions.html


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Slow downloads through mod_jk on Windows XP

2012-05-11 Thread Mladen Turk

On 05/11/2012 12:36 AM, Andy Wang wrote:

So I cannot reproduce the slow down to 4-5MB/s on the same VM I was able to 
reproduce it on once I copied the VM to an adequate vmware server. But I do see 
some neat numbers in case people care.



I was following this tread and was hoping that someone will say:
"Do not use workstation grade software for server applications"
but no. XP (Win7 falls in the same category) has good network stack
but focused on client applications.
There is a good reason why MS charges extra $$ for server versions
since they make sure your server application don't perform well on
workstation software.



I'm not sure what to make of the customer reports of the slow downs but at this 
point, I'm going to have to ask them to use something like ab.exe to do the 
downloads instead of Internet Explorer (most of them use IE to do it). Maybe 
there's some stupidity
with IE.



IE tries to open several concurrent connection at once (RFC says that number is 
max 3)
I'm sure you can simulate that with 'ab -c 10 -k -n 1 ...'


Anyways, I'm closing the book on this (with a bookmark just in case) but wanted 
to provide the numbers in case people were curious what I got.



There is nothing wrong with tomcat, mod_jk or httpd.
It's just your use case.



Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Starting up Tomcat in debug mode with tomcat6:run

2012-05-11 Thread Olivier Lamy
The most simple is to use mvnDebug (no need to add vm options all is
already set in mvnDebug script).

2012/5/11 Henrique Ordine :
> Hi everybody,
>
> I understand that to start up tomcat in debug mode I need to add the
> following JVM options :
>
> -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
>
> I'm using the Maven tomcat6:run plugin though to start up my application on
> Tomcat. Does anyone know how I can set those JVM options for this plugin?
>
> Thanks in advance.
>
> --
> Henrique Ordine
>
> http://hordine.wordpress.com/



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Starting up Tomcat in debug mode with tomcat6:run

2012-05-11 Thread Henrique Ordine
Hi everybody,

I understand that to start up tomcat in debug mode I need to add the
following JVM options :

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

I'm using the Maven tomcat6:run plugin though to start up my application on
Tomcat. Does anyone know how I can set those JVM options for this plugin?

Thanks in advance.

-- 
Henrique Ordine

http://hordine.wordpress.com/