Re: Trouble editing .html and .jsp

2009-05-18 Thread Gregor
in eclipse it's also possible to set file-associations. to figure out how it actually works, you might want to ask in the (approriate) eclipse mailinglist rgds gregor Am 18.05.2009 um 08:27 schrieb Dola Woolfe : Hi, In a recent email, I asked how to make Eclipse treat html files and j

RE: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-18 Thread Peter Crowther
> From: Arijit Sarkar Job Gmail [mailto:arijit.k.sar...@gmail.com] > So If I have an web application deployed on tomcat and windows XP pro, > theoretically, unlimited users can connect to the application > simultaneously? > Tomcat or Windows XP does not place any limits to that? There are no limit

RE: Tomcat ReadTimout on Http post

2009-05-18 Thread czeno2002
Caldarale, Charles R wrote: > >> From: czeno2002 [mailto:czeno2...@yahoo.com] >> Subject: Tomcat ReadTimout on Http post >> >> I'm experiencing a really ugly readtimout problem in the production >> system started a couple of days ago. The main problem is that there >> is no way to reproduce it

maxwait in dbconnetion is not workiing for first time.

2009-05-18 Thread S Arvind
This time i have problem in maxwait. To test the maxwait i tried to establish the connection and close. My dbserver is located outside my system, so for dbconnection network is required as per our Production server model. So first i established the connection first from the jsp page, it gets done.

Re: Change thread name of HTTP worker threads at Runtime

2009-05-18 Thread Rainer Frey (Inxmail GmbH)
On Friday 15 May 2009 16:58:55 Caldarale, Charles R wrote: > > From: Rainer Frey (Inxmail GmbH) [mailto:rainer.f...@inxmail.de] > > Subject: Re: Change thread name of HTTP worker threads at Runtime > > > > I just read this up. It says "should ensure". How strong this is > > sepends on whether this

Re: How to refer to file?

2009-05-18 Thread David Smith
Dola Woolfe wrote: > Hi, > > Within a .jsp document, is there a way of referring to a file in same > directory? > > For example, new java.io.File(ThisDir, "FileName.txt"). > > Thanks, > > Dola > > > > > - > To unsubscribe,

Re: Byte Serving PDF in Tomcat 5.5 bundled with Jboss 4.0.3SP1

2009-05-18 Thread Pid
Kapil Bansal wrote: > Hi Pid, > Thanks for the reply,the PDF is already being generated before it is passed > to the servlet, in the Servlet they are just attaching a end user specif > Watermark to the PDF .So when the end user tries to view the PDF ,he has to > wait for the full file to download

RE: maxwait in dbconnetion is not workiing for first time.

2009-05-18 Thread Martin Gainty
means your session to TC is still live suggest attenuate connectionTimeout in connector config in server.xml in code you can always session.invalidate() http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate() Martin Gainty I have not failed. I've just

Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Last week, I decided to actually run my own performance measurements. Before I waste a lot of time benchmarking, I wanted to vet my methodology so I get all the data worth taking. I'm using ApacheBench 2.3 (ships with httpd 2.2.10) as my benchma

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Apache httpd vs Tomcat static content performance > > I will be comparing an out-of-the-box prefork MPM httpd 2.2.10 > configuration against an out-of-the-box Tomcat 5.5.26 Coyote, APR, and > APR without sendfile configur

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Peter Crowther
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > 1. Is the number of requests (100, sufficient? It seems to take >forever on this machine... my Coyote tests took longer than >overnight. You want enough tests that they're sensitive to statistically significant differ

Trouble building tcnative

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, 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. I'm starting with the bin/tomcat-native.tar.gz that comes with Tomcat 5.5.26 which ends up bei

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Martin Gainty
the apache httpd may cry foul because you are testing with a prefork config instead of worker assuming you can scare up another processor is there a way to run the same httpd test suite with apache worker? assuming the definition data_transfer_rate is accurate http://en.wikipedia.org/wiki/Trans

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/18/2009 10:33 AM, Peter Crowther wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 1. >> Is the number of requests (100, sufficient? It seems to take >> forever on this machine... my Coyote tests took longer th

RE: Tomcat not closing threads

2009-05-18 Thread Martin Gainty
some documentation: http://httpd.apache.org/docs/2.0/mod/mpm_common.html MaxClients: The MaxClients directive sets the limit on the number of simultaneous requests that will be served. Any connection attempts over the MaxClients limit will normally be queued, up to a number based on the Listen

Re: How to refer to file?

2009-05-18 Thread Juha Laiho
Hello, by that logic, when you edit a file with Word, the default save location should be the directory where the Word binary is located. The "current directory" with servlet applications is rather weakly defined - and for very strict adherence to servlet specification you shouldn't even expect t

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 5/18/2009 10:47 AM, Martin Gainty wrote: > the apache httpd [crowd] may cry foul because you are testing with a > prefork config instead of worker assuming you can scare up another > processor I'm happy to re-run the tests using a worker M

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/18/2009 11:23 AM, Christopher Schultz wrote: > Chuck, Er, Peter. Sorry 'bout that. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkoRgJYACgkQ

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Peter Crowther
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > I suppose I could gauge each test so it would take (roughly) a certain > amount of time (say, 10 minutes). At least then I'd know how long the > entire battery would take :) I think that's probably a better approach. > Okay. My o

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Robin Wilson
I'm curious by your comment that Coyote/APR is performing on par with httpd, from the results in your first message I saw it was a pretty big difference. Or are you saying that wasn't using APR? Also, I'd be curious about the big disparity between the 16MiB files and the other 1MiB-32MiB files.

Re: Tomcat not closing threads

2009-05-18 Thread Chetan Chheda
So what you are suggesting is my mod_jk and tomcat parameters in server.xml are messed up .. Here is my current setup I have one apache load balancing to 2 tomcat workers Maxclients = 512 ThreadsPerChild = 256 Connection_pool_size = 256 Tomcat MaxThreads = 150 I will suggest my team to chang

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/18/2009 10:32 AM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Apache httpd vs Tomcat static content performance >> >> I will be comparing an out-of-the-box prefork MPM httpd

Re: Trouble building tcnative

2009-05-18 Thread Juha Laiho
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 output of > configure (apologies for any bad line

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 5/18/2009 11:37 AM, Peter Crowther wrote: >> I suppose I could gauge each test so it would take (roughly) a certain >> > amount of time (say, 10 minutes). At least then I'd know how long the >> > entire battery would take :) > > I think tha

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 5/18/2009 11:35 AM, Robin Wilson wrote: > I'm curious by your comment that Coyote/APR is performing on par with > httpd, from the results in your first message I saw it was a pretty > big difference. Or are you saying that wasn't using APR?

Re: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 5/18/2009 3:19 AM, Peter Crowther wrote: >> From: Arijit Sarkar Job Gmail [mailto:arijit.k.sar...@gmail.com] So >> If I have an web application deployed on tomcat and windows XP >> pro, theoretically, unlimited users can connect to the appli

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread David kerber
Peter Crowther wrote: ... As a rough first cut, vmstat 5 and watch the numbers ;-). iostat too, if you can. If CPU isn't pegged at 100% and the disk isn't at full capacity, that's an interesting result as it implies the box has spare capacity and there's contention elsewhere - often lock co

Re: Tomcat not closing threads

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chetan, On 5/18/2009 10:43 AM, 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 .. It looks like all your request pro

Re: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-18 Thread David kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 5/18/2009 3:19 AM, Peter Crowther wrote: From: Arijit Sarkar Job Gmail [mailto:arijit.k.sar...@gmail.com] So If I have an web application deployed on tomcat and windows XP pro, theoretically, unlimited users

mod_jk emptysessionpath and jvmroute replacement

2009-05-18 Thread jhoare
Hi, our app currently relies on using the attribute emptysessionpath=true on the ajp connector due to having most of our urls not containing the context path of our web app. We are having trouble with the jvmroute switching as the Tomcat code doesn't appear to check if the jvmroute is valid for

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

running tomcat5 -- as a service under 64-bit windows?

2009-05-18 Thread w...@serensoft.com
Hi folks -- Short version: how to get Tomcat5 to run as a service under 64-bit Windows 2003? Long version: Okay, we've got Tomcat5 running from the command-line within 64-bit Windows 2003 Enterprise (and cannot use tomcat 6/java 6 for our project) -- and now we're working to get it running as a

RE: Trouble building tcnative

2009-05-18 Thread Martin Gainty
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 ? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confide

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

2009-05-18 Thread Pantvaidya, Vishwajit
Hi Chris, Thanks for your reply. > > On 5/13/2009 5:28 PM, Pantvaidya, Vishwajit wrote: > > My setup is tomcat 5.5.17 + mod_jk 1.2.15 + httpd 2.2.2. I am using > > AJP1.3. > > Old versions of everything. Consider upgrading? > [Pantvaidya, Vishwajit] Yes, sure - we will upgrade at some poin

Re: Tomcat not closing threads

2009-05-18 Thread Chetan Chheda
HTTPd.conf : Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 30 ThreadLimit    512 StartServers   100 MaxClients 512 MinSpareThreads    129 MaxSpareThreads    256 ThreadsPerChild    256 MaxRequestsPerChild  0 Workers.properties: njipuplmapp01:/opt/hpws

Problems configuring mod_jk

2009-05-18 Thread Gregor Schneider
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, so I changed them (opefully) according to the doc I found here:http://t

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Dillon Sellars
> Also, I'd be curious about the big disparity between the 16MiB files > and the other 1MiB-32MiB files... It looks like all of them are > relatively consistent at the KiB/sec rates you show - but suddenly > there's a huge burst of speed on the 16MiB file (for httpd). So I'd > be really curious to

Re: AJP connections just stop working

2009-05-18 Thread kvancamp
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=tomcat-user&m=116231271819840&w=2 http://www.nabb

RE: Tomcat not closing threads

2009-05-18 Thread Martin Gainty
need to know if Apache MPM prefork or Apache worker is configured $APACHE_HOME/bin/Apache -l *any compiled-in modules with 'mpm' in the module-name is prefork* *any compiled-in modules with 'worker' in the module-name is worker* Martin Gainty __ Verz

Re: Tomcat not closing threads

2009-05-18 Thread Chetan Chheda
Apache is using worker mpm Server version: Apache/2.0.59  HP-UX_Apache-based_Web_Server Server built:   Aug 21 2007 13:59:06 Server's Module Magic Number: 20020903:12 Server loaded:  APR 0.9.12, APR-UTIL 0.9.12 Compiled using: APR 0.9.12, APR-UTIL 0.9.12 Architecture:   64-bit Server compiled with

Re: Tomcat, , and context.xml

2009-05-18 Thread Mark Thomas
Greg Allen wrote: > I am trying to use ApacheDS 1.5 with Tomcat 5.5.17. Try a later version. You may be hitting multiple bugs that have since been fixed. > Now this really confuses me. Why is it using JAASRealm? That's not > configured The JAAS Realm is the default Realm Tomcat falls back to i

RE: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-18 Thread Arijit Sarkar Job Gmail
This link on Microsoft specifies this very issue.. http://support.microsoft.com/kb/314882 It also says " The connection limit refers to the number of redirector-based connections and is enforced for any file, print, named pipe, or mail slot session. The TCP connection limit is not enforced, but

Re: running tomcat5 -- as a service under 64-bit windows?

2009-05-18 Thread Mark Thomas
w...@serensoft.com wrote: > Plus, the mofidied/64-bit-savvy tomcat5w.exe which is supposed to set > parameters for the service, complains that 'tomcat5' doesn't exist. When you install the service you have to name it tomcat5. It is a 'feature' of that service wrapper that for a service XXX the bin

Re: Trouble building tcnative

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 5/18/2009 1:11 PM, Rainer Jung wrote: > you'll find a download of 1.1.16, which builds exactly like the 1.1.12 > you were already trying to use (configure et.al.). Yup, I already did this: no problems with the 1.1.16 version (the README fi

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: running tomcat5 -- as a service under 64-bit windows? SOLVED

2009-05-18 Thread will trillich
Figured it out! "How to run TOMCAT 5 as a SERVICE when running under WINDOWS 64-bit" (enterprise 2003 in our case, but presumably this would apply to other 64-bit windows implementations): Tomcat v5 is 32-bit, which won't run as a service under Java 64-bit. The advice at http://www.nabble.com/r

Re: maxwait in dbconnetion is not workiing for first time.

2009-05-18 Thread S Arvind
Martin , i think its not session, since i tried same thing in wget, first time with network connection is working fine. but without network connection , status is keep on waiting for response. I think linux wget will have session management or any i think. will be any other probs.. i cant use sessi

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, After reading some of your feedback, I've decided to make some changes: - - Using TC 6.0.18 exclusively instead of 5.5 - - Using tcnative 1.1.16 instead of 1.1.12 - - Using httpd 2.2.11 instead of 2.2.10 - - Running tests for a certain amount of

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: 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

never mind :)

2009-05-18 Thread w...@serensoft.com
We just got Tomcat 5 to work as a service on windows 64-bit, woo hoo! (see email with subject "running tomcat5 -- as a service under 64-bit windows? SOLVED".) We thought we had another new snag, but there's just a firewall or network issue. We now return you to your regularly scheduled email. :)

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: 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: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vishwajit, On 5/18/2009 2:01 PM, Pantvaidya, Vishwajit wrote: > Yes, sure - we will upgrade at some point of > time. But since upgrading all our servers will be some work, that may > not happen right away. Upgrading mod_jk is the least painful of all

Re: Problems configuring mod_jk

2009-05-18 Thread Gregor Schneider
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 the >> jk-specs, thus I'm just posting a sample vhost-definition: >> >> >>     [ ...] >

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: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arijit, On 5/18/2009 3:12 PM, Arijit Sarkar Job Gmail wrote: > This link on Microsoft specifies this very issue.. > http://support.microsoft.com/kb/314882 Interesting: " For Windows XP Professional, the maximum number of other computers that are pe

RE: Tomcat not closing threads

2009-05-18 Thread Martin Gainty
good to know With worker mpm the connection_pool_size defaults to ThreadsPerChild ThreadsPerChild that in the final gives the MaxClients connections to the Tomcat. So the default value for connection_pool_size is always ThreadsPerChild For threaded and hybrid servers (e.g. beos or worker) Ma

RE: never mind :)

2009-05-18 Thread Martin Gainty
congratulations a previously unsolved mystery has been solved what was the solution? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaen

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: never mind :)

2009-05-18 Thread will trillich
Tomcat is listening on 0.0.0.0:80 but not responding on the public interface. Works fine for localhost and the 10.*.*.* address, but not the public IP. Can't say it's been solved, but it's not a tomcat issue, there's something else gone awry. On Mon, May 18, 2009 at 3:02 PM, Martin Gainty wrote

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 the >>> jk-specs, thus I'm just posti

RE: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Robin Wilson
Thanks! This information isn't useless... Of course, more detailed results, after a longer test run would be more conclusive. This appears to show that Apache is slightly faster (~4% or so) for files over 16KiB than Tomcat APR, and materially faster (~44% or more) than all other configurations

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

2009-05-18 Thread Pantvaidya, Vishwajit
> [Pantvaidya, Vishwajit] Here are figures from 3 of the servers which have > not yet run out of threads (so the thread count does not add up to 200). I > have taken these late at night when no users are present, so I was > expecting all threads to be Waiting for tomcat thread-pool. > > 1. Total

Tomcat better on single or multi core?

2009-05-18 Thread johnrock
I will be deploying a spring/hibernate web app using Tomcat 6, dbcp and MySql5.1. I must decide on my initial tomcat dedicated deployment server configuration and am looking for some advice: (I am starting with one dedicated Tomcat server..will scale in time) Based on budget, the affordable opt

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 5/18/2009 4:11 PM, Robin Wilson wrote: > Thanks! This information isn't useless... Of course, more detailed > results, after a longer test run would be more conclusive. Yup, that's the plan. Tonight, I'll be running with an 8 minute test to

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

2009-05-18 Thread Caldarale, Charles R
> From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] > Subject: RE: Running out of tomcat threads - why many threads in > RUNNABLEstage even with no activity > > [Pantvaidya, Vishwajit] Posting the thread dumps for the above 3 cases, The list usually filters out attachments, as it has do

RE: Tomcat better on single or multi core?

2009-05-18 Thread Caldarale, Charles R
> From: johnrock [mailto:johnpi...@yahoo.com] > Subject: Tomcat better on single or multi core? > > Which processor configuration do you think would > benefit tomcat more? It's not Tomcat you have to think about - it's your webapp, and the expected usage thereof. If the webapp is CPU bound but

Re: Tomcat better on single or multi core?

2009-05-18 Thread George Sexton
You haven't given any pricing information. I guess if it were me and the prices were all equal, I would go for the Quad-Core. If prices were not equal, I would go for the dual core. johnrock wrote: I will be deploying a spring/hibernate web app using Tomcat 6, dbcp and MySql5.1. I must deci

Changing default context path

2009-05-18 Thread Yaakov Chaikin
Hi, I am trying to deploy a WAR with a custom context path. For some reason, Tomcat still defaults to the WAR file name as the context path... What I am doing is placing context.xml inside the blah.war under META-INF/context.xml. Here are the contents of context.xml: **

RE: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Robin Wilson
I don't know if I'd call a 4% difference a "dead heat"... I guess that would depend on how many of those files you are serving a day... If I had 25 servers all working full-throttle all day, 4% would be enough to require 1 more server. If my peak load exceeds the necessary threshold, 4% could me

RE: Changing default context path

2009-05-18 Thread Caldarale, Charles R
> From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com] > Subject: Changing default context path > > Tomcat still defaults to the WAR file name as the context path... That's how it's defined to work. The path attribute is not allowed except in circumstances that are strongly discouraged. Chan

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Peter Lin
If you need to serve static files for a high volume website, you're better off paying a specialty provider for it. Back when I worked at verizon, we used Akamai for static files like images etc. serving up a ton of large static files quickly swamps your bandwidth, so the question isn't whether tha

Re: Problems configuring mod_jk

2009-05-18 Thread André Warnier
Gregor, 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, so I changed them (opefully) accordi

RE: Apache httpd vs Tomcat static content performance[Revised/Updated]

2009-05-18 Thread Caldarale, Charles R
> From: Robin Wilson [mailto:rwil...@kingsisle.com] > Subject: RE: Apache httpd vs Tomcat static content > performance[Revised/Updated] > > I don't know if I'd call a 4% difference a "dead heat"... Given the likely variability of any measurements taken in an 8-second run, even 10% or 15% would h

RE: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Apache httpd vs Tomcat static content performance > [Revised/Updated] > > After reading some of your feedback, I've decided to make some changes: > > - - Using TC 6.0.18 exclusively instead of 5.5 > - - Using tcnativ

Re: Tomcat better on single or multi core?

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 5/18/2009 4:17 PM, johnrock wrote: > Based on budget, the affordable options I have to choose from appear to be: > 1 single core @3Ghz > or > 1 dual core @~2.1Ghz > or > 1 Quad core @~2.1Ghz What are the types of cores? Are any of them h

Re: Changing default context path

2009-05-18 Thread Yaakov Chaikin
Hmm... the documentation seems to disagree with you: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html Take a look at 5th bullet. I am just trying to figure out why that doesn't seem to work for me. Yaakov. On Mon, May 18, 2009 at 4:34 PM, Caldarale, Charles R < chuck.caldar...@unisys

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

2009-05-18 Thread Pantvaidya, Vishwajit
> > [Pantvaidya, Vishwajit] Here are figures from 3 of the servers which > have > > not yet run out of threads (so the thread count does not add up to 200). > I > > have taken these late at night when no users are present, so I was > > expecting all threads to be Waiting for tomcat thread-pool

Re: running tomcat5 -- as a service under 64-bit windows?

2009-05-18 Thread will trillich
On Mon, May 18, 2009 at 2:12 PM, Mark Thomas wrote: > When you install the service you have to name it tomcat5. It is a > 'feature' of that service wrapper that for a service XXX the binarie > smust be named XXX.exe and XXXw.exe Just learned this today: if you install the tomcat service as "serv

RE: Changing default context path

2009-05-18 Thread Caldarale, Charles R
> From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com] > Subject: Re: Changing default context path > > Take a look at 5th bullet. Take a look at the description of the path attribute, which you seem to be ignoring: "The value of this field must not be set except when statically defining a C

RE: running tomcat5 -- as a service under 64-bit windows?

2009-05-18 Thread Caldarale, Charles R
> From: will trillich [mailto:trill...@gmail.com] > Subject: Re: running tomcat5 -- as a service under 64-bit windows? > > if you install the tomcat service as "service.bat install yadaboing" > then you can configure it via "tomcat5w //ES//yadaboing" Or you can rename the tomcat5.exe and tomcat5w

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/18/2009 4:40 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Apache httpd vs Tomcat static content performance >> [Revised/Updated] >> >> After reading some of your feedbac

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread André Warnier
Chris, what do the numbers represent ? You say you ran each test for 10 seconds, so I guess the numbers are not the seconds it took, so what are they ? I also wonder about the numbers, for example in the first column (httpd). They seem to grow more or less lineraly as the file size increase

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/18/2009 4:56 PM, André Warnier wrote: > You say you ran each test for 10 seconds, so I guess the numbers are not > the seconds it took, so what are they ? They are transfer Rate (KiB/sec) as measured by ApacheBench. > I also wonder about

Re: Changing default context path

2009-05-18 Thread Yaakov Chaikin
On Mon, May 18, 2009 at 4:46 PM, Caldarale, Charles R wrote: > > > From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com] > > Subject: Re: Changing default context path > > > > Take a look at 5th bullet. > > Take a look at the description of the path attribute, which you seem to be > ignoring: >

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: Tomcat not closing threads

2009-05-18 Thread Chetan Chheda
Hi martin,  Thanks for your reply but you have left me confused Since Apache is setup as below Maxclients = 512 ThreadsPerChild = 256 Wont it restrict the processes to 2 processes with 256 threads each instead of the ServerLimit(16) ? Looking at the OS , I see 2 httpd processes each with 25

Re: Changing default context path

2009-05-18 Thread Pid
Caldarale, Charles R wrote: > The path attribute is not allowed except in circumstances that are strongly > discouraged. Can I suggest an amendment to the documentation as follows: - If you specify a context path of an empty string (""), you are - defining the default web application for this

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

2009-05-18 Thread Pantvaidya, Vishwajit
> -Original Message- > From: Rainer Jung [mailto:rainer.j...@kippdata.de] > Sent: Monday, May 18, 2009 2:43 PM > To: Tomcat Users List > Subject: Re: Running out of tomcat threads - why many threads in RUNNABLE > stage even with no activity > > Yes, those two look like "waiting for next re

RE: Changing default context path

2009-05-18 Thread Caldarale, Charles R
> From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com] > Subject: Re: Changing default context path > > So, is it telling me that I can place bla.xml into META-INF > directory with a tag in it and the context path > will change to /bla? I tried that and it didn't work. No, when inside the web

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

2009-05-18 Thread Caldarale, Charles R
> From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] > Subject: RE: Running out of tomcat threads - why many threads in > RUNNABLEstage even with no activity > > From whatever I have read on this, it seems to me that this could > happen if a servlet writes something to a response stream,

JNDI

2009-05-18 Thread daniel steel
hi all, i am pretty sure this has been hashed out many times but i could not get clear guidelines on how to accomplish JNDI Realm + tomcat 6 + windows AD. I have got JNDI Realm + tomcat 6 + windows AD integration with basic authentication. as domain password is passed in clear text from browser

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

2009-05-18 Thread Pantvaidya, Vishwajit
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Monday, May 18, 2009 4:02 PM > To: Tomcat Users List > Subject: RE: Running out of tomcat threads - why many threads in > RUNNABLEstage even with no activity > > > From: Pantvaidya, Vishwajit [mai

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

2009-05-18 Thread Caldarale, Charles R
> 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 from Running to Waiting? Does that happen after > AJP dr

RE: JNDI

2009-05-18 Thread Martin Gainty
http://www.mbaworld.com/docs/realm-howto.html#JNDIRealm When a standard realm authenticates by retrieving the stored password and comparing it with the value presented by the user, you can select digested passwords by specifying the digest attribute on your element. The value for this attribute

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 >>