Re: WAS: tomcat 5.0.16 Replication

2004-01-14 Thread jean-philippe . belanger
Ok here is what is going on.
Seams like the problem is not with the tomcat replication but with the 
damned JK balancer. :(

When the 2nd tomcat node is shutdown, the balancer resend all the 
request pending to the other node. (BUT, without the parameter.)
I sent 50 request to each node (or so) when I did shutdown the 2nd node, 
the first node received 50 request without a couple of ms. All of them 
with NULL parameters (without the value of the original form post)

God this ain't good. hopefully in production we are using a Cisco load 
balancer. Hope it doesn't do that too.

Any idea of what is wrong with the balancer worker? Any other way to 
work random balancing with tc/apache?

Thanks a lot

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

if you have a test case for me I can take a look and see what happens

Filip

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: WAS: tomcat 5.0.16 Replication

2004-01-14 Thread Filip Hanik
I just either http://siag.nu/pen/ (my favorite, works on both windows and
unix)

or balance http://balance.sourceforge.net on unix only

Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 6:09 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication


Ok here is what is going on.
Seams like the problem is not with the tomcat replication but with the
damned JK balancer. :(

When the 2nd tomcat node is shutdown, the balancer resend all the
request pending to the other node. (BUT, without the parameter.)
I sent 50 request to each node (or so) when I did shutdown the 2nd node,
the first node received 50 request without a couple of ms. All of them
with NULL parameters (without the value of the original form post)

God this ain't good. hopefully in production we are using a Cisco load
balancer. Hope it doesn't do that too.

Any idea of what is wrong with the balancer worker? Any other way to
work random balancing with tc/apache?

Thanks a lot

Jean-Philippe Bélanger
CGI



Filip Hanik wrote:

if you have a test case for me I can take a look and see what happens

Filip




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WAS: tomcat 5.0.16 Replication

2004-01-14 Thread jean-philippe . belanger
Already ahead of you on this one! :) Pen is great indeed.

I kinda love the load-balancing  AND failover feature that 
balance.sourceforge doesn`t have.

Jean-Philippe Bélanger
CGI
Filip Hanik wrote:

I just either http://siag.nu/pen/ (my favorite, works on both windows and
unix)
or balance http://balance.sourceforge.net on unix only

Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 6:09 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication
Ok here is what is going on.
Seams like the problem is not with the tomcat replication but with the
damned JK balancer. :(
When the 2nd tomcat node is shutdown, the balancer resend all the
request pending to the other node. (BUT, without the parameter.)
I sent 50 request to each node (or so) when I did shutdown the 2nd node,
the first node received 50 request without a couple of ms. All of them
with NULL parameters (without the value of the original form post)
God this ain't good. hopefully in production we are using a Cisco load
balancer. Hope it doesn't do that too.
Any idea of what is wrong with the balancer worker? Any other way to
work random balancing with tc/apache?
Thanks a lot

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

 

if you have a test case for me I can take a look and see what happens

Filip



   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread jean-philippe . belanger
Still checking to make sure it ain't on my side (MVC or such)

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

interesting, never seen that, let me take a look. I have an automated test
that I run to check replication integrity.
since you get this everytime, it shouldn't be a problem for me to do
reproduce this.
do you by any chance have the test program you have and would email it to
me?
Filip
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:56 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication
I understand that. Here more info...

I make a servlet request that does this:
while ( i  25 ) {
   if ( request.getParameters(xxx) == null ) {
  System.out.println(param is null);
   }
   Thread.currentThread().sleep(1000);
   i++
}
I then send a couple of request with param xxx=123 at 1 secs interval.
(those request are all made to the same server ie: web1)
Once a couple of them are sent I shutdown web2.
As soon as the INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://10.1
28.29.66:4001,10.128.29.66,4001,
alive=6576] message is received my log gets flooded with param is null
Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

 

the way the login is done, is that a request is being saved in the session
(in a session note, and that is not replicated).
So for a login, you must hit the same server twice in a row. Otherwise you
will see NULL in your request parameters. Also in this release, the
principal is not being replicated, I am working on that right now
Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:29 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication
Been working on testing the new modules and came across something weird.
Wondering if you got any idea on the cause/problem while I continue
investigating
Scenario:
- one web page login in a user. receive 3 parameters (user, password and
community)
- To be able to replicate the problem I had to put a sleep on 25 secs in
code.
- Post one request each second or so and after a couple of them, shudown
one tomcat and restart it. (stop/start sequence)
- A couple of request will start pourring the result, but after some..
when tomcat that got shutdown is restarting, the request parameters
becomes NULL.
As if the replication code was killing my request objects or resetting
my parameters on those requests. Any thought on what it could be?
I even had session mix-up once. when restarting a tomcat a user was
logging in and was assigned a session from another user that never
logged on from his station (that session was idle for more than 10 hours
too).
Just trying to pinpoint where the problem could be. Any pointer would help.

Thanks

Jean-Philippe Bélanger
CGI
Filip Hanik wrote:



   

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,
replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it
 

works for
 

you
You will notice the improvement under load.
of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST
 

2003 i686

   

i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux
java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
same on both

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
 

GNU/Linux
 

[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar

Re: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread Giuliano Gavazzi
This is the kind of behaviour that I really 
cannot understand. Makes archiving a pain and is 
totally inconsiderate.

At 8:23 am -0500 2004/01/13, [EMAIL PROTECTED] wrote:
Still checking to make sure it ain't on my side (MVC or such)

Jean-Philippe Bélanger
CGI
[25kB of inessential quote]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread jean-philippe . belanger
And your reply is better? 
I'm trying to get that replication thing working with Filip. If there is 
something imcompatible with his code that make this behavior happens. I 
will try and find it before giving him the job. He's not the only one 
that has to work with this. I'm offering my help. I'm not gonna waste 
more time with you since you don't help us in any with our problem.

Jean-Philippe Bélanger
CGI
Giuliano Gavazzi wrote:

This is the kind of behaviour that I really cannot understand. Makes 
archiving a pain and is totally inconsiderate.

At 8:23 am -0500 2004/01/13, [EMAIL PROTECTED] wrote:

Still checking to make sure it ain't on my side (MVC or such)

Jean-Philippe Bélanger
CGI
[25kB of inessential quote]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread Ralph Einfeldt
He didn't critique that you posted, just how.

He doesn't like posts with quotes that are not 
needed. (That's the attitude of many in the list (me too))

Please try to strip of the quotes that are not 
relevant for your answer.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 13, 2004 3:42 PM
 To: Tomcat Users List
 Subject: Re: WAS: tomcat 5.0.16 Replication
 
 And your reply is better? 
 I'm trying to get that replication thing working with Filip. 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread jean-philippe . belanger
Well then... Sorry about misunderstanding.
I'll try to remove my thousand of quotes now! :P and keep only the last one
Jean-Philippe Bélanger
CGI
Ralph Einfeldt wrote:

He didn't critique that you posted, just how.

He doesn't like posts with quotes that are not 
needed. (That's the attitude of many in the list (me too))

Please try to strip of the quotes that are not 
relevant for your answer.

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread jean-philippe . belanger
I've tried to replicate the problem with a simple servlet. outside of 
our MVC architecture (controller). and seams like I can't.

I've put traces in our controller on the doPost method writing the 
request parameter to the console.
When the 2nd node is shutdown, they request params become nulls! even if 
the same Post is done from a local static webpage.

I've been trying to find out why for hours. but seams like I'm getting a 
dead-end soon.
any ideas where I could look? fresh ideas would help! :)

Jean-Philippe Bélanger
CGI
Filip Hanik wrote:

interesting, never seen that, let me take a look. I have an automated test
that I run to check replication integrity.
since you get this everytime, it shouldn't be a problem for me to do
reproduce this.
do you by any chance have the test program you have and would email it to
me?
Filip
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:56 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication
I understand that. Here more info...

I make a servlet request that does this:
while ( i  25 ) {
   if ( request.getParameters(xxx) == null ) {
  System.out.println(param is null);
   }
   Thread.currentThread().sleep(1000);
   i++
}
I then send a couple of request with param xxx=123 at 1 secs interval.
(those request are all made to the same server ie: web1)
Once a couple of them are sent I shutdown web2.
As soon as the INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://10.1
28.29.66:4001,10.128.29.66,4001,
alive=6576] message is received my log gets flooded with param is null
Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

 

the way the login is done, is that a request is being saved in the session
(in a session note, and that is not replicated).
So for a login, you must hit the same server twice in a row. Otherwise you
will see NULL in your request parameters. Also in this release, the
principal is not being replicated, I am working on that right now
Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:29 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication
Been working on testing the new modules and came across something weird.
Wondering if you got any idea on the cause/problem while I continue
investigating
Scenario:
- one web page login in a user. receive 3 parameters (user, password and
community)
- To be able to replicate the problem I had to put a sleep on 25 secs in
code.
- Post one request each second or so and after a couple of them, shudown
one tomcat and restart it. (stop/start sequence)
- A couple of request will start pourring the result, but after some..
when tomcat that got shutdown is restarting, the request parameters
becomes NULL.
As if the replication code was killing my request objects or resetting
my parameters on those requests. Any thought on what it could be?
I even had session mix-up once. when restarting a tomcat a user was
logging in and was assigned a session from another user that never
logged on from his station (that session was idle for more than 10 hours
too).
Just trying to pinpoint where the problem could be. Any pointer would help.

Thanks

Jean-Philippe Bélanger
CGI
Filip Hanik wrote:



   

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,
replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it
 

works for
 

you
You will notice the improvement under load.
of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST
 

2003 i686

   

i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux
java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
same on both

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
 

GNU/Linux
 

[EMAIL

Re: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread Filip Hanik
hmm, could it be that your Request gets invalidated,

the Request you are holding on to is just a fascade.
On top of my head, I can't see a connection with the cluster.
Does your logs indicate anything else, like a null pointer etc?
Filip
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 9:24 AM
Subject: Re: WAS: tomcat 5.0.16 Replication


I've tried to replicate the problem with a simple servlet. outside of
our MVC architecture (controller). and seams like I can't.

I've put traces in our controller on the doPost method writing the
request parameter to the console.
When the 2nd node is shutdown, they request params become nulls! even if
the same Post is done from a local static webpage.

I've been trying to find out why for hours. but seams like I'm getting a
dead-end soon.
any ideas where I could look? fresh ideas would help! :)

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

interesting, never seen that, let me take a look. I have an automated test
that I run to check replication integrity.
since you get this everytime, it shouldn't be a problem for me to do
reproduce this.
do you by any chance have the test program you have and would email it to
me?
Filip


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread jean-philippe . belanger
That's the catch. Everything is A ok. no error what soever before I get 
a null params.
Would an invalidated request still had the getRemoteAddr() and 
getRequestURI() set?

And if so... how can I know if a REQUEST gets invalidated??

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

hmm, could it be that your Request gets invalidated,

the Request you are holding on to is just a fascade.
On top of my head, I can't see a connection with the cluster.
Does your logs indicate anything else, like a null pointer etc?
Filip
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 9:24 AM
Subject: Re: WAS: tomcat 5.0.16 Replication
I've tried to replicate the problem with a simple servlet. outside of
our MVC architecture (controller). and seams like I can't.
I've put traces in our controller on the doPost method writing the
request parameter to the console.
When the 2nd node is shutdown, they request params become nulls! even if
the same Post is done from a local static webpage.
I've been trying to find out why for hours. but seams like I'm getting a
dead-end soon.
any ideas where I could look? fresh ideas would help! :)
Jean-Philippe Bélanger
CGI
Filip Hanik wrote:

 

interesting, never seen that, let me take a look. I have an automated test
that I run to check replication integrity.
since you get this everytime, it shouldn't be a problem for me to do
reproduce this.
do you by any chance have the test program you have and would email it to
me?
Filip
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: WAS: tomcat 5.0.16 Replication

2004-01-13 Thread Filip Hanik
if you have a test case for me I can take a look and see what happens

Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 11:12 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication


That's the catch. Everything is A ok. no error what soever before I get
a null params.
Would an invalidated request still had the getRemoteAddr() and
getRequestURI() set?

And if so... how can I know if a REQUEST gets invalidated??

Jean-Philippe Bélanger
CGI



Filip Hanik wrote:

hmm, could it be that your Request gets invalidated,

the Request you are holding on to is just a fascade.
On top of my head, I can't see a connection with the cluster.
Does your logs indicate anything else, like a null pointer etc?
Filip
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 9:24 AM
Subject: Re: WAS: tomcat 5.0.16 Replication


I've tried to replicate the problem with a simple servlet. outside of
our MVC architecture (controller). and seams like I can't.

I've put traces in our controller on the doPost method writing the
request parameter to the console.
When the 2nd node is shutdown, they request params become nulls! even if
the same Post is done from a local static webpage.

I've been trying to find out why for hours. but seams like I'm getting a
dead-end soon.
any ideas where I could look? fresh ideas would help! :)

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:



interesting, never seen that, let me take a look. I have an automated test
that I run to check replication integrity.
since you get this everytime, it shouldn't be a problem for me to do
reproduce this.
do you by any chance have the test program you have and would email it to
me?
Filip




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread jean-philippe . belanger
That sounds good.

I'll get the CVS head and check this out. We won't really put much 
stress on those server for a while, but as long as the behavior is the 
same. I buy! :)

btw: is there a pool config or is it hardcoded for now?

Thanks again Filip.

Jean-Philippe Belanger

Filip Hanik wrote:

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,
replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it works for
you
You will notice the improvement under load.
of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686
i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux
java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
same on both

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head
Hrmmmare yours SMP servers? Could be something odd with synch if that is
the case.
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Now that's really very strange. I am running RH9 and everything seems to go
through just fine.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:56 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
The replication message ACK never get back to the sender.
So my webpages never loads without that flag.
I think it is only needed under REDHAT 9.

Jean-Philippe Bélanger

Steve Nelson wrote:

 

I don't seem to need the ld_assume_kernel thing. What are the symptoms when
it is required?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:33 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
Just tried the CVS head and everything works with any CPU going crazy!
only if ld_assume_kernel is set to 2.4
One more question for you Filip, is the useDirtyFlag working at all? It
seams like even if it's set to true, the whole session gets replicated
after each request. :(
Jean-Philippe

[EMAIL PROTECTED] wrote:



   

Hurray for Fillip! :)

I'll get the CVS head for the module today and test this out.
Happy to see that it got fixed that quickly!
Thanks again and I'll let you know how it goes

Jean-Philippe

Filip Hanik wrote:



 

Jean-Philippe and Steve,
I fixed the bug, and tried replication on RH9. Immediately it didn't
work.
The problem is that when RH9 tries to write the ACK back to the NIO
socket,
it never reaches the other node. and times out after a long time.
I set LD_ASSUME_KERNEL=2.4 and it started to work

Filip

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 6:43 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
ok guys,
good news. The 100% cpu is totally my fault. I messed up on that one.
I was registering OP_WRITE as an interest
this is not good :)
checking in the working code in 15 min, some more regression tests
Filip
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED

Re: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread Jeanfrancois Arcand
BTW you can get the nightly build here:

http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/

Instead of building tomcat from scratch :-)

-- Jeanfrancois

[EMAIL PROTECTED] wrote:

That sounds good.

I'll get the CVS head and check this out. We won't really put much 
stress on those server for a while, but as long as the behavior is the 
same. I buy! :)

btw: is there a pool config or is it hardcoded for now?

Thanks again Filip.

Jean-Philippe Belanger

Filip Hanik wrote:

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,
replicationMode=pooled

With this setting it still is synchronized replication, but uses a 
pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it 
works for
you
You will notice the improvement under load.

of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 
2003 i686
i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 
2003
i686 i686 i386 GNU/Linux

java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
same on both

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 
GNU/Linux

[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head
Hrmmmare yours SMP servers? Could be something odd with synch if 
that is
the case.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Now that's really very strange. I am running RH9 and everything seems 
to go
through just fine.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:56 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
The replication message ACK never get back to the sender.
So my webpages never loads without that flag.
I think it is only needed under REDHAT 9.

Jean-Philippe Bélanger

Steve Nelson wrote:

 

I don't seem to need the ld_assume_kernel thing. What are the 
symptoms when
it is required?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:33 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
Just tried the CVS head and everything works with any CPU going crazy!
only if ld_assume_kernel is set to 2.4
One more question for you Filip, is the useDirtyFlag working at all? It
seams like even if it's set to true, the whole session gets replicated
after each request. :(
Jean-Philippe

[EMAIL PROTECTED] wrote:



  

Hurray for Fillip! :)

I'll get the CVS head for the module today and test this out.
Happy to see that it got fixed that quickly!
Thanks again and I'll let you know how it goes

Jean-Philippe

Filip Hanik wrote:





Jean-Philippe and Steve,
I fixed the bug, and tried replication on RH9. Immediately it didn't
work.
The problem is that when RH9 tries to write the ACK back to the NIO
socket,
it never reaches the other node. and times out after a long time.
I set LD_ASSUME_KERNEL=2.4 and it started to work

Filip

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 6:43 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
ok guys,
good news. The 100% cpu is totally my fault. I messed up on that one.
I

Re: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread jean-philippe . belanger
Been working on testing the new modules and came across something weird.
Wondering if you got any idea on the cause/problem while I continue 
investigating

Scenario:
- one web page login in a user. receive 3 parameters (user, password and 
community)
- To be able to replicate the problem I had to put a sleep on 25 secs in 
code.
- Post one request each second or so and after a couple of them, shudown 
one tomcat and restart it. (stop/start sequence)
- A couple of request will start pourring the result, but after some.. 
when tomcat that got shutdown is restarting, the request parameters 
becomes NULL.

As if the replication code was killing my request objects or resetting 
my parameters on those requests. Any thought on what it could be?
I even had session mix-up once. when restarting a tomcat a user was 
logging in and was assigned a session from another user that never 
logged on from his station (that session was idle for more than 10 hours 
too).

Just trying to pinpoint where the problem could be. Any pointer would help.

Thanks

Jean-Philippe Bélanger
CGI
Filip Hanik wrote:

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,
replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it works for
you
You will notice the improvement under load.
of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686
i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux
java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
same on both

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head
Hrmmmare yours SMP servers? Could be something odd with synch if that is
the case.
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Now that's really very strange. I am running RH9 and everything seems to go
through just fine.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:56 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
The replication message ACK never get back to the sender.
So my webpages never loads without that flag.
I think it is only needed under REDHAT 9.

Jean-Philippe Bélanger

Steve Nelson wrote:

 

I don't seem to need the ld_assume_kernel thing. What are the symptoms when
it is required?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:33 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
Just tried the CVS head and everything works with any CPU going crazy!
only if ld_assume_kernel is set to 2.4
One more question for you Filip, is the useDirtyFlag working at all? It
seams like even if it's set to true, the whole session gets replicated
after each request. :(
Jean-Philippe

[EMAIL PROTECTED] wrote:



   

Hurray for Fillip! :)

I'll get the CVS head for the module today and test this out.
Happy to see that it got fixed that quickly!
Thanks again and I'll let you know how it goes

RE: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread Steve Nelson

I had an instance where an ACK message timed out after 15ms and it had
to retry.

The two machines have a 100mb crossover connection so this (in theory)
shouldn't happen.

-Steve


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 1:29 PM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication


Been working on testing the new modules and came across something weird.
Wondering if you got any idea on the cause/problem while I continue 
investigating

Scenario:
- one web page login in a user. receive 3 parameters (user, password and 
community)
- To be able to replicate the problem I had to put a sleep on 25 secs in 
code.
- Post one request each second or so and after a couple of them, shudown 
one tomcat and restart it. (stop/start sequence)
- A couple of request will start pourring the result, but after some.. 
when tomcat that got shutdown is restarting, the request parameters 
becomes NULL.

As if the replication code was killing my request objects or resetting 
my parameters on those requests. Any thought on what it could be?
I even had session mix-up once. when restarting a tomcat a user was 
logging in and was assigned a session from another user that never 
logged on from his station (that session was idle for more than 10 hours 
too).

Just trying to pinpoint where the problem could be. Any pointer would help.

Thanks

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,

replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it works for
you
You will notice the improvement under load.

of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication




Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.


-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686
i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux


java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

same on both


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication


[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head

Hrmmmare yours SMP servers? Could be something odd with synch if that
is
the case.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication


interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication



Now that's really very strange. I am running RH9 and everything seems to go
through just fine.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:56 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication


The replication message ACK never get back to the sender.
So my webpages never loads without that flag.

I think it is only needed under REDHAT 9.

Jean-Philippe Bélanger

Steve Nelson wrote:

  

I don't seem to need the ld_assume_kernel thing. What are the symptoms
when
it is required?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:33 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication


Just tried the CVS head and everything works with any CPU going crazy!
only

RE: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread Filip Hanik
the way the login is done, is that a request is being saved in the session
(in a session note, and that is not replicated).
So for a login, you must hit the same server twice in a row. Otherwise you
will see NULL in your request parameters. Also in this release, the
principal is not being replicated, I am working on that right now

Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:29 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication


Been working on testing the new modules and came across something weird.
Wondering if you got any idea on the cause/problem while I continue
investigating

Scenario:
- one web page login in a user. receive 3 parameters (user, password and
community)
- To be able to replicate the problem I had to put a sleep on 25 secs in
code.
- Post one request each second or so and after a couple of them, shudown
one tomcat and restart it. (stop/start sequence)
- A couple of request will start pourring the result, but after some..
when tomcat that got shutdown is restarting, the request parameters
becomes NULL.

As if the replication code was killing my request objects or resetting
my parameters on those requests. Any thought on what it could be?
I even had session mix-up once. when restarting a tomcat a user was
logging in and was assigned a session from another user that never
logged on from his station (that session was idle for more than 10 hours
too).

Just trying to pinpoint where the problem could be. Any pointer would help.

Thanks

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,

replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it works for
you
You will notice the improvement under load.

of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication




Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.


-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST
2003 i686
i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux


java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

same on both


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication


[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head

Hrmmmare yours SMP servers? Could be something odd with synch
if that is
the case.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication


interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication



Now that's really very strange. I am running RH9 and everything seems to go
through just fine.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:56 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication


The replication message ACK never get back to the sender.
So my webpages never loads without that flag.

I think it is only needed under REDHAT 9.

Jean-Philippe Bélanger

Steve Nelson wrote:



I don't seem to need the ld_assume_kernel thing. What are the
symptoms when
it is required?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:33 PM
To: Tomcat

RE: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread Filip Hanik
can you check the logs, if there is an uncaught exception, the ACK will
never get sent

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:39 AM
To: 'Tomcat Users List'
Subject: RE: WAS: tomcat 5.0.16 Replication



I had an instance where an ACK message timed out after 15ms and it had
to retry.

The two machines have a 100mb crossover connection so this (in theory)
shouldn't happen.

-Steve


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 1:29 PM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication


Been working on testing the new modules and came across something weird.
Wondering if you got any idea on the cause/problem while I continue
investigating

Scenario:
- one web page login in a user. receive 3 parameters (user, password and
community)
- To be able to replicate the problem I had to put a sleep on 25 secs in
code.
- Post one request each second or so and after a couple of them, shudown
one tomcat and restart it. (stop/start sequence)
- A couple of request will start pourring the result, but after some..
when tomcat that got shutdown is restarting, the request parameters
becomes NULL.

As if the replication code was killing my request objects or resetting
my parameters on those requests. Any thought on what it could be?
I even had session mix-up once. when restarting a tomcat a user was
logging in and was assigned a session from another user that never
logged on from his station (that session was idle for more than 10 hours
too).

Just trying to pinpoint where the problem could be. Any pointer would help.

Thanks

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,

replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it works for
you
You will notice the improvement under load.

of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication




Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.


-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686
i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux


java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

same on both


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication


[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head

Hrmmmare yours SMP servers? Could be something odd with synch if that
is
the case.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication


interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication



Now that's really very strange. I am running RH9 and everything seems to go
through just fine.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:56 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication


The replication message ACK never get back to the sender.
So my webpages never loads without that flag.

I think it is only needed under REDHAT 9.

Jean-Philippe Bélanger

Steve Nelson wrote:



I don't seem to need the ld_assume_kernel thing. What are the symptoms
when
it is required

Re: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread jean-philippe . belanger
I understand that. Here more info...

I make a servlet request that does this:
while ( i  25 ) {
   if ( request.getParameters(xxx) == null ) {
  System.out.println(param is null);
   }
   Thread.currentThread().sleep(1000);
   i++
}
I then send a couple of request with param xxx=123 at 1 secs interval.
(those request are all made to the same server ie: web1)
Once a couple of them are sent I shutdown web2.
As soon as the INFO: Received member 
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://10.128.29.66:4001,10.128.29.66,4001, 
alive=6576] message is received my log gets flooded with param is null

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:

the way the login is done, is that a request is being saved in the session
(in a session note, and that is not replicated).
So for a login, you must hit the same server twice in a row. Otherwise you
will see NULL in your request parameters. Also in this release, the
principal is not being replicated, I am working on that right now
Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:29 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication
Been working on testing the new modules and came across something weird.
Wondering if you got any idea on the cause/problem while I continue
investigating
Scenario:
- one web page login in a user. receive 3 parameters (user, password and
community)
- To be able to replicate the problem I had to put a sleep on 25 secs in
code.
- Post one request each second or so and after a couple of them, shudown
one tomcat and restart it. (stop/start sequence)
- A couple of request will start pourring the result, but after some..
when tomcat that got shutdown is restarting, the request parameters
becomes NULL.
As if the replication code was killing my request objects or resetting
my parameters on those requests. Any thought on what it could be?
I even had session mix-up once. when restarting a tomcat a user was
logging in and was assigned a session from another user that never
logged on from his station (that session was idle for more than 10 hours
too).
Just trying to pinpoint where the problem could be. Any pointer would help.

Thanks

Jean-Philippe Bélanger
CGI
Filip Hanik wrote:

 

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,
replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it works for
you
You will notice the improvement under load.
of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST
   

2003 i686
 

i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux
java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
same on both

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head
Hrmmmare yours SMP servers? Could be something odd with synch
   

if that is
 

the case.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Now that's really very strange. I

RE: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread Filip Hanik
interesting, never seen that, let me take a look. I have an automated test
that I run to check replication integrity.
since you get this everytime, it shouldn't be a problem for me to do
reproduce this.
do you by any chance have the test program you have and would email it to
me?
Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:56 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication


I understand that. Here more info...

I make a servlet request that does this:
while ( i  25 ) {
if ( request.getParameters(xxx) == null ) {
   System.out.println(param is null);
}
Thread.currentThread().sleep(1000);
i++
}

I then send a couple of request with param xxx=123 at 1 secs interval.
(those request are all made to the same server ie: web1)
Once a couple of them are sent I shutdown web2.
As soon as the INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://10.1
28.29.66:4001,10.128.29.66,4001,
alive=6576] message is received my log gets flooded with param is null


Jean-Philippe Bélanger
CGI



Filip Hanik wrote:

the way the login is done, is that a request is being saved in the session
(in a session note, and that is not replicated).
So for a login, you must hit the same server twice in a row. Otherwise you
will see NULL in your request parameters. Also in this release, the
principal is not being replicated, I am working on that right now

Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:29 AM
To: Tomcat Users List
Subject: Re: WAS: tomcat 5.0.16 Replication


Been working on testing the new modules and came across something weird.
Wondering if you got any idea on the cause/problem while I continue
investigating

Scenario:
- one web page login in a user. receive 3 parameters (user, password and
community)
- To be able to replicate the problem I had to put a sleep on 25 secs in
code.
- Post one request each second or so and after a couple of them, shudown
one tomcat and restart it. (stop/start sequence)
- A couple of request will start pourring the result, but after some..
when tomcat that got shutdown is restarting, the request parameters
becomes NULL.

As if the replication code was killing my request objects or resetting
my parameters on those requests. Any thought on what it could be?
I even had session mix-up once. when restarting a tomcat a user was
logging in and was assigned a session from another user that never
logged on from his station (that session was idle for more than 10 hours
too).

Just trying to pinpoint where the problem could be. Any pointer would help.

Thanks

Jean-Philippe Bélanger
CGI


Filip Hanik wrote:



Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,

replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it
works for
you
You will notice the improvement under load.

of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication




Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.


-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST


2003 i686


i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux


java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

same on both


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication


[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
GNU/Linux

[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head

Hrmmmare yours SMP servers? Could be something odd with synch


if that is


the case