Re: Apache Tomcat connection question

2009-06-10 Thread Rainer Jung
On 10.06.2009 06:00, R Ravichandran wrote: > Hello, > > This is an urgent request. Any feedback is really appreciated. > > I have two web applications (let us call main app., and helper app.) running > on Tomcat with an Apache server in from of Tomcat. Both Apache and Tomcat > are running on the

Re: org.apache.tomcat.sendfile.support attribute returned via getAttribute() but name not returned via getAttributeNames()

2009-06-09 Thread Rainer Jung
On 08.06.2009 22:15, Chris Markle wrote: > Folks, > > Going to try this again since I got no reply to my first inquiry. I'd > like to log a bug report along the lines of "request getAttributeNames > method does not return all request attributes (e.g., > org.apache.tomcat.sendfile.support)". Either

Re: URL Auth Apache 2.2.11 + Tomcat 6.0.16

2009-06-09 Thread Rainer Jung
On 08.06.2009 21:49, Alexander Diedler wrote: > Hi, > > Since we modify our server to use mod_jk to serve sites there is an > error with a Tomcat Action, that requires a HTML Auth. > > If we open the URL http://www.bla.de/?action=Import in a Browser, there > is a Auth-Dialog to fill in Username a

Re: how to force tomcat to make a single istance of a servlet

2009-06-09 Thread Rainer Jung
On 08.06.2009 19:57, syed shah wrote: > Hi Christopher, > > I want to do this cause i am handling the synchronization myself and infact > i am using innodb so > i dont want multiple instance of the servlet, although i can handle multiple > threads in there. OK, then do not use "SingleThreadModel"

Re: mod_jk and stiky_sessions that are not stiky

2009-06-08 Thread Rainer Jung
On 08.06.2009 15:54, Marco Sarti wrote: > mod_jk/1.2.23 > > Hello, > > I'm trying to configure a cluster using stiky_session. This is the > relevant part of configuration: > ### > worker.node1_partition1.port=8009 > worker.node1_partition1.host=172.16.130.110 > worker.node1_partition1.type=ajp13

Re: Application Clustering

2009-06-08 Thread Rainer Jung
On 08.06.2009 13:22, Darren Kukulka wrote: > Hi Everyone, > > > > I've got a general query around application clustering in Tomcat. > > > > We've got several clusters of Tomcat 6.0.18, each consisting of 2-3 > nodes per cluster. The setup is fairly straightforward and we're using > the 'ba

Re: concurrent connections with mod_jk/apache/tomcat

2009-06-07 Thread Rainer Jung
On 07.06.2009 18:46, Jason Joseph wrote: The previously send log files show, that those .png requests are not forwarded to Tomcat. So what is actually answering them? Apache web server directly? Did you put them into the DocumentRoot? That should be much faster, than what you see. Andre - Web

Re: concurrent connections with mod_jk/apache/tomcat

2009-06-05 Thread Rainer Jung
On 06.06.2009 02:05, Rainer Jung wrote: > On 06.06.2009 01:35, Jason Joseph wrote: >> Rainer Jung wrote: >>>> JkOptions +FlushHeader +FlushPackets >>>> >>> in order to make the flush also effective for httpd. >>> >>> >>

Re: concurrent connections with mod_jk/apache/tomcat

2009-06-05 Thread Rainer Jung
On 06.06.2009 01:35, Jason Joseph wrote: > > Rainer Jung wrote: >>> JkOptions +FlushHeader +FlushPackets >>> >> >> in order to make the flush also effective for httpd. >> >> > Just realized I didn't disable caching before I did

Re: concurrent connections with mod_jk/apache/tomcat

2009-06-05 Thread Rainer Jung
On 05.06.2009 23:34, Jason Joseph wrote: > Rainer Jung wrote: >> On 05.06.2009 22:04, Christopher Schultz wrote: >> >>> Chuck, >>> >>> On 6/5/2009 1:17 PM, Caldarale, Charles R wrote: >>> >>>>> From: André Warnier [mailto:a...

Re: concurrent connections with mod_jk/apache/tomcat

2009-06-05 Thread Rainer Jung
On 05.06.2009 22:04, Christopher Schultz wrote: > Chuck, > > On 6/5/2009 1:17 PM, Caldarale, Charles R wrote: >>> From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: concurrent >>> connections with mod_jk/apache/tomcat >>> >>> The only time when a browser would fire off "simultaneous" >>> r

Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio 2005

2009-06-05 Thread Rainer Jung
On 05.06.2009 16:43, Andy Wang wrote: > Mladen, Rainer, > Thanks for pointing out the crlf thing, I discovered that myself last > night and was going to update this thread this morning but you beat me > to it. :) > > I just automatically, use the tarballs since I'm normally a Unix guy. I > figur

Re: APR is not working

2009-06-05 Thread Rainer Jung
On 05.06.2009 15:40, Mohamedin wrote: > Dear everybody, > > I am trying to install APR for tomcat 6.0.18 on debian > I did the following: > > apt-get install libapr1-dev libssl-dev > cd tomcat-native-1.1.16-src/jni/native > ./configure --with-apr=/usr/bin/apr-1-config > --with-java-home=/usr/lib/

Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio 2005

2009-06-05 Thread Rainer Jung
On 04.06.2009 01:33, Andy Wang wrote: > Hi all, > I was able to get mod_jk building fine using Makefile.vc, but couldn't > get the .dsp file loaded into Visual Studio 2005. Anyone know if > there's a trick to this, or should I just not care (it does build and > seem to work fine with the Makefile)

Re: ISAPI incorrect function

2009-06-05 Thread Rainer Jung
On 04.06.2009 23:59, dljohnson69 wrote: > Yes, tomcat is running. The IIS was shutdown by me on that log reference. > Latest log, server.xml and worker.properties here. > > workers.properties > worker.list=wlb > > worker.wlb.type=ajp13 > worker.wlb.host=localhost > worker.wlb.port=8010 > >

Re: ISAPI incorrect function

2009-06-05 Thread Rainer Jung
On 04.06.2009 19:27, dljohnson69 wrote: > The isapi.log is the only one I know of (maybe the same)let me know if the > name of any other logs you think would help. Here is the error part of the > isapi.log > > [Thu Jun 04 10:32:59.985 2009] [4272:4316] [info] > ajp_connection_tcp_get_message::jk_

Re: ISAPI incorrect function

2009-06-05 Thread Rainer Jung
On 04.06.2009 16:42, dljohnson69 wrote: > I now have a simple workers.properties and uri file with the latest 1.2.28 > redirector but no matter what I try I only get "incorrect function" returned > to the browser. 1st error in log is > [error] jk_shm_calculate_size::jk_shm.c (120): Could not get m

Re: ISAPI issues

2009-06-02 Thread Rainer Jung
ke lbps and lbws worker.lbps.type=lb worker.lbps.balance_workers=ps worker.lbws.type=lb worker.lbws.balance_workers=ws and put lbps resp. lbws behind the equal sign in the lines of uriworkermap.properties you want to be mapped to ps resp. ws. Regards, Rainer > Rainer Jung-3 wrote: >> I assume you are u

Re: jk Status not showing errors

2009-06-02 Thread Rainer Jung
On 02.06.2009 21:46, Matthew Laird wrote: > > Rainer Jung wrote: > >> Assuming that you did refresh the jkstatus display: what is your test >> client? The fact that you see OK/IDLE, but all requests go to the other >> node indicates, that you are using requests with as

Re: ISAPI issues

2009-06-02 Thread Rainer Jung
I assume you are using the latest version 1.2.28. That makes things easier to discuss. On 02.06.2009 21:53, dljohnson69 wrote: > Cool, maybe you can help more than the log files then. Are you referring to > the configuration of the workers.properties and/or the uriworkermap files or > is there so

Re: jk Status not showing errors

2009-06-02 Thread Rainer Jung
On 02.06.2009 21:40, Matthew Laird wrote: > I'm not seeing anything like that. I just took both Tomcats down, I > instantly get the 503 from Apache when I try to load the application. Assuming that there is no mod_proxy in the game. When there is a 503, you will have [error] log lines in the JK l

Re: jk Status not showing errors

2009-06-02 Thread Rainer Jung
>> QUADREM Netherlands B.V. >> Kabelweg 61, 1014 BA Amsterdam >> Post Office Box 20672, 1001 NR Amsterdam >> Office: +31 20 880 41 16 >> Mobile: +31 6 13 14 26 31 >> Fax: +31 20 880 41 02 >> >> >> >> Read our blog: Intelligent Supply Manage

Re: ISAPI issues

2009-06-02 Thread Rainer Jung
On 02.06.2009 19:42, dljohnson69 wrote: > I have a Tomcat install that is working okay but going through the > isapi_redirect it gets a "bad gateway" error. The isapi.log has errors > that says it cannot connect to tomcat, "tomcat is down or refused > connection". Any ideas?? Bad gateway plus

Re: Apache, Tomcat, Mod_JK Configurations

2009-06-01 Thread Rainer Jung
On 01.06.2009 18:30, CrystalCracker wrote: > Ok.. adding some info to mod jk logs and doing some thread and heap dumps, I > figured that, during peak traffic hours, the garbage collection gets more > frequest and takes longer. This slows down the overall system and the > threads start piling up. Re

Re: jk Status not showing errors

2009-05-30 Thread Rainer Jung
On 29.05.2009 22:50, Matthew Laird wrote: > Good afternoon, > > I've been trying to get the jkstatus component of mod_jk running, and > I'm not quite sure what I'm doing wrong in trying to have it report dead > Tomcat instances. > > I have two tomcat instances setup in a load balancer, as a test

Re: Php, tomcat, mappings and authentication.

2009-05-30 Thread Rainer Jung
On 29.05.2009 23:01, André Warnier wrote: >> Or you can use a popular filter with more options: >> http://securityfilter.sourceforge.net/ >> > Or, if you decide to do the PHP part and do it under Apache httpd, then > you could do all the authentication at the Apache httpd level, and pass > the auth

Re: User tracking/monitoring

2009-05-30 Thread Rainer Jung
On 29.05.2009 18:58, Tim Funk wrote: > Add this to your footer? > SESSION ID: ${pageContext.session.id} Beware though, that in some security sensitive contexts this is not adequate, e.g. if users print out or save pages and share those with others, session takeover is made much more simple (at lea

Re: Apache, Tomcat, Mod_JK Configurations

2009-05-28 Thread Rainer Jung
On 28.05.2009 22:05, CrystalCracker wrote: > The problem has always occured at the oddest hours for me to do a thread > dump. I have done jmeter load test and tried to recreate the problem in > test, but have never able. > I will upgrade to the latest version and then play with the connection > ti

Re: ProxyPass and client ip

2009-05-27 Thread Rainer Jung
On 28.05.2009 08:35, topcoder1 wrote: > I have an servlet application that requires to be know what the user's ip > address is. > However since it has an apache http proxy sitting in front of it, the > client's ip is always 127.0.0.1(localhost) when it reaches the servlet. How > do I resolve th

Re: Tomcat 6 - not started AJP/NIO on CentOS

2009-05-27 Thread Rainer Jung
Please share your solution, so that other people looking for help do not need to ask the same question again. On 28.05.2009 06:41, Dmitriy Repin wrote: > Dmitriy Repin wrote: >> Caldarale, Charles R wrote: >>> Post the server.xml from your CentOS attempt so we can look at it. >>> >>> - Chuck >>>

Re: Load balancer (proxy?) problem.

2009-05-27 Thread Rainer Jung
On 28.05.2009 01:42, Bill Davidson wrote: > André Warnier wrote: >> Bill Davidson wrote: >> ... >> "Our application switches between them [HTTP or HTTPS] based upon >> whether there is sensitive data in the page or not." >> >> So I guess that if you did not do that, you would not be having this >>

Re: Apache, Tomcat, Mod_JK Configurations

2009-05-27 Thread Rainer Jung
On 28.05.2009 00:25, CrystalCracker wrote: > Apache 2.2 > Tomcat 6 > Mod_jk 1.2.21 > > All of them are running on the same box. > > I have at any given time around 300 active sessions using the site, and upto > 450 at max. Each user on average logs on to the site for around 15 minutes, > and the

Re: How does Prefork work?

2009-05-27 Thread Rainer Jung
On 28.05.2009 06:34, steve rieger wrote: > I think you meant to post that to the httpd/apache list Yes, see: http://httpd.apache.org/lists.html#http-users > --Original Message-- > From: CrystalCracker > To: users@tomcat.apache.org > ReplyTo: Tomcat Users List > Subject: How does Prefork w

Re: AJP connections just stop working

2009-05-27 Thread Rainer Jung
On 27.05.2009 09:31, Guy Cube wrote: > Hello, > > We are also haveing exact same issue in our environment. We are using JBoss > 4.2.3, Apache 2.2.11 with mod_proxy_ajp using ajp to connect between Apache > and JBoss. It happens intermittently and when i happnes all AJP's TCP > connections are stay

Re: tomcat clusters

2009-05-26 Thread Rainer Jung
orkers "d1, d2, d3". Finally add "d" to worker.list and use it in some JkMounts. Regards, Rainer > 2009/5/27 Rainer Jung > >> That's not the full configuration. It can't work. >> >> On 26.05.2009 17:16, Alberto Jesus La Rosa Agram

Re: tomcat clusters

2009-05-26 Thread Rainer Jung
How did you configure your first cluster? On 26.05.2009 16:30, Alberto Jesus La Rosa Agramonte wrote: > Hello, I need to set more than two tomcat clusters. How I can configure that > in the workers.properties file on apache load balancer? --

Re: tomcat cluster - redirect parameter

2009-05-26 Thread Rainer Jung
In general you do not need to set the redirect parameter. On 26.05.2009 16:41, Alberto Jesus La Rosa Agramonte wrote: > Hi, If a don't set the redirect parameter on the workers.properties file, > how work the load balancer??? - T

Re: tomcat clusters

2009-05-26 Thread Rainer Jung
That's not the full configuration. It can't work. On 26.05.2009 17:16, Alberto Jesus La Rosa Agramonte wrote: > worker.c1.port=8009 > worker.c1.host=10.7.12.2 > worker.c1.type=ajp13 > worker.c1.lbfactor=1 > > 2009/5/27 Rainer Jung > >> How did you c

Re: Tomcat6 JNDI Realm

2009-05-26 Thread Rainer Jung
Have a look at http://www.jspwiki.org/wiki/ActiveDirectoryIntegration Regards, Rainer On 26.05.2009 12:16, Geofrey Rainey wrote: > I'm trying to setup a tomcat6 realm to authenticate against an active > directory server. I got a > > JDBC realm working okay with a MySQL database. > > > > I'

Re: mod_jk status code and loadbalancer monitoring

2009-05-23 Thread Rainer Jung
On 23.05.2009 22:04, Martin Gainty wrote: > in case anyone is following this thread > d/l httpd-devel-2.0.50-1.i386.rpm from here > http://archive.apache.org/dist/httpd/binaries/rpm/i386/ > > extract the contents by running this shell script > #!/bin/sh > rpm2cpio httpdd.rpm | cpio -idmv > > i no

Re: mod_jk status code and loadbalancer monitoring

2009-05-22 Thread Rainer Jung
anks again for your help and advice. HTH Rainer > Read our blog: Intelligent Supply Management - Your advantage > > -Original Message- > From: Rainer Jung [mailto:rainer.j...@kippdata.de] > Sent: Friday, May 22, 2009 3:10 PM > To: Tomcat Users List > Subject: Re: mod

Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-22 Thread Rainer Jung
On 22.05.2009 21:09, Pantvaidya, Vishwajit wrote: >> -Original Message- >> From: Rainer Jung [mailto:rainer.j...@kippdata.de] >> Sent: Friday, May 22, 2009 2:53 AM >> To: Tomcat Users List >> Subject: Re: Running out of tomcat threads - why many threads in

Re: AJP connections just stop working

2009-05-22 Thread Rainer Jung
yi, you should be able to use jmeter to test AJP connections >> >> -Tony >> --- >> Manager, IT Operations >> Format Dynamics, Inc. >> 303-573-1800x27 >> abia...@formatdynamics.com >> http://www.formatdynamics.com >> >

Re: NIO Connector: Too many open files

2009-05-22 Thread Rainer Jung
On 22.05.2009 15:46, Christopher Schultz wrote: > Rainer, > > On 5/22/2009 8:55 AM, Rainer Jung wrote: >> You could run a JSP including a call to System.gc(); > > Right. The JVM is out of file descriptors. I cannot deploy a new JSP > onto the server without restarting it

Re: mod_jk status code and loadbalancer monitoring

2009-05-22 Thread Rainer Jung
Hi Lawrence, I will answer in a slightly different order below. On 22.05.2009 13:58, Lawrence Lamprecht wrote: > I found a really old entry from way back in 2005. Reading through a > trail of messages under the heading "Adding working dynamically with mod_jk > status" > > What I would very much

Re: NIO Connector: Too many open files

2009-05-22 Thread Rainer Jung
Hi Chris, On 22.05.2009 14:29, Christopher Schultz wrote: >>> $ jmap -heap 1430 >>> Attaching to process ID 1430, please wait... >>> Debugger attached successfully. >>> Client compiler detected. >>> JVM version is 11.3-b02 >>> >>> using thread-local object allocation. >>> Mark Sweep Compact GC >>>

Re: NIO Connector: Too many open files

2009-05-22 Thread Rainer Jung
Hi Chris, On 22.05.2009 14:14, Christopher Schultz wrote: > Rainer, > > On 5/21/2009 12:21 PM, Rainer Jung wrote: >> 2 remarks about all your stress testing efforts: > >> A) TIME_WAIT > >> When not doing HTTP Keep-Alive, under high load the size of the TCP ha

Re: AJP connections just stop working

2009-05-22 Thread Rainer Jung
On 22.05.2009 14:09, kvancamp wrote: > One more question: With my HTTP port, I know I can always easily test it, > via my browser or scripted using wget. Anybody know of a simple > command-line utility like wget, that works with AJP? I think this would be > a good tool to have, to help diagnose A

Re: mod_proxy, Tomcat and request URL

2009-05-22 Thread Rainer Jung
On 22.05.2009 04:31, Andre-John Mas wrote: > > On 21-May-2009, at 12:32, Rainer Jung wrote: > >> On 20.05.2009 17:33, Markus Schönhaber wrote: >>> Andre-John Mas: >>> >>>> this is not the ideal setup, I don't have any control over this. At >&g

Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-22 Thread Rainer Jung
On 22.05.2009 03:54, Pantvaidya, Vishwajit wrote: >> -Original Message- >> From: Rainer Jung [mailto:rainer.j...@kippdata.de] >> Sent: Thursday, May 21, 2009 3:37 PM >> To: Tomcat Users List >> Subject: Re: Running out of tomcat threads - why many threads in

Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-21 Thread Rainer Jung
On 22.05.2009 00:19, Pantvaidya, Vishwajit wrote: > [Pantvaidya, Vishwajit] I will set > - cachesize=1 (doc says jk will autoset this value only for worker-mpm and we > use httpd 2.0 prefork) You don't have to: "JK will discover this number for the Apache web server automatically and set the pool

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-21 Thread Rainer Jung
On 21.05.2009 20:59, Pantvaidya, Vishwajit wrote: >> 3) I think I already indicated that you do not want to look at entries >> in TIME_WAIT state. This state is special and not related to any threads > > [Pantvaidya, Vishwajit] My netstat o/p had FIN_WAIT and CLOSE_WAIT, but not > TIMED_WAIT. Did

Re: "Request entity too large" when using SSO (IIS Integrated Windows authentication -Tomcat )

2009-05-21 Thread Rainer Jung
On 20.05.2009 07:20, pappu wrote: > Chuck, > > --- > > If by "Tomcat 5" you really mean "Tomcat 5.0", please be aware that 5.0 has > not been supported for quite some time. You do need to move up. > > --- > > Yes I do mean Tomcat 5.0. The reason why we are havin

Re: Making Apache httpd fallback to local file after receiving 404 from backend Tomcat?

2009-05-21 Thread Rainer Jung
On 20.05.2009 10:52, Imner, Andreas wrote: > Hi all > > I'm setting up a website using Apache webserver 2.2.11 / mod_jk 1.2.28 > (Windows Server 2000) that connects to two > backend Apache Tomcat 6.0.18 server (Windows Server 2003) with load > balancing. > The webserver also uses mod_proxy to

Re: mod_proxy, Tomcat and request URL

2009-05-21 Thread Rainer Jung
On 20.05.2009 17:33, Markus Schönhaber wrote: > Andre-John Mas: > >> this is not the ideal setup, I don't have any control over this. At >> the same time I see that using mod_proxy, by way of ProxyPass, means >> that the Tomcat server does not know what hostname was used to access >> the Apa

Re: NIO Connector: Too many open files

2009-05-21 Thread Rainer Jung
2 remarks about all your stress testing efforts: A) TIME_WAIT When not doing HTTP Keep-Alive, under high load the size of the TCP hash table and the effectiveness of the system to lookp up TCP connections can limit the throughput you can reach. More precisely, depending on the excat way of connec

Re: NIO Connector: Too many open files

2009-05-21 Thread Rainer Jung
On 21.05.2009 17:55, Christopher Schultz wrote: > All, > > I've been testing the performance of various Tomcat configurations > against Apache httpd and my serious tests are not completing for the NIO > connector because the server is running out of files: > >> May 20, 2009 2:35:55 AM org.apache.

Re: AJP connections just stop working

2009-05-21 Thread Rainer Jung
I looked at the dumps. Comments inline. On 18.05.2009 20:33, kvancamp wrote: > My problem seems to be most similar to this post. We are having intermittent > problems with the JBoss/Tomcat AJP 1.3 connector hanging. From searching > the JBoss and Tomcat user forums, other issues that are similar

Re: Processes are not showing in the JConsole

2009-05-21 Thread Rainer Jung
On 21.05.2009 14:57, Caldarale, Charles R wrote: >> From: Anamika raj [mailto:rajnam...@gmail.com] >> Subject: Processes are not showing in the JConsole >> >> the process which i want to monitor on JConsole not showing >> in the JConsole window. > > Welcome to the wonderful world of Windows "secu

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-21 Thread Rainer Jung
Trying to add some info below. On 21.05.2009 05:09, Caldarale, Charles R wrote: >> From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] >> Subject: RE: Running out of tomcat threads - why many threads in >> RUNNABLEstage even with no activity >> >> So socket_keepalive is already 1. So does

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-20 Thread Rainer Jung
On 20.05.2009 19:47, Caldarale, Charles R wrote: >> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >> Subject: RE: Running out of tomcat threads - why many threads >> inRUNNABLEstage even with no activity >> - Setting connectionTimeout in server.xml seems to have resolved

Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-20 Thread Rainer Jung
On 20.05.2009 00:53, Pantvaidya, Vishwajit wrote: >> -Original Message- >> From: Rainer Jung [mailto:rainer.j...@kippdata.de] >> Sent: Monday, May 18, 2009 11:10 PM >> To: Tomcat Users List >> Subject: Re: Running out of tomcat threads - why many threads in

Re: How to get thread dump on Tomcat 6 (windows)

2009-05-20 Thread Rainer Jung
On 20.05.2009 18:37, madhu sudhan bandari wrote: > Hi Chris, > > I have installed JDK1.6 only..is jconsole solves my problem?.. As Chris pointed out correctly, jstack *is* part of a recent version of the JDK 1.6. If you really have the JDK 1.6.0, then there is a jstack.exe in the bin folder. We

Re: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-18 Thread Rainer Jung
On 19.05.2009 02:54, Caldarale, Charles R wrote: >> From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] >> Subject: RE: Running out of tomcat threads - why many threads in >> RUNNABLEstage even with no activity >> >> Ok - so then the question is when does tomcat transition the thread >>

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-18 Thread Rainer Jung
Yes, those two look like "waiting for next request on an existing connection from the web server to Tomcat" and "sitting idle in the pool, waiting for a new connection to handle". On 18.05.2009 22:44, Pantvaidya, Vishwajit wrote: >>> [Pantvaidya, Vishwajit] Here are figures from 3 of the servers w

Re: Problems configuring mod_jk

2009-05-18 Thread Rainer Jung
On 18.05.2009 21:51, Gregor Schneider wrote: > Hi Rainer, > > On Mon, May 18, 2009 at 9:35 PM, Rainer Jung wrote: >> The error means: you told mod_jk to use it, but you forgot to define it. >> >>> All vhost-definitions within Apache are alike when it comes to t

Re: Tomcat not closing threads

2009-05-18 Thread Rainer Jung
On 18.05.2009 20:03, Chetan Chheda wrote: > HTTPd.conf : > Timeout 300 > KeepAlive On > MaxKeepAliveRequests 100 > KeepAliveTimeout 30 HTTP Keep-Alive is nice to achieve lower latency, but it will drive up the number of httpd threads you need. 100 requests and 20 seconds is for most use cases to

Re: Tomcat not closing threads

2009-05-18 Thread Rainer Jung
On 18.05.2009 16:43, Chetan Chheda wrote: > Our network team is already engaged and looking into this. We had > several instances of tomcats locking up today. I have attached one such > thread dump here .. > > Can some of you pls take a look and point me into the right direction? There are 149 T

Re: AJP connections just stop working

2009-05-18 Thread Rainer Jung
On 18.05.2009 20:33, kvancamp wrote: > My problem seems to be most similar to this post. We are having intermittent > problems with the JBoss/Tomcat AJP 1.3 connector hanging. From searching > the JBoss and Tomcat user forums, other issues that are similar to mine are: > http://marc.info/?l=tomca

Re: Problems configuring mod_jk

2009-05-18 Thread Rainer Jung
Hi Gregor, On 18.05.2009 20:07, Gregor Schneider wrote: > Hi guys, > > I'm about to update an old Tomcat-instance (5.5.quite_old) to the > latest 5.5, also I'm about to update an outdated mod_jk to the latest > version. > > The old config of mod_jk had quite some depricated directions > included

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-18 Thread Rainer Jung
On 14.05.2009 20:29, Pantvaidya, Vishwajit wrote: > I set connectionTimeout in server.xml to 60 and now the RUNNABLE > threads go back to WAITING stage after that time. > > But our other servers which are running the same configuration, same > webapp and do not have connectionTimeout set in se

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-18 Thread Rainer Jung
On 13.05.2009 23:28, Pantvaidya, Vishwajit wrote: > My setup is tomcat 5.5.17 + mod_jk 1.2.15 + httpd 2.2.2. I am using > AJP1.3. Every 2-3 days with no major load, tomcat throws the error: > "SEVERE: All threads (200) are currently busy, waiting..." > > I have been monitoring my tomcat TP-Proce

Re: Trouble building tcnative

2009-05-18 Thread Rainer Jung
On 18.05.2009 19:38, Martin Gainty wrote: > dl/l tomcat-native-1.1.16-win32-src from > http://tomcat.apache.org/download-native.cgi > Cannot open include file: 'apr.h': No such file or directory? > also i did'nt see makefile ? Assuming yoiu're asking about Windows build? It's not yet documented, b

Re: Trouble building tcnative

2009-05-18 Thread Rainer Jung
On 18.05.2009 18:03, Juha Laiho wrote: > Christopher Schultz wrote: >> I've never built tcnative before, but I'm no stranger to the standard >> UNIX source package build process. I'm having a bit of difficulty >> building this. > ... > >> ...and this is where things fall apart for me. Here's the o

Re: mod_jk: question regarding log-format

2009-05-15 Thread Rainer Jung
On 15.05.2009 18:18, Christopher Schultz wrote: > Gregor, > > On 5/15/2009 11:59 AM, Gregor Schneider wrote: >> however, in the docs >> (http://tomcat.apache.org/connectors-doc/reference/printer/apache.html) >> i can't find what %a and %b mean. > > Read more closely: > > " > The Tomcat Connector

Re: Tomcat GC threads

2009-05-14 Thread Rainer Jung
On 14.05.2009 15:29, Chetan Chheda wrote: > We are using -XX:+UseParNewGC option in our Tomcat JVMs with > -XX:ParallelGCThreads=16 on a 6 CPU system. What is the real impact > of having a higher number of GC threads than the number of CPUs? With > the 2 tomcat JVMs running on the box, would you re

Re: Peformance on socket reads

2009-05-14 Thread Rainer Jung
On 14.05.2009 14:34, David kerber wrote: > This post is a follow-on to my "performance with many small requests" > thread from a couple days ago. > > I have been watching my app, and taking thread dumps when things seem to > be running a bit slower than I would like. Right now, the biggest > bott

Re: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Rainer Jung
On 13.05.2009 08:07, Peter Crowther wrote: >> From: André Warnier [...@ice-sa.com] would it not be easier to catch >> the OOM exception and then return a "sorry, server overloaded" page >> to the browser ? > > At that point, it's too late. A thread, somewhere in the system, > tried to allocate so

Re: tomcat close_wait state and proxy error when connecting to my web application

2009-05-13 Thread Rainer Jung
On 12.05.2009 23:26, orahi001 wrote: > Hi, > > I have apache web server running on one box as a proxy server > tomcat running on another box. > > The apache server connects to application server (tomcat) via proxy passthru > parameter. The server running tomcat was recently rebooted. When it cam

Re: IE + Flash + mod_jk issue

2009-05-12 Thread Rainer Jung
On 12.05.2009 22:33, Stephen More wrote: > I have a flash application ( Macromedia Breeze Presentation ) that is > working fine when I access it directly from tomcat's port 8080. > > When I access it through apache using mod_jk, IE loads some of the > flash files, but not all. > The problem is onl

Re: problems with mod_proxy (apache 2.2.9) and tomcat ajp connector (6.0.18)

2009-05-12 Thread Rainer Jung
On 12.05.2009 15:20, Michael Biebl wrote: > 2009/5/12 André Warnier : >> Michael Biebl wrote: >>> Hi, >>> >>> first of all, I'd like to say hi, as I'm new to the list. >>> >>> I hope you can help me with the following problem I have. >>> I run a stock Debian lenny installation with apache 2.2.9 and

Re: IIS tomcat connector plugin fail to reverse proxy.

2009-05-12 Thread Rainer Jung
On 12.05.2009 01:40, eric tse wrote: > I am trying to use the IIS tomcat connector to act like a reverse proxy > > If I hit the IIS at /MWGAT > > it will forward the tomcat with /GAT > > > However I fail to do this > > In the documentation > http://tomcat.apache.org/connectors-doc/generic_howt

Re: Analyzing Tomcat related VM crash?

2009-05-12 Thread Rainer Jung
On 12.05.2009 01:13, Andre-John Mas wrote: > I have added the details to the end of this e-mail. > # SIGSEGV (0xb) at pc=0x06546578, pid=7456, tid=2349013936 > Current thread (0x08060800): GCTaskThread [stack: > 0x8bfb1000,0x8c032000] [id=7459] > Other Threads: > 0x8bd97800 VMThread [stack:

Re: Confused by mpm/mod_jk

2009-05-12 Thread Rainer Jung
On 12.05.2009 02:09, Bill Davidson wrote: >>The 150 threads do not make a good fit to your MaxClients of 256. If >>your Apache is mainly forwarding requests to Tomcat, then it doesn't >>make much sense to allow 256 parallel connections to Apace, but only 150 >>on the backend. That will result in so

Re: Confused by mpm/mod_jk

2009-05-11 Thread Rainer Jung
Hi Bill, On 11.05.2009 23:15, Bill Davidson wrote: > I'm trying to understand mpm_worker MaxCLients and it's relationship > with mod_jk connection_pool_size. > > Here's what I've got at the moment: > > OS: Red Hat 5.2 Server > httpd: 2.2.11 > tomcat-connector: 1.2.28 > tomcat: 6.0.18 > Java: 1.6

Re: IIS Redirect Issue

2009-05-10 Thread Rainer Jung
On 10.05.2009 12:43, Maze, Jeffrey S. wrote: > It's running on IIS6 and Win2k3 Server. I downloaded version .15 > through .28 and will try different versions and see if it still occurs. If it is coming from the redirector, I would expect to see heavy continuing log activity once you switch the lo

Re: Connector Issue - Tomcat 6.0/IIS 6.0

2009-05-08 Thread Rainer Jung
+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) > 200 0 0 > > > > > > > > > > Rainer Jung-3 wrote: >> Your log snippet indicates, that the request was successfully forwarded >> to Tomcat and Tomcat returned with 404. Since you left o

Re: Connector Issue - Tomcat 6.0/IIS 6.0

2009-05-07 Thread Rainer Jung
Your log snippet indicates, that the request was successfully forwarded to Tomcat and Tomcat returned with 404. Since you left out to much from the log, we can't say for sure, whether thew request in the redirector log is the same, as the 200 request in the IIS log. If you can provide access to mo

Re: jk-to-tomcat multiple retries

2009-05-06 Thread Rainer Jung
Thanks for letting us know. On 06.05.2009 19:32, Dmitry Beransky wrote: > We were finally allowed to upgrade to Tomcat 5.5.27 and that seemed to > have done away with the symptoms (I'm reluctant so say that upgrading > fixed the problem, since I don't even know what it was in the first > place ;-)

Re: what is mod_jk parameter "connection_pool_timeout" in mod_proxy / mod_proxy_ajp / apache httpd?

2009-05-06 Thread Rainer Jung
'm not aware of any module API incompatibilities. It might be somewaht more tedious to find out how to do this exactly, than to build mod_jk, because for mod_jk the build is always done against an already installed Apache httpd. Regards, Rainer > 2009/5/6 Rainer Jung > >>

Re: what is mod_jk parameter "connection_pool_timeout" in mod_proxy / mod_proxy_ajp / apache httpd?

2009-05-06 Thread Rainer Jung
8:45:20 2009] [error] (70007)The timeout specified has expired: > ajp_ilink_receive() can't receive hea > der > [Wed May 06 08:45:20 2009] [error] ajp_read_header: ajp_ilink_receive failed > [Wed May 06 08:45:20 2009] [error] (120006)APR does not understand this > error code: prox

Re: I have a problem with Apache, Tomcat

2009-05-06 Thread Rainer Jung
On 05.05.2009 22:17, nohacks wrote: > 1) Which component should respond to this request, Apache or Tomcat? > > Tomcat should answer all. I am not using Apache to server any Static > content. OK, and I assume you actually checked, that it *is* Tomcat that produces the answer in the 404 case. I fo

Re: get Mod_jk precedence over mod_rewrite in Apache2

2009-05-05 Thread Rainer Jung
On 05.05.2009 16:13, André Warnier wrote: > christophe.dumo...@ifma.fr wrote: > ... > Suggestion : > instead of using the JkMount/JkUnMount way of configuring your forwarded > URLs, use the way described here : > http://tomcat.apache.org/connectors-doc/reference/apache.html > in the section : Using

Re: get Mod_jk precedence over mod_rewrite in Apache2

2009-05-05 Thread Rainer Jung
On 05.05.2009 14:38, christophe.dumo...@ifma.fr wrote: > Hello to the list, > > Here is my context : > My apache2 server must provide a default access (http://servername/*) to > a default (Tomcat) webapps ROOT, so I configure mod_jk in apache2 like > this : JkMount / * /home/tomcat/webapps/ROOT,

Re: I have a problem with Apache, Tomcat

2009-05-05 Thread Rainer Jung
On 05.05.2009 16:12, nohacks wrote: > Hi Guys, > > Thanks for your feedback with this issue. This has been making me crazy for > such a long time. > > I have put this in last night and tested. > > > JkMount /*.jsp loadbalancer > JkMount /*.jsf loadbalancer > JkMount

Re: I have a problem with Apache, Tomcat

2009-05-04 Thread Rainer Jung
On 04.05.2009 19:50, André Warnier wrote: > Hi Chris too, and hi nohacks. > > I was not quite convinced by Chris's explanation, so I tested this by > myself. > Apache httpd 2.2.3 > mod_jk 1.2.18 (quite old) > Tomcat 5.5.27 > > In my case, URI's starting with /starweb are being redirected to Tomc

Re: Tomcat over AJP with Apache in front SSL Issues

2009-05-04 Thread Rainer Jung
On 04.05.2009 03:27, matt617 wrote: > when using apache 2.2, tomcat 5.5.20 on top of java 1.5.10+ using Apache with > Mod_SSL and Mod_Proxy to connect the Incoming http session through AJP to > Tomcat my browser repeatidly prompts me for a ceritficate. 3 times at the > beginning, then about 3 times

Re: IIS 6 Tomcat Connector isapi_redirect-1.2.28.dll not being called 404 2 1260 error

2009-05-03 Thread Rainer Jung
On 01.05.2009 22:46, FOREBACK Dianne wrote: > I cannot get IIS 6 to use the Tomcat connector to redirect requests. > I followed the directions in > http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html > configuring the registry by hand. This should be a relatively simple > task but I a

Re: Need help on Custom Accesslog

2009-05-02 Thread Rainer Jung
On 01.05.2009 22:55, Vijay wrote: > Hi, > I wanted to send a application message like "Application specific GUID" to > the accesslogs, the GUID is generated by our system and it is not general or > available in the request or the response So i was wondering if there is > any way where we can se

Re: jk-to-tomcat multiple retries

2009-05-02 Thread Rainer Jung
On 01.05.2009 18:19, Dmitry Beransky wrote: > We have the strangest problem started happening to us a few weeks ago > (after several years of running pretty much the same configuration). > > 1. The problem is only happening in the production environment. We > cannot reproduce it on staging, which

<    4   5   6   7   8   9   10   11   12   13   >