using Mbeans with tomcat

2010-01-31 Thread Nikita Manohar
Hi!

I want to know if I can access and configure web.xml at runtime using Mbeans
and Jconsole. Actually, I want to dynamically change the security constraint
element to toggle entire web application between http and https.
Please help!

Thanks
Nikita


Re: using Mbeans with tomcat

2010-01-31 Thread Mark Thomas
On 31/01/2010 10:12, Nikita Manohar wrote:
 Hi!
 
 I want to know if I can access and configure web.xml at runtime using Mbeans
 and Jconsole. Actually, I want to dynamically change the security constraint
 element to toggle entire web application between http and https.
 Please help!

That isn't going to work (at the moment). The necessary methods aren't
exposed via JMX.

If you wanted to look at exposing them, it shouldn't be too tricky.

Mark



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



About unsusrcibe this list.

2010-01-31 Thread Jaime Carmona Loeches

Hi!

I don't have time to help developing Tomcat.
Could anyone say me how to unsuscribe this list?

Thanks in advance,
  Jaime.


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



Re: About unsusrcibe this list.

2010-01-31 Thread Mark Thomas
On 31/01/2010 11:49, Jaime Carmona Loeches wrote:
 Hi!
 
 I don't have time to help developing Tomcat.
 Could anyone say me how to unsuscribe this list?
 
 Thanks in advance,
   Jaime.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

1. Don't hijack threads.
2. Read the footer that gets appended to nearly every message posted to
the list.

Mark



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



Re: About unsusrcibe this list.

2010-01-31 Thread Jaime Carmona Loeches

Thanks Mark.


- Original Message - 
From: Mark Thomas ma...@apache.org

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, January 31, 2010 1:20 PM
Subject: Re: About unsusrcibe this list.



On 31/01/2010 11:49, Jaime Carmona Loeches wrote:

Hi!

I don't have time to help developing Tomcat.
Could anyone say me how to unsuscribe this list?

Thanks in advance,
  Jaime.


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


1. Don't hijack threads.
2. Read the footer that gets appended to nearly every message posted to
the list.

Mark



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


Jaime Carmona Loeches.
   Formador de Java J2EE / Java-J2EE Teacher 
   Pronoide SL www.pronoide.com Spain


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



Getting a heap dump on OOME from Tomcat-as-a-service on Windows?

2010-01-31 Thread Laird Nelson
I have Tomcat 6 running as a service on Windows 2003.

I go to the Tomcat service monitor, choose configure, choose the Java tab,
and add:

-XX:+HeapDumpOnOutOfMemoryError

...as one of the Java options.

When the OutOfMemoryError that I'm concerned about hits, I look around on
the disk to find an .hprof file.  I searched the entire computer; no such
file is found.

Any pointers?

Thanks,
Laird


Deleting work files after JspRuntimeLibrary.include

2010-01-31 Thread MeadowBrook
I am running a system that uses a .jsp page to explicitly invoke the 
JspRuntimeLibrary.include 
http://tomcat.apache.org/tomcat-4.1-doc/jasper/docs/api/org/apache/jasper/runtime/JspRuntimeLibrary.html#include%28javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse,%20java.lang.String,%20javax.servlet.jsp.JspWriter,%20boolean%29 
function to build another web page.


In the following, the full resulting page is stored as a string in 
HTMLString


try {
myout = new StringWriter();
pageContext.pushBody(myout);
out = pageContext.getOut();

org.apache.jasper.runtime.JspRuntimeLibrary.include(request,response, 
compileFileName, out, true);

pageContext.popBody();
out = pageContext.getOut();
HTMLString = myout.toString();
}
catch (Throwable t) {
// == error processing
HTMLString = ;
}
finally {
}

After the processing, I have no need of the original source file or the 
work files (the xxx_jsp.java and the xxx_jsp.class files) so I want to 
delete them.  I use the following to delete the work files:


//  the source jsp uses the sessionId to guarantee a unique name
//  insert the lead underscore if sessionId starts with a digit
String workFileName = compileWorkPath +
 ((0123456789.indexOf(sessionId.charAt(0))-1)?_:)+
 sessionId+_jsp;
if (!(new File(workFileName+.class).delete()) ||
!(new File(workFileName+.java).delete()) )
{
   //  do appropriate error processing...
}

For both Tomcat5.5 and Tomcat6, the above successfully deletes the 
.class files, but not the .java files - with a file sharing exception.


It appears as if the .java files are still open somewhere in the 
Tomcat processing.  If I try to manually delete the .java file it also 
fails until I do another compile.   Once there is a new .java class in 
the work directory, then I can delete the prior one.


Any suggestions??  Is this a bug?

Thank you,

David Poor

PS:  If I have sent this to the wrong mailing list, please excuse the 
newbie error - and I would appreciate knowing which mailing list I 
should use.


Re: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-01-31 Thread Mark Thomas
On 31/01/2010 17:50, Alexander Diedler wrote:
 Hello,
 We spend a lot of time to investigate the mistake, but I would not be found 
 by us. We have two Virtual Machines with Windows 2003 R2 Standard Edition and 
 on every node there is a Apache 2.2.14 and Tomcat 6.0.20 (and tcnative 
 installed) with mod_jk 1.2.28 (all 32 Bit) installed.
 After a period (hours up to a day) we receive on every application a 503 
 error through the Webserver.
 The Apache seems to work fine, jkmanager, htdocs, server-info and 
 server-status can be opened and the apps seems can be accessed by HTTP 
 Connector Port 8080.
 
 Is there are any idea, what is the problem in this case? Any suggestions, 
 what we can improve to avoid this errors.

Hard to tell with out any configuration info. At a guess, more httpd
threads than AJP threads and unused connections not being closed quickly
enough. Try fixing your timeouts or use
JkOptions +DisableReuse

Mark



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



can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread hbral


Hi everyone. 
I have a serlvet that reads a file from disk and then starts streaming 
the file. 
i have mapped the servlet to url in the web.xml file. 
it works perfect on my local machine (i'm using gwt with eclipse which uses
jetty i think) but when i deploy it on my tomcat server i can't call that
url that is mapped to the servlet instead i 
get a page with the 404 error (the requested resource was not found). 
thank you 
-- 
View this message in context: 
http://old.nabble.com/can%27t-call-my-servlet-on-Tomcat-6-%28Error-404%29-tp27397388p27397388.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Administration Tool

2010-01-31 Thread Charles Ohana
Hello guys,
I just installed tomcat 6 on my machine (yup it's my first time). I realized
it does not come with the Administration Tool.
I've been looking to download it but cannot find it anywhere.
Can anyone points me to the right direction?

Thank you


Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread David Smith
On 1/31/2010 5:36 PM, hbral wrote:

 Hi everyone. 
 I have a serlvet that reads a file from disk and then starts streaming 
 the file. 
 i have mapped the servlet to url in the web.xml file. 
 it works perfect on my local machine (i'm using gwt with eclipse which uses
 jetty i think) but when i deploy it on my tomcat server i can't call that
 url that is mapped to the servlet instead i 
 get a page with the 404 error (the requested resource was not found). 
 thank you 
   

Help us help you.  We need to see the logs for the moment your webapp
was deployed and the moment you requested the servlet.  Also some
details on your system -- os, jvm, tomcat version, etc., ... would help
all the more.


--David


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



Re: Administration Tool

2010-01-31 Thread David Smith
On 1/31/2010 5:46 PM, Charles Ohana wrote:
 Hello guys,
 I just installed tomcat 6 on my machine (yup it's my first time). I realized
 it does not come with the Administration Tool.
 I've been looking to download it but cannot find it anywhere.
 Can anyone points me to the right direction?

 Thank you

   
There is no administration tool for tomcat 6.  It was buggy even in the
last release to include it and not maintained for some time.

--David


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



Re: Administration Tool

2010-01-31 Thread Mark Thomas
On 31/01/2010 22:46, Charles Ohana wrote:
 Hello guys,
 I just installed tomcat 6 on my machine (yup it's my first time). I realized
 it does not come with the Administration Tool.
 I've been looking to download it but cannot find it anywhere.
 Can anyone points me to the right direction?

The Admin tool has been discontinued.

Mark



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



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread hbral



David Smith-2 wrote:
 
 On 1/31/2010 5:36 PM, hbral wrote:

 Hi everyone. 
 I have a serlvet that reads a file from disk and then starts streaming 
 the file. 
 i have mapped the servlet to url in the web.xml file. 
 it works perfect on my local machine (i'm using gwt with eclipse which
 uses
 jetty i think) but when i deploy it on my tomcat server i can't call that
 url that is mapped to the servlet instead i 
 get a page with the 404 error (the requested resource was not found). 
 thank you 
   
 
 Help us help you.  We need to see the logs for the moment your webapp
 was deployed and the moment you requested the servlet.  Also some
 details on your system -- os, jvm, tomcat version, etc., ... would help
 all the more.
 
 
 --David
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

sorry about that.

tomcat: 6.0.24
os: debian linux 2.6.12.6-xenU
jvm: 1.6.0_12-b04

log files contain nothing use full other than that i successfully deployed
the war file

regards 

-- 
View this message in context: 
http://old.nabble.com/can%27t-call-my-servlet-on-Tomcat-6-%28Error-404%29-tp27397388p27397698.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread David Smith
On 1/31/2010 6:15 PM, hbral wrote:


 David Smith-2 wrote:
   
 On 1/31/2010 5:36 PM, hbral wrote:
 
 Hi everyone. 
 I have a serlvet that reads a file from disk and then starts streaming 
 the file. 
 i have mapped the servlet to url in the web.xml file. 
 it works perfect on my local machine (i'm using gwt with eclipse which
 uses
 jetty i think) but when i deploy it on my tomcat server i can't call that
 url that is mapped to the servlet instead i 
 get a page with the 404 error (the requested resource was not found). 
 thank you 
   
   
 Help us help you.  We need to see the logs for the moment your webapp
 was deployed and the moment you requested the servlet.  Also some
 details on your system -- os, jvm, tomcat version, etc., ... would help
 all the more.


 --David


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



 
 sorry about that.

 tomcat: 6.0.24
 os: debian linux 2.6.12.6-xenU
 jvm: 1.6.0_12-b04

 log files contain nothing use full other than that i successfully deployed
 the war file

 regards 

   
Then I'm guessing your servlet isn't getting hit on the production
environment.  I would add some logging so even successful attempts show
up in the log file and test w/ your server env. again.

--David


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



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Konstantin Kolinko
2010/2/1 hbral nro...@web.de:

 tomcat: 6.0.24
 os: debian linux 2.6.12.6-xenU
 jvm: 1.6.0_12-b04

 log files contain nothing use full other than that i successfully deployed
 the war file


What URL are you calling by your browser?

If your war was named mywar.war then you should call
http://localhost:8080/mywar/myservlet

Also,
http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F

Best regards,
Konstantin Kolinko

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



Re: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread hbral



Konstantin Kolinko wrote:
 
 2010/2/1 hbral nro...@web.de:

 tomcat: 6.0.24
 os: debian linux 2.6.12.6-xenU
 jvm: 1.6.0_12-b04

 log files contain nothing use full other than that i successfully
 deployed
 the war file

 
 What URL are you calling by your browser?
 
 If your war was named mywar.war then you should call
 http://localhost:8080/mywar/myservlet
 
 Also,
 http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

yes i called it that way.
as i said, it worked perfectly on my local testing environment with eclipse
and gwt plugin. 

-- 
View this message in context: 
http://old.nabble.com/can%27t-call-my-servlet-on-Tomcat-6-%28Error-404%29-tp27397388p27398666.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Caldarale, Charles R
 From: hbral [mailto:nro...@web.de]
 Subject: Re: can't call my servlet on Tomcat 6 (Error 404)
 
 yes i called it that way.

You seem reluctant to provide real data.  Show us your web.xml, server.xml, the 
webapp's Context element (if any), the location of the .war file, and the 
actual URL.

 it worked perfectly on my local testing environment with
 eclipse and gwt plugin.

Note that Eclipse has a habit of using its own configurations for things, 
rather than the ones you think you've set up.

 - 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: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread hbral



n828cl wrote:
 
 From: hbral [mailto:nro...@web.de]
 Subject: Re: can't call my servlet on Tomcat 6 (Error 404)
 
 yes i called it that way.
 
 You seem reluctant to provide real data.  Show us your web.xml,
 server.xml, the webapp's Context element (if any), the location of the
 .war file, and the actual URL.
 
 it worked perfectly on my local testing environment with
 eclipse and gwt plugin.
 
 Note that Eclipse has a habit of using its own configurations for things,
 rather than the ones you think you've set up.
 
  - 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
 
 
 

i call: /download/file
and i get the 404 error

i don't have a server.xml
or do you mean the tomcat server.xml?
here it is:





?xml version='1.0' encoding='utf-8'?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
!-- Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves at this level.
 Documentation at /docs/config/server.html
 --
Server port=8005 shutdown=SHUTDOWN

  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener /
  !-- Prevent memory leaks due to use of particular java/javax APIs--
  Listener
className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  !-- JMX Support for the Tomcat server. Documentation at
/docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  !-- Global JNDI resources
   Documentation at /docs/jndi-resources-howto.html
  --
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users
--
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level.
   Documentation at /docs/config/service.html
   --
  Service name=Catalina
  
!--The connectors can use a shared executor, you can define one or more
named thread pools--
!--
Executor name=tomcatThreadPool namePrefix=catalina-exec- 
maxThreads=150 minSpareThreads=4/
--


!-- A Connector represents an endpoint by which requests are received
 and responses are returned. Documentation at :
 Java HTTP Connector: /docs/config/http.html (blocking 
non-blocking)
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port 8080
--
Connector port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
!-- A Connector using the shared thread pool--
!--
Connector executor=tomcatThreadPool
   port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
--   
!-- Define a SSL HTTP/1.1 Connector on port 8443
 This connector uses the JSSE configuration, when using APR, the 
 connector should be using the OpenSSL style configuration
 described in the APR documentation --
!--
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https 

RE: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Caldarale, Charles R
 From: hbral [mailto:nro...@web.de]
 Subject: RE: can't call my servlet on Tomcat 6 (Error 404)
 
 i call: /download/file
 and i get the 404 error

What's the entire URL?

Enable the AccessLogValve in server.xml and see if the request is even getting 
to Tomcat.

 do you mean the tomcat server.xml?

Indeed, and it looks o.k.
 
 Connector port=8080 protocol=HTTP/1.1
connectionTimeout=2
redirectPort=8443 /
 Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

Do you have Tomcat front-ended by httpd or some other server?  If so, you'll 
need to configure it to pass the desired requests to Tomcat.  If not, you'll 
need to use port 8080 on your URL.

 war file: download.war
 path: apache-tomcat-6.0.24\webapps\download

So Tomcat has expanded the download.war file into the download directory?  (It 
should; just checking.)

 web.xml:
   servlet-mapping
 servlet-nameDLServlet/servlet-name
 url-pattern/download/file/url-pattern
   /servlet-mapping

Change the url-pattern to just /file; the webapp name must not be part of the 
pattern.

 - 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: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Ningappa Koneri
As Konstantin said in ur case the URL should be 
http://localhost:8080/download/download/file.


Regards,
Ningappa Koneri
mLifestyle | www.comviva.com



-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: Monday, February 01, 2010 5:30 AM
To: Tomcat Users List
Subject: Re: can't call my servlet on Tomcat 6 (Error 404)

2010/2/1 hbral nro...@web.de:

 tomcat: 6.0.24
 os: debian linux 2.6.12.6-xenU
 jvm: 1.6.0_12-b04

 log files contain nothing use full other than that i successfully deployed
 the war file


What URL are you calling by your browser?

If your war was named mywar.war then you should call
http://localhost:8080/mywar/myservlet

Also,
http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F

Best regards,
Konstantin Kolinko

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


This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

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



AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-01-31 Thread Alexander Diedler
Hello,
Server Version: Apache/2.2.14 (Win32) mod_jk/1.2.28
Server Built: Sep 28 2009 22:41:08
Server loaded APR Version: 1.3.9
Compiled with APR Version: 1.3.9
Server loaded APU Version: 1.3.9
Compiled with APU Version: 1.3.9
Module Magic Number: 20051115:23
Hostname/port: XXX.XXX.XXX.XXX:80
Timeouts: connection: 300keep-alive: 5
MPM Name: WinNT
MPM Information: Max Daemons: 64 Threaded: yes Forked: no
Server Architecture: 32-bit
Server Root: D:/tecracer/software/Apache
Config File: D:/tecracer/software/Apache/conf/httpd.conf
Server Built With:  -D APACHE_MPM_DIR=server/mpm/winnt
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/apache
 -D SUEXEC_BIN=/apache/bin/suexec
 -D DEFAULT_ERRORLOG=logs/error.log
 -D AP_TYPES_CONFIG_FILE=conf/mime.types
 -D SERVER_CONFIG_FILE=conf/httpd.conf


Server Version: Apache/2.2.14 (Win32) mod_jk/1.2.28 
Server Built: Sep 28 2009 22:41:08 



Current Time: Monday, 01-Feb-2010 08:38:14 W. Europe Standard Time 
Restart Time: Monday, 01-Feb-2010 04:58:09 W. Europe Standard Time 
Parent Server Generation: 0 
Server uptime: 3 hours 40 minutes 5 seconds 
Total accesses: 28126 - Total Traffic: 340.1 MB 
2.13 requests/sec - 26.4 kB/second - 12.4 kB/request 
44 requests currently being processed, 1656 idle workers


Listing Load Balancing Worker (1 Worker) [Hide]



[S|E|R]  Worker Status for loadbalancer
Type Sticky Sessions Force Sticky Sessions Retries LB Method Locking Recover 
Wait Time Error Escalation Time Max Reply Timeouts [Hide] 
lb True False 3 Busyness Optimistic 60 30 0  

Good Degraded Bad/Stopped Busy Max Busy Next Maintenance Last Reset [Hide] 
2 0 0 0 70 74/196 13277  

Balancer Members [Hide]
Name Type Hostname Address:Port Connection Pool Timeout Connect Timeout Prepost 
Timeout Reply Timeout Retries Recovery Options Max Packet Size [Hide] 
worker1 ajp13 k0.domain.local xxx.xxx.x.78:8010 0 0 0 0 2 0 8192  
worker2 ajp13 k1.domain.local xxx.xxx.x.77:8010 0 0 0 0 2 0 8192  

  Name Act State D F M V Acc Err CE RE Wr Rd Busy Max Route RR Cd Rs LR LE 
[S|E|R]  worker1 ACT OK 0 100 1 0 425 (1/sec) 0 0 0 264K (908 /sec) 1.6M 
(5.3K/sec) 0 5 worker1 0/0 298   
[S|E|R]  worker2 ACT OK 0 100 1 0 2257 (0/sec) 112 24 0 1.3M (104 /sec) 17M 
(1.3K/sec) 0 11 worker2 0/0 13277   


Greetings
Alexander Diedler


-Ursprüngliche Nachricht-
Von: Mark Thomas [mailto:ma...@apache.org] 
Gesendet: Sonntag, 31. Januar 2010 18:55
An: Tomcat Users List
Betreff: Re: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

On 31/01/2010 17:50, Alexander Diedler wrote:
 Hello,
 We spend a lot of time to investigate the mistake, but I would not be found 
 by us. We have two Virtual Machines with Windows 2003 R2 Standard Edition and 
 on every node there is a Apache 2.2.14 and Tomcat 6.0.20 (and tcnative 
 installed) with mod_jk 1.2.28 (all 32 Bit) installed.
 After a period (hours up to a day) we receive on every application a 503 
 error through the Webserver.
 The Apache seems to work fine, jkmanager, htdocs, server-info and 
 server-status can be opened and the apps seems can be accessed by HTTP 
 Connector Port 8080.
 
 Is there are any idea, what is the problem in this case? Any suggestions, 
 what we can improve to avoid this errors.

Hard to tell with out any configuration info. At a guess, more httpd
threads than AJP threads and unused connections not being closed quickly
enough. Try fixing your timeouts or use
JkOptions +DisableReuse

Mark



-
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