Re: tomcat cluster questions

2016-05-24 Thread Keiichi Fujino
Hi, 2016-05-23 18:56 GMT+09:00 Hans-Joachim Kliemeck < hans-joachim.kliem...@hays.de>: > Hey, > > > If you do not set the LocalMember, > > the implementation class of local members will become MemberImpl rather > than the StaticMember. > > In addition, you can not explicitly specify the domain an

Re: tomcat cluster questions

2016-05-23 Thread Keiichi Fujino
2016-05-19 17:55 GMT+09:00 Hans-Joachim Kliemeck < hans-joachim.kliem...@hays.de>: > Hey, > > currently i'm building up a tomcat cluster and after studying the > documentation/source some questions came up: > > Is it really necessary to add a LocalMember xml element to the > StaticMembershipInterc

Re: Tomcat cluster with static membership

2014-12-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Theo, On 12/17/14 11:22 AM, Théo Chamley wrote: > Mark, things haven't changed on Tomcat8 for the logging properties, > your configuration did work. > > In the end, I had two problems: * My client did not have a > element in his web.xml This was

Re: Tomcat cluster with static membership

2014-12-17 Thread Théo Chamley
On 2014-12-09 19:01, Mark Eggers wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/9/2014 9:48 AM, Daniel Mikusa wrote: On Tue, Dec 9, 2014 at 9:16 AM, Théo Chamley wrote: On 2014-12-08 21:22, Ameer Mawia wrote: Hi Theo, Since you are using static membership and NOT dynamic(multi

Re: Tomcat cluster with static membership

2014-12-09 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/9/2014 9:48 AM, Daniel Mikusa wrote: > On Tue, Dec 9, 2014 at 9:16 AM, Théo Chamley > wrote: > >> On 2014-12-08 21:22, Ameer Mawia wrote: >> >>> Hi Theo, >>> >>> Since you are using static membership and NOT >>> dynamic(multi-cast) which auto

Re: Tomcat cluster with static membership

2014-12-09 Thread Daniel Mikusa
On Tue, Dec 9, 2014 at 9:16 AM, Théo Chamley wrote: > On 2014-12-08 21:22, Ameer Mawia wrote: > >> Hi Theo, >> >> Since you are using static membership and NOT dynamic(multi-cast) which >> auto-detect members, my current understanding says that you will have to >> add entry of all the members of

Re: Tomcat cluster with static membership

2014-12-09 Thread Théo Chamley
On 2014-12-08 21:22, Ameer Mawia wrote: Hi Theo, Since you are using static membership and NOT dynamic(multi-cast) which auto-detect members, my current understanding says that you will have to add entry of all the members of your cluster in each of nodes server.xml. Example: My cluster has

Re: Tomcat cluster with static membership

2014-12-08 Thread Ameer Mawia
Hi Theo, Since you are using static membership and NOT dynamic(multi-cast) which auto-detect members, my current understanding says that you will have to add entry of all the members of your cluster in each of nodes server.xml. Example: My cluster has two nodes. So to configure these I had add th

Re: Tomcat cluster problems regarding multicast

2013-07-29 Thread Mark Thomas
On 29/07/2013 12:27, Willem Fibbe - Realworks BV wrote: > I'm hoping someone can provide some suggestions to identify the exact problem > (and the solution:)). This is one of those things (like SSL) where several things all need to be lined up or nothing works and debugging it is tricky. The bes

Re: tomcat cluster for stateless web application

2012-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 6/13/12 8:12 AM, Pid * wrote: > On 12 Jun 2012, at 18:22, Albert Kam > wrote: > >> I've noticed that in the documentation, it says a lot about >> session replication. >> >> I wonder what can be omitted in the configurations for a >> statele

Re: tomcat cluster for stateless web application

2012-06-13 Thread zhenek
On 06/12/2012 07:21 PM, Albert Kam wrote: I've noticed that in the documentation, it says a lot about session replication. I wonder what can be omitted in the configurations for a stateless java webapp setup (without any sessions), to hopefully get a simpler configuration or even gain more effic

Re: tomcat cluster for stateless web application

2012-06-13 Thread Pid *
On 12 Jun 2012, at 18:22, Albert Kam wrote: > I've noticed that in the documentation, it says a lot about session > replication. > > I wonder what can be omitted in the configurations for a stateless > java webapp setup (without any sessions), > to hopefully get a simpler configuration or even g

Re: Tomcat Cluster Membership establishment query

2011-02-08 Thread rajeshwar bharathi
Thanks All for the information provided. RB On Tue, Feb 8, 2011 at 4:02 PM, Konstantin Kolinko wrote: > 2011/2/6 Caldarale, Charles R : > > > >> We have a simpleTCP cluster built between 2 Tomcat 6.0.18 nodes > > > > It would be beneficial for you to move up to a newer level - that one is > over

Re: Tomcat Cluster Membership establishment query

2011-02-08 Thread Konstantin Kolinko
2011/2/6 Caldarale, Charles R : > >> We have a simpleTCP cluster built between 2 Tomcat 6.0.18 nodes > > It would be beneficial for you to move up to a newer level - that one is over > 2.5 years old, and lots and lots of fixes have gone in since then. > >> when we use another IP like 172.x.x.x the

RE: Tomcat Cluster Membership establishment query

2011-02-05 Thread Caldarale, Charles R
> From: rajeshwar bharathi [mailto:rajeshwarbhara...@gmail.com] > Subject: Tomcat Cluster Membership establishment query > To: d...@tomcat.apache.org; Tomcat Users List Don't cross-post. > We have a simpleTCP cluster built between 2 Tomcat 6.0.18 nodes It would be beneficial for you to move up

Re: Tomcat cluster error (null pointer exc ept) on NioReceiver.java:266 [Solved]

2010-11-10 Thread s.suzzi
rg Cc: Data: Tue, 26 Oct 2010 17:06:07 +0200 Oggetto: Re: Tomcat cluster error (null pointer except) on NioReceiver.java:266 > In the post before I sed why accept() returns null, so i was> investigating > in tomcat and jdk_1.6 source code, > and I found that the method accept in &

Re: Tomcat cluster error (null pointer except) on NioReceiver.java:266

2010-10-26 Thread Stefano Suzzi
In the post before I sed why accept() returns null, so i was investigating in tomcat and jdk_1.6 source code, and I found that the method accept in ServerSocketChannel.java can return null in case of non-blocking socket e no connection available. Should this be tested? and why ask for session rep

Re: Tomcat cluster error (null pointer except) on NioReceiver.java:266

2010-10-25 Thread Stefano Suzzi
Hi, thanks for reply, I was watching too the NioReceiver.java source code, and I was wondering why server.accept() does not throw an exception instead null, mha!. The java version in production is 1.6.0_20 vendor Sun 64bit. while in my devel environment is 1.6.0_11 vendor Sun 32bit. In catalina.o

Re: Tomcat cluster error (null pointer except) on NioReceiver.java:266

2010-10-22 Thread Konstantin Kolinko
2010/10/22 Stefano Suzzi : > > Hi, i've 3 tomcat 6.0.26  on 3 different IBM machines linux RedHat  el > 5, kernel.osrelease = 2.6.18-194.el5 . > > The 3 tomcat are giving an error that cannot replicate the session, > of course I cannot replicate the error in my devel systems that work > perfectly w

RE: tomcat cluster does'nt work

2010-02-19 Thread Stephane Lorin
for advice -Message d'origine- De : André Warnier [mailto:a...@ice-sa.com] Envoyé : vendredi 19 février 2010 11:21 À : Tomcat Users List Objet : Re: tomcat cluster does'nt work Stephane Lorin wrote: > Hi, > > > > I'm configuring a tomcat cluster with 3 nodes.

Re: tomcat cluster does'nt work

2010-02-19 Thread André Warnier
Stephane Lorin wrote: Hi, I'm configuring a tomcat cluster with 3 nodes. I use Tomcat 5.0.19 with jdk 1.4_2.19 Both these things are about 10 years old, and not developed nor supported anymore by their respective suppliers. That looks like a very bad way to start, and you will get very lit

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

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread CS Wong
ok, we'll try this out then. One question about the regression, would it occur if the 2 nodes are in different Solaris containers (both having different IPs) but on the same physical host? Thanks a lot! Wong On Wed, Aug 26, 2009 at 10:39 AM, Filip Hanik - Dev Lists < devli...@hanik.com> wrote:

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
hi Wong, yes, that one does implement a higher level of thread safety, and most likely would resolve your problem. With 6.0.20, there is a regression where tomcat nodes on the same host wont discover each other https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 Filip On 08/25/2009 07:22

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread CS Wong
A brief look through "svn log http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaRequest.java"; turns up this: r618823 | fhanik | 2008-02-06 07:29:56 +0800 (Wed, 06 Feb 2008) | 3 lines Remov

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread CS Wong
Thanks, Filip. I'm running 6.0.14 right now. Would you have any idea whether any changes in the code since then would have fixed something like this? I can try to push for an upgrade to 6.0.20 but the app owners would probably want to know whether it would be fixed for sure since they have to go th

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
I've taken a look at the code. The fix for this is easy, but it doesn't explain why it happens. This is a concurrency issue, but if you're not running the latest tomcat version, then it could already have been fixed. best Filip On 08/25/2009 01:55 AM, CS Wong wrote: Hi Michael, The logs are

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
what version of Tomcat, and we will get it fixed On 08/25/2009 12:22 AM, CS Wong wrote: Periodically, I'm getting problems with my Tomcat 6 cluster (2 nodes). One of the nodes would just go haywire and generate a ton of logs repeating the following: Aug 25, 2009 11:44:10 AM org.apache.catalina.

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread CS Wong
Hi Michael, The logs are the bit that went haywire. The applications at this point still work but often, there's not enough time to troubleshoot much else. The logs can increase by 5-6GB in a matter of an hour or so and hence, we often just kill the service (normal shutdown.sh doesn't respond any m

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Michael Ludwig
CS Wong schrieb: Periodically, I'm getting problems with my Tomcat 6 cluster (2 nodes). One of the nodes would just go haywire Could you elaborate on what "going haywire" means? Below, you write: [The NoSuchElementException is] the only thing that it shows. The other node in the cluster is s

Re: Tomcat cluster on Windows 7 RC

2009-06-15 Thread Sergey Elin
Hi, yes it is 6.0.20. I just downgrade to 6.0.18 and it seems to work. Thanks! 2009/6/15 Filip Hanik - Dev Lists : > you could be running into this regression > https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 > if you are using 6.0.20, otherwise you may not have multicasting configured >

Re: Tomcat cluster on Windows 7 RC

2009-06-15 Thread Filip Hanik - Dev Lists
you could be running into this regression https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 if you are using 6.0.20, otherwise you may not have multicasting configured Filip Sergey Elin wrote: Hi, I'm trying to setup a simple 2-node tomcat cluster on Windows 7 RC. Everything works fine

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 Cluster Deployment without WAR

2009-05-14 Thread Caldarale, Charles R
> From: Alexander Diedler [mailto:adied...@tecracer.de] > Subject: AW: Tomcat Cluster Deployment without WAR > > No info about Deployment of Apps without war-Files? Just what's in the doc. But if you don't bother to tell us something useful, such as the Tomcat version, then it's rather difficul

RE: Tomcat Cluster Deployment without WAR

2009-05-13 Thread Peter Crowther
> From: Alexander Diedler [mailto:adied...@tecracer.de] > WatchDir is F:\inetpub\wwwroot if there is something changed, > it should be deployed to all other cluster nodes. If you're on Windows, why not use the built-in file replication to replicate changes between the nodes rather than use Tom

Re: Tomcat Cluster issue

2009-05-08 Thread Filip Hanik - Dev Lists
my guess is that when you store a hibernate object in your session, it doesn't transfer well, Filip dhanesh kk wrote: List, I am trying a transparent failover cluster with 2 separate TC-6.0.8 nodes with a apache2.2 node as LoadBalancer with mod_proxy_ajp JDK 1.5.0_15 and platform De

Re: tomcat Cluster - some access port.

2008-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gustavo, Gustavo Araujo wrote: > Is it possible to use the same port protocol="HTTP/1.1" > > In two different cluster nodes? Are the nodes binding to separate IP addresses? > When i put both ones in 8080 they don't balance the requests. What beh

RE: Tomcat Cluster and NFS mounted webapp

2008-10-28 Thread forum123
Caldarale, Charles R wrote: > > > Look at the workDir attribute of the and elements. > > By the way, you might want to consider moving up to a more recent 5.5 > version (5.5.27 is current). Lots of fixes have gone in since 5.5.12 was > released over three years ago. > > - Chuck > > It

RE: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread Caldarale, Charles R
> From: forum123 [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat Cluster and NFS mounted webapp > > How do I set so that just the "work" directory is different > per instance? Look at the workDir attribute of the and elements. By the way, you might want to consider m

Re: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread Serge Fonville
Even though I have little experience with tomcat clusteringFor this situation I would specify one work directory in the config files (located on nfs) that points to a local directory that way everything can be shared except the work directory Hope this helps Regards, Serge Fonville On Mon, Oct

Re: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread forum123
markt-2 wrote: > > > Sharing the bin, common, server, shared and webapps directories is fine. > Sharing conf could be OK if you are careful > Sharing logs, temp and work is likely to cause problems. > > Did you look into using CATALINA_HOME/CATALINA_BASE? > > Yes, we use CATALINA_HOME/CATAL

Re: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread Mark Thomas
forum123 wrote: > We're setting up a simple Tomcat cluster using Tomcat 5.5.12. There will be > initially 2 Tomcat instances on 2 physical Linux servers in this cluster. > Is mounting a shared NFS folder appropriate for this? Sharing the bin, common, server, shared and webapps directories is fin

Re: Tomcat Cluster Deployer

2008-10-20 Thread János Löbb
2008 4:02 PM To: Tomcat Users List Subject: Re: Tomcat Cluster Deployer Paul McGurn wrote: Thanks Mark. I'll work at actually translating this into real documentation and examples. As far as patching, I'm not qualified to do that, but I'd be willing to take a crack at it

Re: Tomcat Cluster Deployer

2008-09-18 Thread Mark Thomas
] > Sent: Tuesday, September 16, 2008 4:02 PM > To: Tomcat Users List > Subject: Re: Tomcat Cluster Deployer > > Paul McGurn wrote: >> Thanks Mark. >> >> I'll work at actually translating this into real documentation and examples. >> As far as patching

RE: Tomcat Cluster Deployer

2008-09-17 Thread Paul McGurn
cGurn -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 4:02 PM To: Tomcat Users List Subject: Re: Tomcat Cluster Deployer Paul McGurn wrote: > Thanks Mark. > > I'll work at actually translating this into real documentation and exam

Re: Tomcat Cluster Deployer

2008-09-16 Thread Mark Thomas
e all the source for the docs is in xml not html. Mark > > Paul McGurn > > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 16, 2008 3:50 PM > To: Tomcat Users List > Subject: Re: Tomcat Cluster Deployer > > Paul McGurn w

RE: Tomcat Cluster Deployer

2008-09-16 Thread Paul McGurn
-- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 3:50 PM To: Tomcat Users List Subject: Re: Tomcat Cluster Deployer Paul McGurn wrote: > Is there any (complete) documentation on the Cluster Deployer? The official > documentation doesn't actually say anything

Re: Tomcat Cluster Deployer

2008-09-16 Thread Mark Thomas
Paul McGurn wrote: > Is there any (complete) documentation on the Cluster Deployer? The official > documentation doesn't actually say anything about it (or let alone anything > useful at all...): > http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html The source code is probably

Re: Tomcat cluster (NullPointer when replicating session)

2008-08-07 Thread Filip Hanik - Dev Lists
In Tomcat 6, use DeltaManager or BackupManager Filip Lia wrote: Hi everybody, <<...>> <<...>> I am using - Tomcat 6.0.18 ( but I’ve also tested the same scenario with Tomcat 6.0.16 and Tomcat 6.0.14 and I got the same problem); - in cluster ( two machines); - on Debian x64, 4.0. When us

Re: Tomcat cluster problem - null pointer exeptions - bad members

2008-06-24 Thread Filip Hanik - Dev Lists
you should add the TcpFailureDetector interceptor into the stack, as well as the async interceptor these should be defined before your static membership interceptor. you might also want to add in TCP ping interceptor, before both of the above one className="org.apach

Re: Tomcat Cluster -> node02 is invalid, removed or not replicated at this node.

2008-02-22 Thread Andrew Hole
Thanks. Some more questions: -- In a scenario with two nodes, if I shutdown one, the other is instantly ready to receive and respond to requests, or it is necessary to wait a while? In a procuction scenario we cannot wait, because requests are frequently. -- The 35 seconds refers to the initial ti

Re: Tomcat Cluster -> node02 is invalid, removed or not replicated at this node.

2008-02-22 Thread Peter Rossbach
HI Andrew, Your mcastDropTime="1000" is to low. Please set it to 3 and it is true that you must wait > 35 sec before you can restart a cluster node. Use the Java Service Wrapper or add this to your start scripts to configure this. Peter Am 22.02.2008 um 11:48 schrieb Andrew Hole:

Re: Tomcat Cluster Error -

2008-02-21 Thread Filip Hanik - Dev Lists
gp456 wrote: thanks for your reply. first the fix you mentioned is not in the current tomcat release (6.0.16). Since I have to build/patch the tomcat for a productive environment what whould you recommend: patch the 6.0.16 sources or build tomcat from the newest trunk? either or, they haven'

Re: Tomcat Cluster Error -

2008-02-21 Thread gp456
thanks for your reply. first the fix you mentioned is not in the current tomcat release (6.0.16). Since I have to build/patch the tomcat for a productive environment what whould you recommend: patch the 6.0.16 sources or build tomcat from the newest trunk? We've ran another test and encountered

Re: Tomcat Cluster

2008-02-14 Thread Juha Laiho
Andrew Hole wrote: I have both tomcat instances on the same machine, and tcpListenPort are different on both server.xml: instance 1 setuped with 9016 and instance 2 with 9017. When I stop one of tomcats, the other is notified properly with the following message: 12-Feb-2008 11:19:57 org.apache.

Re: Tomcat Cluster

2008-02-13 Thread David Rees
On Feb 13, 2008 12:08 AM, Andrew Hole <[EMAIL PROTECTED]> wrote: > On Feb 13, 2008 7:23 AM, David Rees <[EMAIL PROTECTED]> wrote: > > Have you tried starting with a minimal configuration and then adding > > options as you deem necessary? > > What you consider the minimal configuration? See the doc

Re: Tomcat Cluster Error - Operation has timed out

2008-02-13 Thread Filip Hanik - Dev Lists
you already asked this question, and I already answered. http://marc.info/?l=tomcat-user&m=120290898727190&w=2 Filip gp456 wrote: Hello, we have a similar problem as Raul Garcia has posted in http://www.nabble.com/Tomcat-6---Cluster-error.-to14921385.html#a14921385 this message, but we're

Re: Tomcat Cluster Error -

2008-02-13 Thread Filip Hanik - Dev Lists
[CLUSTERLOG] NioReceiver - WARN - 02/12/2008 17:34:23,895 - NioReceiver - Channel key is registered, but has had no interest ops for the last 3000 ms. (canc elled:false):[EMAIL PROTECTED] last access:2008-02-12 17:34:17.957 and finally: this message most likely indicates that the thread pool hand

Re: Tomcat Cluster

2008-02-13 Thread David Brown
Maybe Dave means to just run one Tomcat instance. There is in the TC doco info about the minimalist TC if memory serves. Since you are attempting a type of load-balancing it would serve you well to reply with a lot more info about your overall architecture: OS: vendor, build version, updates (s

Re: Tomcat Cluster

2008-02-13 Thread Andrew Hole
What you consider the minimal configuration? On Feb 13, 2008 7:23 AM, David Rees <[EMAIL PROTECTED]> wrote: > On Feb 12, 2008 10:59 AM, Andrew Hole <[EMAIL PROTECTED]> wrote: > > I've the following configuration on server.xml for two different > instances > > of tomcat (on the same server). BUT,

Re: Tomcat Cluster

2008-02-12 Thread David Rees
On Feb 12, 2008 10:59 AM, Andrew Hole <[EMAIL PROTECTED]> wrote: > I've the following configuration on server.xml for two different instances > of tomcat (on the same server). BUT, i don't know why, session replication > doesn't work. > Could you help me to find why? Have you tried starting with a

Re: Tomcat Cluster

2008-02-12 Thread Andrew Hole
Hi! I have both tomcat instances on the same machine, and tcpListenPort are different on both server.xml: instance 1 setuped with 9016 and instance 2 with 9017. When I stop one of tomcats, the other is notified properly with the following message: 12-Feb-2008 11:19:57 org.apache.catalina.cluster

Re: Tomcat Cluster

2008-02-12 Thread David Brown
Dumb question: is everything supposed to be defined on the same IP (loopback?) and port? Andrew Hole wrote .. > Hello guys! > > I've the following configuration on server.xml for two different instances > of tomcat (on the same server). BUT, i don't know why, session replication > doesn't work.

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-08-02 Thread ben short
Rainer, I setup a test httpd + loadbalancer with jk 1.2.24 and could reproduce the problem over and over again. Then I patched the source and have been unable to reproduce the problem with the patched mod_jk.so. So the patch looks good. Regards Ben On 8/1/07, ben short <[EMAIL PROTECTED]> wrot

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-08-01 Thread ben short
I'll give it ago first thing tomorrow, well after a cup of tea :) On 8/1/07, Rainer Jung <[EMAIL PROTECTED]> wrote: > hi Ben, > > could you try the following patch for 1.2.24: > > http://people.apache.org/~rjung/mod_jk-dev/patches/fail-on-status.patch > > I guess you can build the module yourself

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-08-01 Thread Rainer Jung
hi Ben, could you try the following patch for 1.2.24: http://people.apache.org/~rjung/mod_jk-dev/patches/fail-on-status.patch I guess you can build the module yourself (it's easy: configure --with-apxs=PATHTOAPXS; make; make install). Now simply download the source of 1.2.24 and use the patch

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-08-01 Thread ben short
Sure for stable operation, but what if the machine reboots, tomcat starts up and your webapp doesn't for some reason. This situation could occur then. Many thanks for your help with this one. Regards Ben On 8/1/07, Rainer Jung <[EMAIL PROTECTED]> wrote: > Hi Ben, > > I think I understand the pr

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-08-01 Thread Rainer Jung
Hi Ben, I think I understand the problem now, and it is a jk bug. For stable operation you should really use the disable/stop feature. Nevertheless I'm starting thinking about how to fix this in a good way. The bug has to do with the new "fail on status" feature you use. It is not very old,

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-31 Thread ben short
>> Is length 1090 correct?`So does the full body have that length? Yes firefox reports that the page is 1k in size, via the web developer's tool bar. I have seen it happen in IE 6 and 7 also. Would it be possible for me to email you directly the output of wireshark for both one bad and one good a

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-31 Thread Rainer Jung
ben short wrote: Ok I have used wireshark and see that the request is sent to the apache httpd. The next first packet i get back contains the following... HTTP/1.1 200 OK Date: Tue, 31 Jul 2007 14:57:25 GMT Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a mod_jk/1.2.23 Content-Length: 10

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-31 Thread ben short
Ok I have used wireshark and see that the request is sent to the apache httpd. The next first packet i get back contains the following... HTTP/1.1 200 OK Date: Tue, 31 Jul 2007 14:57:25 GMT Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a mod_jk/1.2.23 Content-Length: 1090 ***NOTE every

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-31 Thread Rainer Jung
You could dig deeper into two different directions: - protocol: is the content-length in the response headers correct? Or does it use chunked transfer, and is this OK? - sniff the network in front of the apache: do the packets actually get send back to the browser? Regards, Rainer ben sh

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-31 Thread ben short
I'm not getting anywhere with this :( I have set the logging to trace for mod_jk and I can see all the response packets. I have also turned on our applications response logging and can see that the running webapp writes the full page to the response. I can then see it all in the mod_jk logs. But t

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-31 Thread Rainer Jung
ben short wrote: I have altered the code to write out which webapp generated the page to the html, so i can see where the partial responses are comming from. What I see is I stop the webapp on box 2. I make a request and I see part of the page. The html shows that the partial page was gener

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-31 Thread ben short
I have altered the code to write out which webapp generated the page to the html, so i can see where the partial responses are comming from. What I see is I stop the webapp on box 2. I make a request and I see part of the page. The html shows that the partial page was generated by the running

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-31 Thread ben short
Rainer, Thanks for that. Yes we are going for a mix of both really. But I'll run some bench marks against both sticky and none sticky to see how it gets on. Yes in production if we want to stop/undeploy/deploy a webapp we will set the worker status to stopped. This issue came up as more of a what

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-30 Thread Rainer Jung
Using sticky sessions will allow only requests without sessions to be balanced freely. If you've either got many sessions, or your sessions are relatively short, than load balancing will statistically still good. Only in case of few long lasting sessions, you could experience the problem, that

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-30 Thread ben short
So how does setting sticky sessions to true and the default value for the Load Balancing Directive 'method' (defaults to request) interact then? On 7/30/07, Rainer Jung <[EMAIL PROTECTED]> wrote: > Apart from all the other things I wrote: don't turn off session > stickyness, even if you use repli

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-30 Thread Rainer Jung
Apart from all the other things I wrote: don't turn off session stickyness, even if you use replication. Turn it off only, if you've got a really good reason. The fact that switching the backend between requests is possible with replication should not lead to the assumption, that it is a good i

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-30 Thread ben short
Hi Rainer, By shutdown I mean I have clicked the 'stop' link on the tomcat manager page. Im also using session replication between the two tomcats. I have just tried turning off firefoxes cache and I see the same result. On 7/30/07, Rainer Jung <[EMAIL PROTECTED]> wrote: > Hi Ben, > > I don't k

Re: Tomcat cluster serving ~50 lines of the page when a request hits a stopped webapp for the first time

2007-07-30 Thread Rainer Jung
Hi Ben, I don't know what exactly you mean by "shutdown", but mod_jk has no memory/cache/buffer for parts or all of an earlier response. It does buffer parts of a request for reusing it during failover, but not with responses and not between different requests. If the webapp is not available

Re: tomcat cluster and maven2?

2007-07-20 Thread Filip Hanik - Dev Lists
Kristian Rink wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; still all along considering switching our application environment to tomcat6, I wonder whether there is a meaningful way of deploying a web application to multiple tomcats / a tomcat cluster using maven2? FarmWarDeployer

Re: Tomcat Cluster problem. skipping state transfer. No members active in cluster group

2006-10-26 Thread hotszkin
It works, thank you very much Peter. I just can't figure why? It's tricky. Anyway, it works. HoTszKin - Original Message - From: "Peter Rossbach" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, October 27, 2006 12:41 AM Subject: Re: To

Re: Tomcat Cluster problem. skipping state transfer. No members active in cluster group

2006-10-26 Thread Peter Rossbach
0 U 0 00 lo [EMAIL PROTECTED] bin]# exit Script done on Thu 26 Oct 2006 03:42:43 PM CST Any suggestion? HoTszKin - Original Message - From: "Peter Rossbach" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, October 26,

Re: Tomcat Cluster problem. skipping state transfer. No members active in cluster group

2006-10-26 Thread hotszkin
3 PM CST Any suggestion? HoTszKin - Original Message - From: "Peter Rossbach" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, October 26, 2006 2:00 PM Subject: Re: Tomcat Cluster problem. skipping state transfer. No members active in clu

Re: Tomcat Cluster problem. skipping state transfer. No members active in cluster group

2006-10-25 Thread Peter Rossbach
I think you have a network routing problem. Read the cluster help: http://tomcat.apache.org/faq/cluster.html Regards Peter Am 25.10.2006 um 06:20 schrieb hotszkin: I am trying to setup a tomcat cluster as told in the tomcat cluster document. There are 3 PCs in my environment. All of them

RE: Tomcat Cluster

2006-08-02 Thread Tim Lucia
It means only one of the two tomcats has a context named /edac. You need to either deploy the edac.war on the 2nd tomcat, or use the farm deployer feature of the cluster. Tim > -Original Message- > From: Ralf Schneider [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 01, 2006 6:29 PM

Re: Tomcat Cluster

2006-08-01 Thread Filip Hanik - Dev Lists
it means that server-A has the webapp /edac but server-B doesn't. and server B is receiving messages, and ignoring them doesn't mean its an error, only if you expect both servers to have the webapp. This is not the case if one server is starting up and has not deployed the app yet Filip Ralf S

Re: Tomcat cluster Questions

2006-03-30 Thread Filip Hanik - Dev Lists
talk to your operations team or sys admins, in conjunction you will come up with a solution that works for you. ie, you can deploy the webapp in a shared directory on the san, and have all tomcats read it from there, its up to you FM wrote: Hello everybody, Next month, we'll have 6 servers co

Re: Tomcat cluster and redirecting to the same address

2006-03-17 Thread Peter Rossbach
We mark all SessionID with a node marker! Setup with The mod_jk or mod_proxy_ajp make then the correct routing. The algo extract the worker name from cookie or url rewrite parameter jsessionid. Read Cluster Doc and mod:jk doc http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html