Re: Anyone build Tomcat cluster on Xen

2008-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maggie, Maggie Shao wrote: > Hi, > Does anyone build Tomcat cluster on Xen? > Is there any difference? The steps for configuration should be identical, since each OS acts as if it is a separate physical host. I'm not sure you get

Anyone build Tomcat cluster on Xen

2008-12-02 Thread Maggie Shao
Hi, Does anyone build Tomcat cluster on Xen? Is there any difference? -- Sincerely, Maggie

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

tomcat Cluster - some access port.

2008-11-18 Thread Gustavo Araujo
Guys, Is it possible to use the same port

Re: Apache / Tomcat Cluster Worker Fails and Entire Cluster becomes Unavailable

2008-11-10 Thread DHM
Hi - Based on your suggestion which I do appreciate we added timeouts for connect, pre_post and connection_pool so now the workers looks like: worker.list=loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=cbap1,cbap2 worker.loadbalancer.sticky_session=1 worker.cbap1.por

RE: Tomcat Cluster and NFS mounted webapp

2008-10-28 Thread forum123
earliest I can. -- View this message in context: http://www.nabble.com/Tomcat-Cluster-and-NFS-mounted-webapp-tp20176721p20213152.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail

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
rectory but different name > like "work1" and "work2". Each app server would get its own work > directory. > -- > View this message in context: > http://www.nabble.com/Tomcat-Cluster-and-NFS-mounted-webapp-tp20176721p20190968.html > Sent from the Tomcat

Re: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread forum123
found it... I can write a small startup script that will determine the hostname and use a different work (in the same CATALINA_BASE) directory but different name like "work1" and "work2". Each app server would get its own work directory. -- View this message in co

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

Tomcat Cluster and NFS mounted webapp

2008-10-26 Thread forum123
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? NFS will allow us to deploy updates a single time and have all Tomcat's in t

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: Apache / Tomcat Cluster Worker Fails and Entire Cluster becomes Unavailable

2008-10-14 Thread Mladen Turk
DHM wrote: Hi - worker.list=loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=cbap1,cbap2 worker.loadbalancer.sticky_session=1 worker.cbap1.port=8690 worker.cbap1.host= edited for privacy worker.cbap1.type=ajp13 worker.cbap1.lbfactor=10 worker.cbap1.socket_keepalive=1

Apache / Tomcat Cluster Worker Fails and Entire Cluster becomes Unavailable

2008-10-14 Thread DHM
Hi - Running a Single Apache Web Server (1.3.36) to 2 Tomcat App Servers (5.5.17) via mod_jk (1.2.19) on Unix Solaris. Apache Tomcat Connector setup for loadbalance which it does just fine. Issue is that when 1 Tomcat goes into error state the cluster becomes unavailable. Apache sees the 1 Tomc

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

Tomcat Cluster Deployer

2008-09-16 Thread Paul McGurn
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 I'm trying to set up an environment that is both cluste

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

Tomcat cluster (NullPointer when replicating session)

2008-08-06 Thread Lia
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 using DeltaManager (with or without sticky sessions) the cluster works fine, but for some

Re: HttpSessionListener session listener in tomcat cluster

2008-07-31 Thread Filip Hanik - Dev Lists
not at all, it just mean your HttpSessionListeners and HttpSessionAttributeListeners wont be invoked on the other servers also, you could work around the problems in another way, track logins differently Filip Pavan Singaraju wrote: If we set the "notifyListenersOnReplication" to false, will

Re: HttpSessionListener session listener in tomcat cluster

2008-07-30 Thread Pavan Singaraju
If we set the "notifyListenersOnReplication" to false, will it not cause problem if there is a load balancer at work? -- Pavan Kumar Singaraju On Wed, Jul 30, 2008 at 6:59 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED] > wrote: > Madonesa sanjaya wrote: > >> Hi, >> I have deployed my application

Re: HttpSessionListener session listener in tomcat cluster

2008-07-30 Thread Filip Hanik - Dev Lists
Madonesa sanjaya wrote: Hi, I have deployed my application on a clustered environment and used session created event to monitor the number of users login to each machine (Using SNMP MIB counters). But once a user is login to one machine counter gets updated in every machine. I believe this is du

HttpSessionListener session listener in tomcat cluster

2008-07-29 Thread Madonesa sanjaya
Hi, I have deployed my application on a clustered environment and used session created event to monitor the number of users login to each machine (Using SNMP MIB counters). But once a user is login to one machine counter gets updated in every machine. I believe this is due to session replication.

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

2008-06-24 Thread Filip Hanik - Dev Lists
jic wrote: Hello, i am having problem with tomcat cluster on the same machine... This is a config from first node: channelSendOptions="4"> className="org.apache.catalina.tribes.transport.ReplicationTransmitter" replicationMode="fastasyncqueue" compress=&quo

Tomcat cluster problem - null pointer exeptions - bad members

2008-06-23 Thread Milan Cvejic
Hello, i am having problem with tomcat cluster on the same machine... This is a config from first node: channelSendOptions="4"> className="org.apache.catalina.tribes.transport.ReplicationTransmitter" replicationMode="fastasyncqueue" compress="tr

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:

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

2008-02-22 Thread Andrew Hole
Hello guys! We are trying to test Tomcat clustering but we are getting some problems. Sometimes (Log2) everything works fine but in other cases the cluster doesn't work (Log1). The only difference is the time that we wait after we shutdown a node. When we make a request after shutdown a node, c

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
28,id={19 -115 -1 -101 8 >> 91 >> 66 -91 -112 105 -121 109 -82 11 56 50 }, payload={}, command={}, >> domain={}, >> ] >> [CLUSTERLOG] pool-2-thread-4 - INFO - 02/12/2008 10:25:11,742 - >> ThroughputInterceptor - ThroughputInterceptor Report[ >> Tx Msg:892 messages >> Sent:5,82 MB (total) >>

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

Tomcat Cluster Error - Operation has timed out

2008-02-13 Thread gp456
e:74,46 seconds Tx Speed:2,10 MB/sec (total) TxSpeed:2,10 MB/sec (application) Error Msg:0 Rx Msg:20534 messages Rx Speed:0,01 MB/sec (since 1st msg) Received:156,92 MB] ... Many thanks for your help!!! -- View this message i

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.

Tomcat Cluster

2008-02-12 Thread Andrew Hole
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. Could you help me to find why? Thanks Instance 1:

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy

2008-01-25 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy that is correct, we thought of this scenario and decided that we wouldn't support it. Not unreasonab

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: |> In fact, you still are not covered, because removing the object from the |> session merely removes the reference. If the session replicator is |> running and copying, say, a Map to another machine in the clust

RE: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy

2008-01-24 Thread Caldarale, Charles R
> From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Subject: Re: ConcurrentModificationException on tomcat > cluster with SimpleTcpClusterstrategy > > that is correct, we thought of this scenario and decided that we > wouldn't support it. Not unreasonable to av

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy

2008-01-24 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy given that the session should represent a client state, and by the time the cluster tries to serialize it, the

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-24 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | no, its just common sense, given that the session should represent a | client state, | and by the time the cluster tries to serialize it, the request is over. There's no guarantee t

RE: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy

2008-01-23 Thread Caldarale, Charles R
> From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Subject: Re: ConcurrentModificationException on tomcat > cluster with SimpleTcpClusterstrategy > > given that the session should represent a client state, > and by the time the cluster tries to serialize it, the

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | no, its just common sense, given that the session should represent a | client state, | and by the time the cluster tries to serialize it, the request is over. There's no guarantee that the request is complete

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-23 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | if you look at the stack trace, there is no error in the clustering | code. something is modifying your session attribute while the cluster is | trying to send it I'm suggesting t

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | if you look at the stack trace, there is no error in the clustering | code. something is modifying your session attribute while the cluster is | trying to send it I'm suggesting that this should not be conside

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-22 Thread Filip Hanik - Dev Lists
if you look at the stack trace, there is no error in the clustering code. something is modifying your session attribute while the cluster is trying to send it Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | the solution

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | the solution is to not store stuff in the session modified by other | threads, if that's the case, then its not really something you wanna | store in a session What's wrong with modifying something in a sessio

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread Filip Hanik - Dev Lists
the solution is to not store stuff in the session modified by other threads, if that's the case, then its not really something you wanna store in a session Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | this is not a cl

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | this is not a cluster error, basically, you are storing a map in the | session, and someone is modifying the map while the cluster is trying to | replicate it How should this be solved? The OP could really onl

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread Filip Hanik - Dev Lists
this is not a cluster error, basically, you are storing a map in the session, and someone is modifying the map while the cluster is trying to replicate it org.apache.commons.collections.LRUMap Filip LERBSCHER JEAN-PIERRE wrote: Hi, We work on Tomcat clustered server (5.5) and we have thi

ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread LERBSCHER JEAN-PIERRE
Hi, We work on Tomcat clustered server (5.5) and we have this exception in the log (at 5-10 TPS). Could you explain us what's hapenning. Have you a solution? Thanks. Exception: SEVERE: Failed to serialize the session! java.util.ConcurrentModificationException at org.apac

Re: Doubt in how lbfactor works with load balancing of Apache with Tomcat cluster

2008-01-16 Thread Shiby Maria John
h load balancing of Apache "Tomcat Users with Tomcat cluster List" <[EMAIL PROTECTED]

Re: Doubt in how lbfactor works with load balancing of Apache with Tomcat cluster

2008-01-16 Thread Rainer Jung
Mladen Turk wrote: Rainer Jung wrote: If there is no such worker, or the worker is nor usable, the request is handled like it wouldn't have a route in the session id, or no session at all. Also if there is directive sticky_session_force=true and the worker is not usable then the 503 is retu

Re: Doubt in how lbfactor works with load balancing of Apache with Tomcat cluster

2008-01-16 Thread Mladen Turk
Rainer Jung wrote: If there is no such worker, or the worker is nor usable, the request is handled like it wouldn't have a route in the session id, or no session at all. Also if there is directive sticky_session_force=true and the worker is not usable then the 503 is returned to the user. J

Re: Doubt in how lbfactor works with load balancing of Apache with Tomcat cluster

2008-01-16 Thread Rainer Jung
Doubt in how lbfactor works to with load balancing of Apache "Tomcat Users with Tomcat cluster List"

Re: Doubt in how lbfactor works with load balancing of Apache with Tomcat cluster

2008-01-15 Thread Shiby Maria John
cc Subject Please respond Re: Doubt in how lbfactor works towith load balancing of Apache "Tomcat Users with Tomcat cluster

Sticky and asynchronous sessions in Tomcat cluster

2008-01-14 Thread Shiby Maria John
Hi, I am using a set up of Tomcat cluster with 2 instances (tomcatA and tomcatB, tomcatA being the primary server and tomcatB being the standby server) under an Apache Server used for load balancing. I am using Tomcat only for failover balancing and load balancing is entirely done by apache. In

Re: Doubt in how lbfactor works with load balancing of Apache with Tomcat cluster

2008-01-14 Thread Rainer Jung
Hi Shiby, Shiby Maria John schrieb: Hi, This is my worker.properties for Apache server for clustering 3 instances of Tomcat in my machine. # The advanced router LB worker worker.list=router # Define a worker using ajp13 worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.typ

Doubt in how lbfactor works with load balancing of Apache with Tomcat cluster

2008-01-14 Thread Shiby Maria John
Hi, This is my worker.properties for Apache server for clustering 3 instances of Tomcat in my machine. # The advanced router LB worker worker.list=router # Define a worker using ajp13 worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 worker.worker1.lbfactor=1 # D

Node limit to tomcat cluster

2007-12-17 Thread Chad Kellerman
Tomcat Users, As far as horizontal scaling, is there an upper limit on the number of nodes for a tomcat cluster? I haven't seen anything in any of the documentation. I was just wondering how many nodes have people been running in a cluster? Thanks, Chad

tomcat cluster

2007-12-11 Thread Jordi Prats
Hi all, I'm getting this error on a tomcat cluster configuration: Dec 11, 2007 10:08:23 AM org.apache.catalina.cluster.tcp.FastAsyncSocketSender$FastQueueThread pushQueuedMessages WARNING: Unable to asynchronously send session with id=[F0C4C2B44AAB98DEA8AE8CF572463189-1197364103377] - me

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-10-02 Thread Filip Hanik - Dev Lists
Daniel M Garland wrote: Thanks for the response So is it better to have one cluster rather than one per host? easier to manage and troubleshoot one cluster than many. What about hosts that don't have clustering enabled? that's not a problem, clustering only applies to webapps with the eleme

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-10-02 Thread Daniel M Garland
Thanks for the response So is it better to have one cluster rather than one per host? What about hosts that don't have clustering enabled? Surely there are advantages with having a separate cluster, its listening on a different address so it would have its own message buffer etc.? My current

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-10-01 Thread Filip Hanik - Dev Lists
it would have to be the multicast address that is unique to take care of the problem, however, easier to run one cluster instance at the engine level, the cluster knows what vhost a piece of replicated data belongs to Filip Daniel M Garland wrote: OK I've figured out what's happening, but not

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-10-01 Thread Daniel M Garland
OK I've figured out what's happening, but not how to fix it! I'm running a single Tomcat instance that is hosting some virtual hosts, and we have three Tapestry web applications. For those unfamiliar with Tapestry, a Visit object is defined to represent the user's session and is sort of a faca

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-27 Thread Daniel M Garland
Hi In another thread I was advised to change my virtual host config, which has moved this problem on a little bit. I now have a manger context for each virtual host, rather than just on localhost, and these manager apps seem to report the session count; its only the localhost manager that doe

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, Daniel M Garland wrote: > Another strange thing is since this started happening I don't ever see > the session count in the manager app increase above zero, even though if > I sit in front of the webapp my session is persisted across the > cluste

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-26 Thread Daniel M Garland
Christopher Schultz wrote: Is Eclipse re-setting the serialVersionUID for each compile, or do you have one explicitly set in your code? (Meaning, does the serialVersionUID ever change?) Well in Eclipse I said 'add generated ID', but this declares a final static long that hasn't changed becaus

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel M Garland wrote: > stream classdesc serialVersionUID = -139355480548586, > local class serialVersionUID = 8444624889687850885 Hmm... those numbers are /totally/ off. I was hoping for some kind of jumbling of hex values for the two

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-25 Thread Filip Hanik - Dev Lists
you probably have some rogue java process still running somewhere with clustering enabled, Filip Daniel M Garland wrote: Hi all, I've been running two Tomcat 5.5.20 servers in a cluster for some time on Mac OSx but we've recently moved to 64-bit architecture (Debian etch) . I tried as far a

DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-25 Thread Daniel M Garland
Hi all, I've been running two Tomcat 5.5.20 servers in a cluster for some time on Mac OSx but we've recently moved to 64-bit architecture (Debian etch) . I tried as far as possible to keep the config the same, so only the OS has changed (and I also got the Apache Portable Runtime going). Howev

Re: Tracking active session in a tomcat cluster

2007-08-16 Thread Filip Hanik - Dev Lists
Tomcat 5.5 has an all-to-all replication mechanism, hence all nodes should be identical. you would only need to see the sessions on one node to get a picture of what is looks like elsewhere. there is a flag called "notifyListenersOnReplication" this is only for attribute replication for nodes

Tracking active session in a tomcat cluster

2007-08-16 Thread Vinod Venkatraman
across cluster members. Is this correct that valueBound will be called on only the cluster members which were alive when the object was put in the session ? Is there any other way I can track all active session of a cluster ? Thanks, Vinod -- View this message in context: http://www.nabble.

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
ploying first set the activation of the > > >>>> worker to stooped, which means it will no longer forward any requests > > >>>> and the load balancer will transparantly choose another worker. No > > >>>> recovery and errors. > > >>>&

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
>>> recovery and errors. > >>>> > >>>> If you use sessions without replication, you could also set a worker to > >>>> disabled before going into stopped. With disabled requests for existing > >>>> sessions will still be forwarded, but n

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
out of use. Also add timeouts to your config. We have a new docs page for 1.2.24 (which will go live tomorrow). You can have a look at it under http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/docs/jk-1.2.24/generic_howto/timeouts.html and consider using the option recovery_options. Regards, Ra

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
without sessions. > >> Depending on your session timing the target might thus get slowly out of > >> use. > >> > >> Also add timeouts to your config. We have a new docs page for 1.2.24 > >> (which will go live tomorrow). You can have a look at it under &g

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
sing the option recovery_options. Regards, Rainer ben short wrote: Hi, I have a odd issue occurring with my tomcat cluster serving ~50 lines of the page from a stopped webapp. My setup is as follows... Box 1 Apache running a jk mod loadbalancer. It loadbalances between an instance of tomcat on

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
/tomcat-connectors/jk/docs/jk-1.2.24/generic_howto/timeouts.html > > and consider using the option recovery_options. > > Regards, > > Rainer > > > ben short wrote: > > Hi, > > > > I have a odd issue occurring with my tomcat cluster serving ~50 lines > >

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
. Regards, Rainer ben short wrote: Hi, I have a odd issue occurring with my tomcat cluster serving ~50 lines of the page from a stopped webapp. My setup is as follows... Box 1 Apache running a jk mod loadbalancer. It loadbalances between an instance of tomcat on this box and on box 2. Box 2

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, I have a odd issue occurring with my tomcat cluster serving ~50 lines of the page from a stopped webapp. My setup is as follows... Box 1 Apache running a jk mod loadbalancer. It loadbalances between an instance of tomcat on this box and on box 2. Box 2 Apache running a jk mod

<    1   2   3   4   >