Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-20 Thread Mark Deneen

Caldarale, Charles R wrote:
From: Scott Mueller [mailto:[EMAIL PROTECTED] 
Subject: Re: Running out of memory too easily in Tomcat 6.0.16


Charles, where's the proper place to put the heap/permgen
allocation settings in tomcat's scripts?



You don't modify the scripts themselves.  Set whatever options you need
in the JAVA_OPTS environment variable prior to running the scripts.  For
example:

JAVA_OPTS=-XX:MaxPermSize=256m -Dcom.sun.management.jmxremote

(The latter lets you run JConsole against the Tomcat instance.)

 - Chuck
  
You can put all of these settings in $CATALINA_HOME/bin/setenv.sh and 
the default tomcat scripts will source that script before running java.


Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs on SATA Linux server

2008-03-20 Thread Mark Deneen
How much memory is on the server?  Your file buffer may be too large and 
your disks can not keep up.  I think the default is 10% of memory, so if 
you can fill that up faster than the disks can write it it will hang 
until the buffer is emptied.  I doubt you are doing that much file i/o 
through a webapp though!


Mark

Rick Fincher wrote:

Hi All,

We have a web app running on Tomcat that accesses Oracle via JDBC on a 
Linux server (Centos 4.5) .  The web app runs fine on one server but 
but locks up or hangs for 20-30 second periods on a Dell sever running 
with SATA storage.


I only mention SATA because that is the only significant difference 
between the two servers.


Anyone have a clue what is causing this?


Thanks!

Rick



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat tool similar to top

2008-03-19 Thread Mark Deneen

Caldarale, Charles R wrote:
From: Enrique Arizón [mailto:[EMAIL PROTECTED] 
Subject: Tomcat tool similar to top


Time to time one of those apps gets out of control,
but standard OS tools like top just show the java
process running up to 200% of CPU usage.



I'd be suspicious of that tool :-)

  
This happens on servers with multiple processors.  top combines all of 
the threads of a given process into a single entry in the list.


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat becomes non-response for ~30 seconds

2007-11-28 Thread Mark Deneen
If the CPU is maxed out, the thread dump will provide lightweight
process numbers.  Using a tool like prstat -L on Solaris, you can
figure out which lightweight process (thread) it is, and at least
confirm that it is the GC thread.  the output from prstat is indexed
at 1, but the stack dump is indexed at 0, so you need to either add
one to the stack dump lwp id, or subtract one from the prstat output.

I'm sure there is an equivalent command for prstat in other operating
systems, but I do not know what it is.

Mark

On Nov 28, 2007 12:04 PM, Christopher Schultz
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jared,

 jnedzel wrote:
  We're having an intermittent problem with Tomcat becoming non-responsive for
  a while (between 30 seconds and several minutes) and then recovering without
  any intervention.  There are no error messages in the Tomcat logs.

 Here's a silly question: what does a thread-dump during those pauses
 look like?

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFHTZ+49CaO5/Lv0PARArxDAKCVsJw7mtwHxZZxEZBYIgOUZ4yobwCZAVjK
 SKXAqTz7BBCMxXs6j2tDPWA=
 =1UjQ
 -END PGP SIGNATURE-


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Sending Mail from a Java WebApplication does not work

2007-10-04 Thread Mark Deneen
I think that gmail is balking over the fact that venus does not
resolve to 71.248.123.180, and the reverse record of 71.248.123.180
resolves to static-71-248-123-180.bltmmd.east.verizon.net instead of
venus.

Here's what you want in DNS:
A MX (Mail) record to be set to something like mail.mydomain.com
An A (Address) record for mail.mydomain.com which points to 71.248.123.180
and
A PTR (Reverse) record which maps 71.248.123.180 to mail.mydomain.com.

Since a PTR record already exists for 71.248.123.180, verizon most
likely controls this reverse zone.. so you're stuck.

If you don't want your mail ending up in the junk folder, you either
have to have control over your DNS zone along with the reverse
delegation, or you have to use a third party service who can relay
messages for you.

Mark

On 10/4/07, Arun [EMAIL PROTECTED] wrote:
 Delivered-To: [EMAIL PROTECTED]
 Received: by 10.70.74.8 with SMTP id w8cs511135wxa;
 Thu, 4 Oct 2007 10:07:22 -0700 (PDT)
 Received: by 10.70.14.17 with SMTP id 17mr3648293wxn.1191517641836;
 Thu, 04 Oct 2007 10:07:21 -0700 (PDT)
 Return-Path: [EMAIL PROTECTED] 
 Received: from venus (static-71-248-123-180.bltmmd.east.verizon.net
 [71.248.123.180])
 by mx.google.com with ESMTP id h9si2242792wxd.2007.10.04.10.07.21;
 Thu, 04 Oct 2007 10:07:21 -0700 (PDT)
 Received-SPF: neutral (google.com: 71.248.123.180 is neither permitted
 nor denied by best guess record for domain of
 [EMAIL PROTECTED]) client-ip=71.248.123.180;
 Authentication-Results: mx.google.com; spf=neutral (google.com:
 71.248.123.180 is neither permitted nor denied by best guess record
 for domain of [EMAIL PROTECTED])
 [EMAIL PROTECTED]
 Received: from venus (localhost [ 127.0.0.1])
 by venus (8.13.8/8.13.8/Debian-3) with ESMTP id l950p6C3017485
 for [EMAIL PROTECTED]; Thu, 4 Oct 2007 20:51:06 -0400
 Message-ID:  [EMAIL PROTECTED]
 Date: Thu, 4 Oct 2007 20:51:06 -0400 (EDT)
 From: MyDomain AdminSupport [EMAIL PROTECTED]
 To: Arun George  [EMAIL PROTECTED]
 Subject: Your MyDomain registration confirmation
 Mime-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit

 You can copy paste this url in your browser and press
 enter.http://ibaaz.com:80//useraccount/useraccountflow.do?dispatch=confirmuserid=16confirmationcode=-2136050843


 
 I have changed the domain name to mydomain.com.
 Remember that the webapp is not running on mydomain.com. Its running
 on another domain say ' anotherdomain.com'. But the from address is
 still [EMAIL PROTECTED]
 Guys give me some links to learn myself of what is happening when a
 mail is send , what is this MX records and PTR records?


 On 10/4/07, Arun [EMAIL PROTECTED] wrote:
 
  Delivered-To: [EMAIL PROTECTED]
  Received: by 10.70.74.8 with SMTP id w8cs511135wxa;
  Thu, 4 Oct 2007 10:07:22 -0700 (PDT)
  Received: by 10.70.14.17 with SMTP id 17mr3648293wxn.1191517641836;
  Thu, 04 Oct 2007 10:07:21 -0700 (PDT)
  Return-Path: [EMAIL PROTECTED] 
  Received: from venus (static-71-248-123-180.bltmmd.east.verizon.net 
  [71.248.123.180])
  by  mx.google.com with ESMTP id h9si2242792wxd.2007.10.04.10.07.21;
  Thu, 04 Oct 2007 10:07:21 -0700 (PDT)
  Received-SPF: neutral (google.com: 71.248.123.180  is neither permitted nor 
  denied by best guess record for domain of [EMAIL PROTECTED]) 
  client-ip=71.248.123.180;
  Authentication-Results:  mx.google.com; spf=neutral (google.com: 
  71.248.123.180 is neither permitted nor denied by best guess record for 
  domain of  [EMAIL PROTECTED]) [EMAIL PROTECTED]
  Received: from venus (localhost [ 127.0.0.1])
  by venus (8.13.8/8.13.8/Debian-3) with ESMTP id l950p6C3017485
  for [EMAIL PROTECTED]; Thu, 4 Oct 2007 20:51:06 -0400
  Message-ID:  [EMAIL PROTECTED]
  Date: Thu, 4 Oct 2007 20:51:06 -0400 (EDT)
  From: MyDomain AdminSupport [EMAIL PROTECTED]
  To: Arun George  [EMAIL PROTECTED]
  Subject: Your MyDomain registration confirmation
  Mime-Version: 1.0
  Content-Type: text/plain; charset=us-ascii
  Content-Transfer-Encoding: 7bit
 
  You can copy paste this url in your browser and press 
  enter.http://ibaaz.com:80//useraccount/useraccountflow.do?dispatch=confirmuserid=16confirmationcode=-2136050843
 
 
  
  I have changed the domain name to mydomain.com.
  Remember that the webapp is not running on mydomain.com. Its running on 
  another domain say ' anotherdomain.com'. But the from address is still 
  [EMAIL PROTECTED]
  Guys give me some links to learn myself of what is happening when a mail is 
  send , what is this MX records and PTR records?
 
 
  On 10/4/07, Christopher Schultz [EMAIL PROTECTED] wrote:
 
-BEGIN PGP SIGNED MESSAGE-
   Hash: SHA1
  
   Arun,
  
   Arun wrote:
It contains a link for user verification and a welcome message. Did the
mail.log 

Re: I need help as soon as possible..

2007-10-04 Thread Mark Deneen
I doubt this is it, but I would avoid installing tomcat into a
directory containing spaces.  It may be looking for the jar file in
c:\Program

Mark

On 10/4/07, Jaime Almeida [EMAIL PROTECTED] wrote:
 I'm sorry, I didn't mean to upset you.
 But I'm really in trouble with the tomcat server.
 The error appears in a message box launched by the server in the Eclipse.
 I've installed Tomcat directly from the ApacheFoundation.org, pushing the
 'run' button on the download dialog box.
 I guess I didn't nothing wrong because I've already used the server before,
 without problems...
 But one of this days, when I've tryed to run my application 'on server', the
 problem appeared, I don't know why.
 There might be any problem with my Operation System? I have the Windows
 Vista in my computer - can be that any problem?
 Best regards,
 Jaime Almeida.

 Caldarale, Charles R writes:

  From: Jaime Almeida [mailto:[EMAIL PROTECTED]
  Subject: I need help as soon as possible..
 
  To quote from How To Ask Questions The Smart Way, as linked to from
  the Tomcat mailing lists page:
  http://tomcat.apache.org/lists.html
 
  Use meaningful, specific subject headers
 
  On mailing lists, newsgroups or Web forums, the subject header is your
  golden opportunity to attract qualified experts' attention in around 50
  characters or fewer. Don't waste it on babble like Please help me (let
  alone PLEASE HELP ME; messages with subjects like that get
  discarded by reflex). Don't try to impress us with the depth of your
  anguish; use the space for a super-concise problem description instead.
 
  always the same error:
  'The archive: C:/Program Files/Tomcat 6.0/bin/bootstrap.jar which is
  referenced by the classpath, does not exist.'
 
  And where do you see this error?  What are you doing to provoke this
  error?  How did you install Tomcat, from the .zip or the .exe download?
  What platform are you using?
 
   - 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 start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  
 IPLNet WebMail http://www.net.ipl.pt/mail
  

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AJP Flush Packet causing text/plain output

2007-10-03 Thread Mark Deneen
I encountered a similar problem, where one servlet had a bug where the
headers would be set _after_ the data had been sent.  The result was
that unrelated responses would come back as text/plain.  Once I found
the offending code and fixed it, the issue has not surfaced again.

Mark

On 9/24/07, Larry Reisler [EMAIL PROTECTED] wrote:
 We recently switched our development JBOSS instance from 4.05GA to 4.21GA, 
 where we are have been using mod_jk for connecting an Apache front end server 
 (2.2) to the Tomcat AppServer. We have noticed periodic times when the apache 
 web server will return data with a content-type of plain/text (the server 
 default) instead of the real content-type, and a chunked encoding (even if 
 the AppServer was producing a non-chunked content). We tried switch to 
 mod_proxy_ajp, but got the same result.

 A bit of sleuthing (2 days X 2 engineers) revealed that the AJP connection on 
 Tomcat is sending a SEND_BODY_CHUNK (which I assume is a flush packet) 
 periodically that seem to be confusing mod_jk. We can see in the mod_jk and 
 mod_proxy_ajp debug log that the correct headers are coming from the Tomcat 
 server. However, it seems like mod_jk and mod_proxy_ajp are losing all the 
 header information regarding the packet (including the Powered by headers, 
 content-type, content-length, cookies, etc.).

 In normal operation, for a sample small transaction, we would see this 
 sequence in response:
 SEND_HEADERS
 SEND_BODY_CHUNK
 END_RESPONSE

 When the output would come out as text/plain, we would see this sequence:
 SEND_BODY_CHUNK
 SEND_HEADERS
 SEND_BODY_CHUNK
 END_RESPONSE

 Is there something we should have configured differently so that mod_jk or 
 mod_proxy_ajp will behave better?





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is Tomcat being hacked by curl ?

2007-08-23 Thread Mark Deneen
Once you find them, you might be hard pressed to actually do anything
about it beyond getting in touch with their ISP.

It might be easier to just block them at the firewall or on the server
tomcat runs on with something like iptables.

Mark

On 8/23/07, Lyallex [EMAIL PROTECTED] wrote:
 www.who.is

 Much more info

 ...tracking the perpetrator down now ... this is fun.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: My error-pages does not show in IE7 everything worked in IE 4 - IE6

2007-07-23 Thread Mark Deneen

In addition, there is a minimum page length required for IE to show
your custom error pages.  If your error page is less than 512 bytes,
the friendly error page will be shown.

http://support.microsoft.com/kb/294807

Mark

On 7/23/07, David Delbecq [EMAIL PROTECTED] wrote:

in IE6 there was a configuration option to let IE handle error
messages. If this was active, error page from server would be replaced
by a custom non informative IE page. This may be activated in your IE7.

En l'instant précis du 23/07/07 11:32, Søren Blidorf s'exprimait en ces
termes:
 Hi.



 Does anybody know why my error-pages does not show in IE7 everything worked
 in IE 4 – IE6





 Web.xml:

   error-page

 error-code500/error-code

 location/error?error=500/location

   /error-page

   error-page

 error-code404/error-code

 location/error?error=404/location

   /error-page

   error-page

 error-code403/error-code

 location/error?error=403/location

   /error-page

   error-page

 error-code400/error-code

 location/error?error=400/location

   /error-page

   error-page

 error-code408/error-code

 location/error?error=408/location

   /error-page

   error-page

 exception-typejava.lang.NullPointerException/exception-type

 location/error?error=NullPointerException/location

   /error-page

   error-page

 exception-typejava.net.UnknownHostException/exception-type

 location/error?error=UnknownHostException/location

   /error-page



 BR



 Soren, DK





--
http://www.noooxml.org/


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk vs. reverse proxy

2007-07-22 Thread Mark Deneen

I've had it happen in both Internet Explorer and Firefox.  Personally
I've only seen it in Firefox, but users had been complaining about the
issue... and they are only using IE.

Mark

On 7/22/07, Pid [EMAIL PROTECTED] wrote:

Mark Deneen wrote:
 Since we're all giving mod_jk a big hug here I thought I would point
 out that I had issues with both mod_proxy_http and mod_proxy_ajp which
 were solved by moving (back) to mod_jk.

 Intermittently the response to the browser would be sent as plain-text
 (the browser just prints out the html) or I would have random
 corruption sprinkled in the response.


I've experienced the same thing, but determined it to be a recent
intermittent Firefox issue, as I was never able to reproduce the same
outcome in IE or other browsers.

p


 Mark

 go jk!


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk vs. reverse proxy

2007-07-20 Thread Mark Deneen

Since we're all giving mod_jk a big hug here I thought I would point
out that I had issues with both mod_proxy_http and mod_proxy_ajp which
were solved by moving (back) to mod_jk.

Intermittently the response to the browser would be sent as plain-text
(the browser just prints out the html) or I would have random
corruption sprinkled in the response.

Mark

go jk!

On 7/20/07, Mladen Turk [EMAIL PROTECTED] wrote:



Don't worry, there are many other folks actively developing
mod_jk like Bill, Henri, Jean-Frederic, Mark, Rainer and many others.

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BootStrap - Is in redundant?

2007-05-22 Thread Mark Deneen

It opens up a listening socket on the loopback address.  The second
process connects to this socket and sends a message telling tomcat to
shut down.

Mark

On 5/22/07, Johnny Kewl [EMAIL PROTECTED] wrote:

=Start Stop Mechanism=
I see that START goes into a wait loop... and it will pop out of this when STOP 
is called.  I understand how this works from a single program (process), but I 
cant understand how this works from start and stop bat files... or in two calls 
from 2 separate processes. To me that will launch an instance and start it... 
and launch a separate instance and stop it... never shall the 2 meet??? How 
does that work?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat as a deoman

2007-05-17 Thread Mark Deneen

Attached is the script I use to start/stop tomcat.  The shutdown
method waits a configurable amount of time for the instance to
terminate cleanly and then terminates the process.

Obviously one would need to tweak the script to fit in their
environment.  tomcat-prod goes in /etc/init.d and tomcat-prod.env goes
in /etc/sysconfig.

Mark

On 5/17/07, Prashant Thakkar [EMAIL PROTECTED] wrote:

Hi,

I would like to know how i can run tomcat5.0 as a deoman on REHL4.

--
Prashant Thakkar

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 6.0.10 problems with httpd 2.2.4 and mod_proxy_ajp

2007-05-17 Thread Mark Deneen

I just wanted to let anyone else who has experienced this problem that
it appears mod_jk works without any issue at all.  mod_proxy_http
would occasionally corrupt the output stream.  We would see random hex
values sprinkled throughout the servlet response.

Anyway, mod_jk is the winner for now.

Mark

On 5/16/07, Mark Deneen [EMAIL PROTECTED] wrote:

Hi, I have experienced some issues using mod_proxy_ajp and Tomcat
6.0.10 under moderate load.  Occasionally I receive an error 503 in my
browser when the webapp when we have around 30 - 40 users connected.

First off, here is what I see in our logs:

httpd error_log:
[Tue May 15 17:45:02 2007] [error] ajp_check_msg_header() got bad signature 420
[Tue May 15 17:45:02 2007] [error] ajp_ilink_receive() received bad header
[Tue May 15 17:45:02 2007] [error] ajp_read_header: ajp_ilink_receive failed
[Tue May 15 17:45:02 2007] [error] (120007)APR does not understand
this error code: proxy: read response failed from 127.0.0.1:20021
(localhost)


tomcat 6.0.10 catalina.out:
May 15, 2007 5:45:02 PM org.apache.jk.core.MsgContext action
WARNING: Error sending end packet
java.net.SocketException: Connection reset
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)
at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121)
at org.apache.jk.core.MsgContext.action(MsgContext.java:301)
at org.apache.coyote.Response.action(Response.java:183)
at org.apache.coyote.Response.finish(Response.java:305)
at 
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:276)
at 
org.apache.catalina.connector.Response.finishResponse(Response.java:486)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:232)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
at java.lang.Thread.run(Thread.java:619)
May 15, 2007 5:45:02 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2

Apache is running with the prefork MPM, with MaxClients set at the
default 256.  The AJP connector in Tomcat is configured with
MaxThreads=175

For now, I am using mod_proxy_http and have apache connect to the
Tomcat http connector.  This works well, but I would like to
understand the issue with the AJP connector.  Any ideas?  Should I use
mod_jk?

The server is running Centos 4.4 x86_64.

Best Regards,
Mark Deneen



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 6.0.10 problems with httpd 2.2.4 and mod_proxy_ajp

2007-05-16 Thread Mark Deneen

Hi, I have experienced some issues using mod_proxy_ajp and Tomcat
6.0.10 under moderate load.  Occasionally I receive an error 503 in my
browser when the webapp when we have around 30 - 40 users connected.

First off, here is what I see in our logs:

httpd error_log:
[Tue May 15 17:45:02 2007] [error] ajp_check_msg_header() got bad signature 420
[Tue May 15 17:45:02 2007] [error] ajp_ilink_receive() received bad header
[Tue May 15 17:45:02 2007] [error] ajp_read_header: ajp_ilink_receive failed
[Tue May 15 17:45:02 2007] [error] (120007)APR does not understand
this error code: proxy: read response failed from 127.0.0.1:20021
(localhost)


tomcat 6.0.10 catalina.out:
May 15, 2007 5:45:02 PM org.apache.jk.core.MsgContext action
WARNING: Error sending end packet
java.net.SocketException: Connection reset
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)
   at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121)
   at org.apache.jk.core.MsgContext.action(MsgContext.java:301)
   at org.apache.coyote.Response.action(Response.java:183)
   at org.apache.coyote.Response.finish(Response.java:305)
   at 
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:276)
   at 
org.apache.catalina.connector.Response.finishResponse(Response.java:486)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:232)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
   at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
   at java.lang.Thread.run(Thread.java:619)
May 15, 2007 5:45:02 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2

Apache is running with the prefork MPM, with MaxClients set at the
default 256.  The AJP connector in Tomcat is configured with
MaxThreads=175

For now, I am using mod_proxy_http and have apache connect to the
Tomcat http connector.  This works well, but I would like to
understand the issue with the AJP connector.  Any ideas?  Should I use
mod_jk?

The server is running Centos 4.4 x86_64.

Best Regards,
Mark Deneen

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]