Re: [JBoss-user] Async replication messages possible?

2003-09-25 Thread Joao Clemente
Jetty and EJB. Both use javagroups, as far as I know.
(Well, the app I'm benchamarking uses both http and ejb sessions. I dunno if
the slowdown is seen in both levels or only one, as I only measure the
client percieved time)
If it is async by default, what could explain the slowdown? I've seen as
little as 2x and as much as 10x worse reply time with 2 nodes than I see
with 1 node...
This was measured with 10 clients / minute =  1/6 req /sec.
Using Jboss 3.0.8 + Jetty, jetty replication enabled, multicast messages
bound to ethernet interface as I'm using a LVS-DR balancing for wich I had
to configure a loopback adapter. And using Windows 2000 with j2sdk 1.4.1_01

- Original Message - 
From: "Bela Ban" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 1:15 AM
Subject: Re: [JBoss-user] Async replication messages possible?


> Which repl are you referring to ?
>
> Session (Tomcat, Jetty) ?
> EJBs ?
>
> I think replis async by default.
>
>
> Joao Clemente wrote:
>
> >Hi.
> >(This message is in particular for Bela, but others feedback is welcome)
> >
> >I'm running some tests and even with a very low request rate (5 req /
minute
> >= 1 request / 12 sec) I'm seeing my respose times getting worse by 2 to 5
> >times as soon as I let a second node join the cluster. I am assuming it's
> >because of a overhead of Jgroups "ack'ing" the replication before letting
> >the master node reply to the user.
> >(question for bela) Can it be?
> >If so, can I put jgroups in "async" mode, either delaying the replication
> >message or not waiting for the "ack" from replicas?
> >
> >Thank you
> >Joao Clemente
> >
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.520 / Virus Database: 318 - Release Date: 18-09-2003
> >
> >
> >
> >---
> >This sf.net email is sponsored by:ThinkGeek
> >Welcome to geek heaven.
> >http://thinkgeek.com/sf
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
>
> -- 
> Bela Ban
> http://www.jgroups.org
> Cell: (408) 316-4459
>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Async replication messages possible?

2003-09-22 Thread Joao Clemente
Hi.
(This message is in particular for Bela, but others feedback is welcome)

I'm running some tests and even with a very low request rate (5 req / minute
= 1 request / 12 sec) I'm seeing my respose times getting worse by 2 to 5
times as soon as I let a second node join the cluster. I am assuming it's
because of a overhead of Jgroups "ack'ing" the replication before letting
the master node reply to the user.
(question for bela) Can it be?
If so, can I put jgroups in "async" mode, either delaying the replication
message or not waiting for the "ack" from replicas?

Thank you
Joao Clemente


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.520 / Virus Database: 318 - Release Date: 18-09-2003



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Cluster "replica" absurd memory usage ?!?

2003-09-17 Thread Joao Clemente
That wouls explain my question "1", as I suspected.
But how can we explain the memory usage difference between the nodes, where
the replica node memory usage keeps growing and growing?
The GC setting were something I tought of (check my "Clustering memory
usage, can we use more agressive GC settings?" thread), but then again, the
behaviour on the master node should be the same as in the replica node as
they use the same VM with the same settings...

Ok, please follow my toughts for a second:
a) Replica node never actively uses the session it get in a replicated
state.
b) Sessions may expire on master node, what would explain why the memory
does not increase that much.
c) Check the "Http session replication with tomcat 4" page [1], ans see the
cluster messages that are implemented. Suposing that this implementation is
similar to the one of JBoss, is it possible that one of these things are
happening:
  c1) The master node does not issue a "Session expiration" message to the
cluster?
  c2) The replica node ignores a "Session expiration" message keeping the
sessions on memory?

Can we give this a tought for a second? I don't see any flaws in my
reasoning...

[1] - http://www.filip.net/tomcat/tomcat-javagroups.html


- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 4:24 PM
Subject: RE: [JBoss-user] Cluster "replica" absurd memory usage ?!?


That the memory usage is bigger is logical as many more objects are created
when using clustering compared to the non-clustered case. Furthermore, it is
up to the JVM GC to decide when to reclaim that memory. Maybe the memory is
used but could be reclaimed.

> Joao Clemente wrote:
>
[snip]
> > Now, who can explain:
> >  1 - why the 1rst machine memory usage increase? maybe
> related with being
> > part of the cluster... but no session info needs to be
> replicated here as
> > there is no requests being served by the replica machine...
> >  2 - why is the replica memory usage getting larger and
> larger each run of
> > the test? It seems to grow about 60 Mb per run...



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11-09-2003



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Clustering memory usage, can we use more agressiveGC settings?

2003-09-17 Thread Joao Clemente
Bela, if you check my thread "Cluster replica absurd memory usage" I figured
out I am doing a 1.6 requests per second to the cluster. If every request
issued 10-20 interactions between my application components, it yould be
16-32 cluster msgs/sec, way far from being too much I guess...
Thank you but I think the problem lies elsewere... let's see what Bill and
Sacha have in mind...
Thanks again!
Joao

- Original Message -
From: "Bela Ban" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 15, 2003 6:18 PM
Subject: Re: [JBoss-user] Clustering memory usage, can we use more
agressiveGC settings?


[snip]

> No, I'm not suggesting that. I don't know exactly what you are doing,
> but if you pound JGroups with (say) more than 300 cluster msgs/sec
> *sustained*, the default protocol stack will grow in memory. fc.xml
> (flow control) won't.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11-09-2003



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Cluster "replica" absurd memory usage ?!?

2003-09-17 Thread Joao Clemente
Well, each "run" of my test takes 25 minutes... so by the end of the second
run every session on the 1rst run should have finished a long time ago...
And even if that was the problem, how can we explain that the growth on the
replica is constantly increasing, but the growth of the "master" keeps
somewhat steady?
(If you check the last mail I send, it reports exactly that behaviour.  I am
assuming that in the master the memory usage is constant beacause it keeps
on expiring the http sessions and discarding them, but in the "replica"
there is no expiration and the sessions keep on memory forever...)

What do you think?

- Original Message -
From: "Bill Burke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 4:20 PM
Subject: Re: [JBoss-user] Cluster "replica" absurd memory usage ?!?


> Maybe because you are creating new sessions every request and those
> sessions haven't timed out?  I think the default HTTP session timeout is
> 15 minutes.
>
> Joao Clemente wrote:
>
> > Ok, trying to figure out what is going wrong with my tests, I decided to
do
> > the following:
> >
> > I've runned my "100 user test" 10x. Test consists on about 15-20 user
> > actions (http requests) to the web/ejb application. Each action from a
> > specific user is separated by a minute, and users act in equal intervals
in
> > that minute. This means the 1rst action happens in the 1rst minute, 2nd
> > action in the second minute. This is a rate of 100/60 requests per
minute =
> > 1.6 requests per second.
> >
> > First I've runned the test with one machine, cluster settings enabled.
> > Memory usage before test started =  56Mb.
> > Memory usage after test end about 80Mb, peak mem usage was 89Mb.
> >
> > Then I've connected a second machine to the cluster. I restarted the
1rst
> > machine and cleaned up external application state.
> > Repeated the test directing requests to 1rst machine only. "Replica"
machine
> > did not got requests, only stood there as a cluster replica.
> > Memory usage before test started, around 56 Mb on each machine.
> > At 20% of the test (2 runs):
> >  1rst machine is using 99Mb, peak value is 105Mb.
> >  replica is using 225 Mb (!!!), and growing...
> > At 30% of the test (3 runs):
> >  1rst machine is using 103Mb, peak value is 105Mb.
> >  replica is using 285 Mb (!!!), and growing...
> >
> >
> > Now, who can explain:
> >  1 - why the 1rst machine memory usage increase? maybe related with
being
> > part of the cluster... but no session info needs to be replicated here
as
> > there is no requests being served by the replica machine...
> >  2 - why is the replica memory usage getting larger and larger each run
of
> > the test? It seems to grow about 60 Mb per run...


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11-09-2003



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] (Updated) Re: Cluster "replica" absurd memory usage ?!?

2003-09-16 Thread Joao Clemente
I've modified the test script a bit, rerun the tests and got some more info
to add to the mess... :
The client now reuses http cookies 5 times before discarding it's state...
so I think the server application only sees (and creates) 1/5 of the http
sessions it was creating before... and I suppose that therefore it also
creates only 1/5 of EJB's (?!? not sure about this last one, maybe this
claim is nonsense)

Anyway, the facts are:
At 20% of the test (2 runs):
 1rst machine is using 101Mb, peak value is 107Mb.
 replica is using 121 Mb
At 30% of the test (3 runs):
 1rst machine is using 102Mb
 replica is using  142Mb
At 40% of the test (4 runs):
 1rst machine is using 103Mb
 replica is using  160Mb.

Quite different values, hum? But can anyone tell what does this means? Is
there a bug or not around here? I'm pretty sure that there is one somewhere
but I can't point exactly where..
Oh, btw, I'm using jboss 3.0.8 with j2sdk 1.4.1_01 on windows 2000.

- Original Message - 
From: "Joao Clemente" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 4:33 AM
Subject: [JBoss-user] Cluster "replica" absurd memory usage ?!?


> Repeated the test directing requests to 1rst machine only. "Replica"
machine
> did not got requests, only stood there as a cluster replica.
> Memory usage before test started, around 56 Mb on each machine.
> At 20% of the test (2 runs):
>  1rst machine is using 99Mb, peak value is 105Mb.
>  replica is using 225 Mb (!!!), and growing...
> At 30% of the test (3 runs):
>  1rst machine is using 103Mb, peak value is 105Mb.
>  replica is using 285 Mb (!!!), and growing...



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Cluster "replica" absurd memory usage ?!?

2003-09-16 Thread Joao Clemente
Ok, trying to figure out what is going wrong with my tests, I decided to do
the following:

I've runned my "100 user test" 10x. Test consists on about 15-20 user
actions (http requests) to the web/ejb application. Each action from a
specific user is separated by a minute, and users act in equal intervals in
that minute. This means the 1rst action happens in the 1rst minute, 2nd
action in the second minute. This is a rate of 100/60 requests per minute =
1.6 requests per second.

First I've runned the test with one machine, cluster settings enabled.
Memory usage before test started =  56Mb.
Memory usage after test end about 80Mb, peak mem usage was 89Mb.

Then I've connected a second machine to the cluster. I restarted the 1rst
machine and cleaned up external application state.
Repeated the test directing requests to 1rst machine only. "Replica" machine
did not got requests, only stood there as a cluster replica.
Memory usage before test started, around 56 Mb on each machine.
At 20% of the test (2 runs):
 1rst machine is using 99Mb, peak value is 105Mb.
 replica is using 225 Mb (!!!), and growing...
At 30% of the test (3 runs):
 1rst machine is using 103Mb, peak value is 105Mb.
 replica is using 285 Mb (!!!), and growing...


Now, who can explain:
 1 - why the 1rst machine memory usage increase? maybe related with being
part of the cluster... but no session info needs to be replicated here as
there is no requests being served by the replica machine...
 2 - why is the replica memory usage getting larger and larger each run of
the test? It seems to grow about 60 Mb per run...


-- 
Joao Clemente - jpcl at rnl ist utl pt



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Clustering memory usage, can we use more agressive GC settings?

2003-09-16 Thread Joao Clemente
Bela, could you point me to some documentation or provide a little better
explanation of what to do?
I'm a bit lost here... : I downloaded javagroups 2.1.1, found a fc.xml file
inside (btw, there's a flow-control.xml file aswell, that seems to be a copy
of fc.xml), checked what was inside my cluster-service.xml and the only
thing I could think of was to copy the values of "mcast_addr", "mcast_port",
..., "ip_ttl"
from fc.xml to cluster-service.xml... but I'm not sure if that is what you
were suggesting me...

- Original Message - 
From: "Bela Ban" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 15, 2003 5:55 PM


> You should try to run JGroups with the fc.xml properties: copy them from
> the JGroups distro, and modify you cluster-service.xml.
>



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Clustering memory usage, can we use more agressive GC settings?

2003-09-15 Thread Joao Clemente
So can I assume that the behavior I am seeing is a "feature" of jgroups
version shipped with jboss 3.0.8?
I was thinking it was related with old session state not being discarded or
something...
Ok, I'll do that and report my results...
Thank you Bela

- Original Message - 
From: "Bela Ban" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 15, 2003 5:55 PM
Subject: Re: [JBoss-user] Clustering memory usage, can we use more agressive
GC settings?


> You should try to run JGroups with the fc.xml properties: copy them from
> the JGroups distro, and modify you cluster-service.xml.
>
> Joao Clemente wrote:
>
> >Hi! Load testing my application ( with Jboss 3.0.8 ) I had these strange
> >results:
> >
> >If using 1 jboss node, with cluster settings active but without another
> >machine, I runned a test scenario that consisted of 10, 100 and 200 users
> >navigating through my site.
> >I had this batch file that would do
> >"run 10x scenario with 10 users, then run 10x scenario with 100 users,
then
> >run 10x scenario with 200 users"
> >
> >I left this running over night, and got the results in the next day...
> >Then I added the second machine, with similar settings, to the cluster.
> >
> >I went home and left my batch test running... 50% of load to each
machine.
> >Each machine would see the load corresponding to the following batch
test:
> >"run 10x scenario with 5 users, then run 10x scenario with 50 users, then
> >run 10x scenario with 100 users"
> >(which would total a cluster load the same as above)
> >
> >Well... my test client locked soon after beginning the 50 users test...
> >there were exceptions thrown in JBoss because of "out of memory"
errors...
> >I changed my java memeory settings by using
> >"%JAVA%" -Xmx384m %JAVA_OPTS%
> >in my run.bat file.
> >
> >I went home once again, confident that now it would work... I rerun the
"10x
> >50users + 10x 100users" test
> >When I got back... it was locked soon after starting the 100 users test,
> >with exceptions on JBoss and the memory usage (measured by windows task
> >manager) was over 400Mb...
> >Well, I rerun the 100 users test, and it eventually locked again,
exceptions
> >and memory usage again over 400Mb after running 5x the 100 users test...
> >
> >
> >While I've not reached a conclusion, these questions are bothering me:
> > -  Why did the batch rest run completely when there was only 1 machine,
> >without exceeding the standard (128, right?) Mb memory usage?
> > -  Why do I triple the memory available to java and it still goes to
> >maximum usage, and after hours of not loading the server the memory usage
> >does not decrease?
> > -  Could I set more aggressive memory settings to java that could free
more
> >memory, making my app work without the "out of memory"?



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Clustering memory usage, can we use more agressive GC settings?

2003-09-15 Thread Joao Clemente
Hi! Load testing my application ( with Jboss 3.0.8 ) I had these strange
results:

If using 1 jboss node, with cluster settings active but without another
machine, I runned a test scenario that consisted of 10, 100 and 200 users
navigating through my site.
I had this batch file that would do
"run 10x scenario with 10 users, then run 10x scenario with 100 users, then
run 10x scenario with 200 users"

I left this running over night, and got the results in the next day...
Then I added the second machine, with similar settings, to the cluster.

I went home and left my batch test running... 50% of load to each machine.
Each machine would see the load corresponding to the following batch test:
"run 10x scenario with 5 users, then run 10x scenario with 50 users, then
run 10x scenario with 100 users"
(which would total a cluster load the same as above)

Well... my test client locked soon after beginning the 50 users test...
there were exceptions thrown in JBoss because of "out of memory" errors...
I changed my java memeory settings by using
"%JAVA%" -Xmx384m %JAVA_OPTS%
in my run.bat file.

I went home once again, confident that now it would work... I rerun the "10x
50users + 10x 100users" test
When I got back... it was locked soon after starting the 100 users test,
with exceptions on JBoss and the memory usage (measured by windows task
manager) was over 400Mb...
Well, I rerun the 100 users test, and it eventually locked again, exceptions
and memory usage again over 400Mb after running 5x the 100 users test...


While I've not reached a conclusion, these questions are bothering me:
 -  Why did the batch rest run completely when there was only 1 machine,
without exceeding the standard (128, right?) Mb memory usage?
 -  Why do I triple the memory available to java and it still goes to
maximum usage, and after hours of not loading the server the memory usage
does not decrease?
 -  Could I set more aggressive memory settings to java that could free more
memory, making my app work without the "out of memory"?


-- 
Joao Clemente - jpcl at rnl ist utl pt



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jndi first access in a Cluster environment question

2003-09-07 Thread Joao Clemente
I was writing my thesis chapter about ejb clustering and, when describing
the replicated jndi tree I had this question:

I have a client. He wants to access a "well-known" EJB. The jndi tree is all
over the cluster, so I can use whatever node to do the jndi initial request.
But.. the client does not explicitely get a node assigned to do the
requests, does it? Does it multicast the initial request? Or gets a jndi
server list by multicasting a "request server list" packet, and then chooses
one?

I think this behaviour is determined by the jndi.properties file, in
particular the
org.jnp.interfaces.NamingContextFactory method/object is the responsible for
it... right?
But... if multicast is used, that means the client must always be on the
same LAN segment where the cluster nodes are in... unless we explicitly
provide a servername where to it should connect.
If there is the need to explicilty provide a servername to do jndi queries,
we'll not have HA or LB in that client interactions with the cluster... or
can we?

Thank you

-- 
Joao Clemente - jpcl at rnl ist utl pt



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Joao Clemente

- Original Message - 
From: "Sheldon Hearn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>


> On (2003/09/01 09:57), Neal Sanche wrote:
>
> > Another option would be to investigate Pre-Compiling your JSPs so that
> > the compilation time won'[t affect the first user on the system.
>
> I've done this with jboss-3.2.1-tomcat-4.1.24 and it makes a HUGE
> difference.


Can you detail a bit what "HUGE" i actually? Speed? Latency? Maximum number
of users? Memory usage? Cpu usage?
Thanks



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


(ignore last message) Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Joao Clemente
Sorry for the last message.Forget it.
I had just read "Build optimized Jboss version" message and I tough you're
answering to it. I only notisted the mistake after double-checking the
subjects.
Sorry.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] don't get load blancing to run

2003-08-29 Thread Joao Clemente
> > If the Session bean is in the same JVM as your MDB then it will not be
> > load balanced.  THe logic behind this is that local calls will always
> > be faster.
>
> Sounds like that is the solution for my problem. But what can i do when
> i wish to not deploy my application in one node that is in a farm?


Exclude from farm? A particular app in a cluster that has other farmed apps?
I think you'll need to deploy it by hand in every server except that single
one...



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] java.lang.outofmemoryError?!? My system memory is still free!!!

2003-08-14 Thread Joao Clemente
While load testing my app on JBoss I'm  facing this problem: I'm getting
java.lang.outofmemoryError but my system has still 128 Mb ram free!!!

I'm running JBoss 3.0.8 in Windows 2000.
My system is a p4m-1.8 Ghz with 512Mb DDR.
Windows task manager states 410Mb used, 128Mb available, java process is
showing about 125 Mb memory usage.

Maybe this issue is something that has to be tweaked with the starting
command?
I'm no advanced java user, and my guess is that maybe the java machine
cannot use full system memory but is bound to som value unless we state
otherwise... can that be it?

Thanks

-- 
Joao Clemente - jpcl at rnl ist utl pt



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] ejbActivate() and concurrent calls on stateful beans

2003-08-12 Thread Joao Clemente
ttp.HttpServer.service(HttpServer.java:879)
at org.jboss.jetty.Jetty.service(Jetty.java:460)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:770)
at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:257)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:787)
at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:204)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:454)







- Original Message - 
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 01, 2003 9:49 PM
Subject: Re: [JBoss-user] ejbActivate() and concurrent calls on stateful
beans


> Probably, but the deadlock thread dump is needed to be sure.
>
> -- 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> Joao Clemente wrote:
>
> > I'm trying to use the following pattern to recover my ejb's after a
> > failover:
> > Each EJB checks the need for recovery inside "ejbActivate()".
> > If there is a need to recover, it eventually calls another EJB to get
some
> > value.
> >
> > I'm facing a deadlock situation here where I believe that it should
appear a
> > "concurrent calls on stateful beans" exception instead:
> >
> > EJB1 activates. He needs to recover and needs to call ejb2 to have a
certain
> > value.
> > EJB2 is passivated so EJB2 activates. He also needs to recover and needs
a
> > value that is in ejb1.
> > I find a deadlock occuring here, where I was expecting to obtain an
> > exception ("concurrent calls on stateful beans").
> >
> > Using this pattern with methods other than ejbActivate we get that
> > exception, so shouldn't it occur here aswell?
> >
> > ejb1 {
> >   ejbActivate() {
> >  ejb2.someMethod()
> >   }
> > }
> >
> > ejb2 {
> >   ejbActivate() {
> >  ejb1.someMethod()
> >   }
> > }
>
>
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss: Deploying in a different directory

2003-08-11 Thread Joao Clemente
cant you just use "./back_office" ? Why not? I particulary am fond of using
the following setup:
./deploy,./myDeploy,../../../myDeploy
This gives me a folder at the same level as "deploy" that I can use to pu my
own stuff, and a foder at the same level as "jboss-xxx" to put apps when I'm
testing with different versions of jboss or different server configurations

- Original Message -
From: "Paulo Bengero" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 11, 2003 9:55 AM
Subject: [JBoss-user] JBoss: Deploying in a different directory


I tried editing it and added


   deploy/,./deploy/back_office


to no avail. Can somebody post in here the right steps or the right step by
step instructions on how to solve my problem above?




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Pattern advice for ejb recovery wanted

2003-08-01 Thread Joao Clemente
Thanks for answering Richard.
These are statefull session beans, there is no transaction involved (well,
not that I know of)


- Original Message -
From: "Richard Katz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 01, 2003 11:38 PM
Subject: Re: [JBoss-user] Pattern advice for ejb recovery wanted


> Hello Joao,
>
> Are you using demarcation and saving the transaction state with separate
containers?
>
>
> -------Original Message---
> From: Joao Clemente <[EMAIL PROTECTED]>
> Sent: 08/01/03 01:11 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Pattern advice for ejb recovery wanted
>
> >
> > Well, I think I would like some feedback on how are the real
> implementations
> of failover recovery code out there.
>
> We though of three approaches:
>   1 - use ejbActivate: The method would see if the ojbect is in a
> non-consistent state and would revover if necessary.
>   2 - intercept every method with a initial test: Each method would start
> with "if recoveryNeeded() then recover"
>   3 - wrap a transient variable with a getter method that would recover
> that
> variable.
> getAVariable() {
>  if (aVariable==null) recover();
>  return aVariable
> }
>
> We still think that (1) is the best choice, but we had problem using it.
> Our
> ejb's have references for each other and they get each other variables
> when
> recovering so we would get locked while using ejbActivate.
>
> I think I can describe the problem like this: With 2 ejb's, where both
> need
> transient values that are found in the other, and where a client can start
> calling either one, we have:
>
> EJB1 {
>  getValue2();
>  businessMethod1(); // calls businessMethod2()
> }
> EJB2 {
>   transient value2;
>   recover();  // needs to get the value that is provided by EJB1:
> EJB1.getValue2();
>   businessMethod2(); // manipulates value2
> }
>
> In a failover situation, if I have a call to EJB1.businessMethod1(),  what
> is the pattern that allows to recover value2 ?
>
>
>
>
> --
> Joao Clemente - jpcl at rnl ist utl pt
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio
> .NET.
>
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ejbActivate locks when it should throw "no concurrent calls on stateful beans"

2003-08-01 Thread Joao Clemente
Ok. I've read the spec and I see no reason why interlaced business-method
calls triggered by ejbActivate()'s  should not throw the referred exception.
Using jboss 3.0.8 it locks silently.


-- 
Joao Clemente - jpcl at rnl ist utl pt



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Pattern advice for ejb recovery wanted

2003-08-01 Thread Joao Clemente
Well, I think I would like some feedback on how are the real implementations
of failover recovery code out there.

We though of three approaches:
  1 - use ejbActivate: The method would see if the ojbect is in a
non-consistent state and would revover if necessary.
  2 - intercept every method with a initial test: Each method would start
with "if recoveryNeeded() then recover"
  3 - wrap a transient variable with a getter method that would recover that
variable.
getAVariable() {
 if (aVariable==null) recover();
 return aVariable
}

We still think that (1) is the best choice, but we had problem using it. Our
ejb's have references for each other and they get each other variables when
recovering so we would get locked while using ejbActivate.

I think I can describe the problem like this: With 2 ejb's, where both need
transient values that are found in the other, and where a client can start
calling either one, we have:

EJB1 {
 getValue2();
 businessMethod1(); // calls businessMethod2()
}
EJB2 {
  transient value2;
  recover();  // needs to get the value that is provided by EJB1:
EJB1.getValue2();
  businessMethod2(); // manipulates value2
}

In a failover situation, if I have a call to EJB1.businessMethod1(),  what
is the pattern that allows to recover value2 ?




-- 
Joao Clemente - jpcl at rnl ist utl pt



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ejbActivate() and concurrent calls on stateful beans

2003-08-01 Thread Joao Clemente
I'm trying to use the following pattern to recover my ejb's after a
failover:
Each EJB checks the need for recovery inside "ejbActivate()".
If there is a need to recover, it eventually calls another EJB to get some
value.

I'm facing a deadlock situation here where I believe that it should appear a
"concurrent calls on stateful beans" exception instead:

EJB1 activates. He needs to recover and needs to call ejb2 to have a certain
value.
EJB2 is passivated so EJB2 activates. He also needs to recover and needs a
value that is in ejb1.
I find a deadlock occuring here, where I was expecting to obtain an
exception ("concurrent calls on stateful beans").

Using this pattern with methods other than ejbActivate we get that
exception, so shouldn't it occur here aswell?

ejb1 {
  ejbActivate() {
 ejb2.someMethod()
  }
}

ejb2 {
  ejbActivate() {
 ejb1.someMethod()
  }
}
-- 
Joao Clemente - jpcl at rnl ist utl pt



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


SOLVED (Re: [JBoss-user] Cluster failover and "no concurrent calls on stateful beans")

2003-08-01 Thread Joao Clemente
Thank you for having replied Sacha. I'll not provide the exception stack
trace as we've found what was causing the problem.
I'll post our finding here to end this thread with the explanation for our
problem (well, at least is what we suspect it was the problem. I'm sorry if
what I'm saying is not 100% correct, but it is our conclusion so far)

It was all about the design we were using to do the recovery:

Supose we had an EJB1 and a EJB2. Both ejb's have a recovery method
"recover()"  to fix the transient parts that were lost during failover. That
recover method is called whenever we access an transient variable by an
accessor we have in the class:

class ejb1 {
  transient xxx transientVariable;
  getTransientVariable()

  if (transientVariable== null) revover();
  return transientVariable;
  }
  recover () { // Get the transient variables in a valid state again. }
  method1()

 // ...
 getTransientVariable().doSomething();
  }
  method2() {
// ... access ejb2 and invoque someMethod();
  }
}


ejb2 has a similar approach, but it had a difference: The recover method had
to access ejb1 to get a value.
our client (servlet) would, for instance, invoque ejb1.method2();
this would make a call to ejb2, so we have ejb1 invoquing ejb2.
ejb2.method2() would have the need to access a transient variable so it
would try to recover. In particular that transient variable was provided by
calling an ejb1 method. It has an reference to ejb1 that was kept safe
during failover, so it can invoque it something like this:
  (ejb2) recover() {
// need to ask ejb1 for the correct value of some transient variable
that I have:
ejb1.giveMeSomeVariable();
  }

so ejb1 is calling ejb2 that, when recovering, needs to call ejb1 again..
and... well "concurrent call on statefull beans"...



well, I actually thing that in some occasions it should be possible to use
this... In particular, if there existed a "const method()" in java (there is
no "const" is java, is there?) I think it should be possible. This would say
that the method is harmless to the state of the bean... But this is another
story...
Hope maybe our bad (old) design will help someone to avoid this mistakes :-)

Joao Clemente

- Original Message -
From: "Joao Clemente" <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 4:36 PM


> We're changing our app so that we can recover the transient parts of our
> objects so that we can eventually support failover.
> One of our recovery methods fails with
> "Application error: no concurrent calls on stateful beans"
> and we're being unable to trace what is responsible for this behaviour. We
> are using a single client so there should be only one call, not two.
> One thing I am thinking is that maybe the server is activating the ejb and
> at the same time it invokes the recovery method that we wrote.
>
> Maybe one of you has already faced this situation and has suggestions.
> We're using jboss 3.0.8



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Cluster failover and "no concurrent calls on stateful beans"

2003-07-28 Thread Joao Clemente
I'll get you one, but I'm not sure what you want:
 - The exception stacktrace?
 - The server stack trace (dump) at the time of the exception? This last one
I don't know how to do programatically...


- Original Message - 
From: "Sacha Labourey" <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 4:41 PM
Subject: RE: [JBoss-user] Cluster failover and "no concurrent calls on
stateful beans"


> Please provide a stackrace if you have one.



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Cluster failover and "no concurrent calls on stateful beans"

2003-07-28 Thread Joao Clemente
We're changing our app so that we can recover the transient parts of our
objects so that we can eventually support failover.
One of our recovery methods fails with
"Application error: no concurrent calls on stateful beans"
and we're being unable to trace what is responsible for this behaviour. We
are using a single client so there should be only one call, not two.
One thing I am thinking is that maybe the server is activating the ejb and
at the same time it invokes the recovery method that we wrote.

Maybe one of you has already faced this situation and has suggestions.
We're using jboss 3.0.8



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] The Source or not the Source

2003-07-26 Thread Joao Clemente
I've been using the binaries in a university project wich involves
clustering.
However, I've found and reported bugs/problems that were fixed on cvs. Until
the next release was provided, I had to resort to building from CVS to
benefit from those fixes.
If you don't need something from cvs, I see no reason why you should not use
binaries.


- Original Message -
From: "Holger Baxmann - bitwind" <[EMAIL PROTECTED]>
Subject: [JBoss-user] The Source or not the Source


>
> So, is anybody out there who is using _only_ the binary package and has
> good experience in doing so ??




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] NoSuchObjectException: Could not activate; failedto recover session

2003-07-17 Thread Joao Clemente
Have you seen any problem on the way I'm using replication?
I am suposed to keep the ejb references on the servlet httpSession , right?


- Original Message -
From: "Joao Clemente" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 4:22 PM
Subject: Re: [JBoss-user] NoSuchObjectException: Could not activate;
failedto recover session


>
> - Original Message -
> From: "Scott M Stark" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 16, 2003 3:11 PM
>
> > This shows that the call is not going through the HA aware proxy. It is
> going
> > through the local invoker and bypassing the HA aware proxy because of
the
> > collocation of the caller and callee. The problem is occuring in the
> stateful
> > session cache replication though. How is the serverlet session and
> reference to
> > the stateful session bean being maintained across the server restart?
>
> As I suspected, a problem related with collocation...
>
> Well, the servlet is replicated because it's deployed with

> and Jetty replication is enabled.
> The references to ejb's is kept in httpSession. I'll show you the relevant
> code:
>
>
>
> public class web_counter extends HttpServlet {
>
> protected void processRequest(HttpServletRequest request,
> HttpServletResponse response)
> throws ServletException, IOException {
>   HttpSession sessao = request.getSession();
>
>   if (sessao.isNew()) { // Ainda nao ha contadores nem ligacao ao EJB.
>   /* Lets create a remote reference to the bean I want to access. */
>   try { InitialContext jndiContext = new InitialContext();
>   Object ref1 = jndiContext.lookup("contador/ContadorStateless");
>   ContadorHome home1 = (ContadorHome) PortableRemoteObject.narrow(ref1,
> ContadorHome.class);
>   Contador contadorStateless = home1.create();
>   Object ref2 = jndiContext.lookup("contador/ContadorStatefull");
>   ContadorHome home2 = (ContadorHome) PortableRemoteObject.narrow(ref2,
> ContadorHome.class);
>   Contador contadorStatefull = home2.create();
>
>   /* Keeping references to remote counters in a session atribute */
>
>   sessao.setAttribute("contadorStateless", contadorStateless);
>   sessao.setAttribute("contadorStatefull", contadorStatefull);
> }
> catch(Exception e)
> {
> System.out.println("Servlet: OOPS! Apanhei excepcao na inicializacao dos
> EJB's: " + e.toString());
> }
> }
>
>  // Every time the servlet runs, this code is executed.
>
>   Contador contadorStateless = (Contador)
> sessao.getAttribute("contadorStateless");
>   Contador contadorStatefull = (Contador)
> sessao.getAttribute("contadorStatefull");
>
>   // Invoque EJB's.
>   try {
>   // [SNIP] get a value that was also store inside httpSession and call is
> "counter"
>   System.out.println("Servlet: StatelessEJB: Add 2 +
"+counter.intValue()+"
> = " + contadorStateless.CalculateAdd(2,counter.intValue()) );
>   System.out.println("Servlet: StatefullEJB: Add 2 e
"+counter.intValue()+"
> = " + contadorStatefull.CalculateAdd(2,counter.intValue()) );
>
>   RetornoContador contStateless =
> contadorStateless.incrementaContador("stateless");
>   RetornoContador contStatefull =
> contadorStatefull.incrementaContador("statefull");
>   request.setAttribute("contStateless",contStateless);
>   request.setAttribute("contStatefull",contStatefull);
> }
> catch(Exception e){ e.printStackTrace(); }
> request.getRequestDispatcher("/output.jsp").forward(request, response);
> }
>
>
> "Contador" is an EJB that is deployed both as a stateless and as a
statefull
> ejb, with the names that you can see in the jndi lookup, and both deployed
> as clustered.
> That ejb has 2 methods: a "add" method and a "increment" method.
> "RetornoContador" is a structure (a java class with no methods except for
> the constructor) that contains a int and a string.
>
>
>
> ---
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] NoSuchObjectException: Could not activate; failedto recover session

2003-07-16 Thread Joao Clemente

- Original Message -
From: "Scott M Stark" <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 3:11 PM

> This shows that the call is not going through the HA aware proxy. It is
going
> through the local invoker and bypassing the HA aware proxy because of the
> collocation of the caller and callee. The problem is occuring in the
stateful
> session cache replication though. How is the serverlet session and
reference to
> the stateful session bean being maintained across the server restart?

As I suspected, a problem related with collocation...

Well, the servlet is replicated because it's deployed with 
and Jetty replication is enabled.
The references to ejb's is kept in httpSession. I'll show you the relevant
code:



public class web_counter extends HttpServlet {

protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
  HttpSession sessao = request.getSession();

  if (sessao.isNew()) { // Ainda nao ha contadores nem ligacao ao EJB.
  /* Lets create a remote reference to the bean I want to access. */
  try { InitialContext jndiContext = new InitialContext();
  Object ref1 = jndiContext.lookup("contador/ContadorStateless");
  ContadorHome home1 = (ContadorHome) PortableRemoteObject.narrow(ref1,
ContadorHome.class);
  Contador contadorStateless = home1.create();
  Object ref2 = jndiContext.lookup("contador/ContadorStatefull");
  ContadorHome home2 = (ContadorHome) PortableRemoteObject.narrow(ref2,
ContadorHome.class);
  Contador contadorStatefull = home2.create();

  /* Keeping references to remote counters in a session atribute */

  sessao.setAttribute("contadorStateless", contadorStateless);
  sessao.setAttribute("contadorStatefull", contadorStatefull);
}
catch(Exception e)
{
System.out.println("Servlet: OOPS! Apanhei excepcao na inicializacao dos
EJB's: " + e.toString());
}
}

 // Every time the servlet runs, this code is executed.

  Contador contadorStateless = (Contador)
sessao.getAttribute("contadorStateless");
  Contador contadorStatefull = (Contador)
sessao.getAttribute("contadorStatefull");

  // Invoque EJB's.
  try {
  // [SNIP] get a value that was also store inside httpSession and call is
"counter"
  System.out.println("Servlet: StatelessEJB: Add 2 + "+counter.intValue()+"
= " + contadorStateless.CalculateAdd(2,counter.intValue()) );
  System.out.println("Servlet: StatefullEJB: Add 2 e "+counter.intValue()+"
= " + contadorStatefull.CalculateAdd(2,counter.intValue()) );

  RetornoContador contStateless =
contadorStateless.incrementaContador("stateless");
  RetornoContador contStatefull =
contadorStatefull.incrementaContador("statefull");
  request.setAttribute("contStateless",contStateless);
  request.setAttribute("contStatefull",contStatefull);
}
catch(Exception e){ e.printStackTrace(); }
request.getRequestDispatcher("/output.jsp").forward(request, response);
}


"Contador" is an EJB that is deployed both as a stateless and as a statefull
ejb, with the names that you can see in the jndi lookup, and both deployed
as clustered.
That ejb has 2 methods: a "add" method and a "increment" method.
"RetornoContador" is a structure (a java class with no methods except for
the constructor) that contains a int and a string.



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] NoSuchObjectException: Could not activate; failed to recover session

2003-07-16 Thread Joao Clemente
I've tried using a java client instead of a servlet, same thing happens. If
there is no interaction with another member of the cluster between the 2
requests, sent before the node goes down and after it comes up again, this
exception occurs and there is no failover.

- Original Message -
From: "Joao Clemente" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 15, 2003 12:41 PM

> - Original Message -
> From: "Scott M Stark" <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] NoSuchObjectException: Could not activate;
failed
> to recover session
>
> > Show the full stacktrace of this error to demonstrate that the request
is
> in
> > fact going through an HA capable proxy.
> >
>
> Well, it if makes sense or not, I don't know... But I've done every
> experiment that I was able to think of and I can assure you that you'll
see
> this behaviour executing these steps:
> 1 - Interact with the server JB1. (that has a distributed servlet that
> invoques a clustered session EJB)
> 2 - Send JB1 down
> 3 - Get JB1 up again
> 4 - Interact with the same server JB1
>
> if you do a set between 2 and 3, connecting to JB2, this test will not
fail.
> I guess its due to some reference being updated in the sub or proxy that
is
> kept in the user (servlet) side.
>
> One other tought: Is it possible that the failover logic is broken in the
> following way: "If there is a local reference (following a colocation
> strategy) then !only! use that connection"
> Maybe the failover works fine if at the servlet we are using clustered
EJB's
> that running only on other machines, but if they are running on this one
the
> colocation strategy makes the behaviour go bad... For instance, clearing
the
> "list of possible replicas" favouring the local one... And not only
> favouring but restricting the use to that one only!
>
> Here goes the stack trace you requested, and as you can see, there is a
"HA"
> object in the middle...
>
> 12:09:44,247 INFO  [STDOUT] Servlet: OOPS! Apanhei excepcao na utilizacao
> dos EJB's: java.rmi.NoSuchObjectException: Could not activate; failed to
> recover session (session as been probably removed by session-timeout)
> 12:09:44,247 ERROR [STDERR] java.rmi.NoSuchObjectException: Could not
> activate; failed to recover session (session has been probably removed by
> session-timeout)
> 12:09:44,247 ERROR [STDERR] at
>
org.jboss.ejb.plugins.StatefulHASessionInstanceCache.get(StatefulHASessionIn
> stanceCache.java:124)
> 12:09:44,247 ERROR [STDERR] at
>
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
> ionInstanceInterceptor.java:212)
> 12:09:44,247 ERROR [STDERR] at
>
org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownIntercept
> or.java:172)
> 12:09:44,257 ERROR [STDERR] at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
> 12:09:44,257 ERROR [STDERR] at
>
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
> 380)
> 12:09:44,257 ERROR [STDERR] at
> org.jboss.ejb.Container.invoke(Container.java:738)
> 12:09:44,257 ERROR [STDERR] at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
> 12:09:44,257 ERROR [STDERR] at
> org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:99)
> 12:09:44,267 ERROR [STDERR] at
>
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
> 12:09:44,267 ERROR [STDERR] at
>
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77
> )
> 12:09:44,267 ERROR [STDERR] at
> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
> 12:09:44,267 ERROR [STDERR] at
>
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce
> ptor.java:117)
> 12:09:44,267 ERROR [STDERR] at
> org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> 12:09:44,277 ERROR [STDERR] at $Proxy25.CalculateAdd(Unknown Source)
> 12:09:44,277 ERROR [STDERR] at
> web_counter.processRequest(web_counter.java:89)
> 12:09:44,277 ERROR [STDERR] at web_counter.doGet(web_counter.java:124)
> 12:09:44,277 ERROR [STDERR] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 12:09:44,277 ERROR [STDERR] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 12:09:44,287 ERROR [STDERR] at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
> 12:09:44,287 ERROR [STDERR] at
>
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
> er.java:294)
> 12:09:44,287 ERROR [STDERR] at
> org.mortbay.jetty.servlet

Re: [JBoss-user] NoSuchObjectException: Could not activate; failed to recover session

2003-07-15 Thread Joao Clemente

- Original Message - 
From: "Scott M Stark" <[EMAIL PROTECTED]>
Subject: Re: [JBoss-user] NoSuchObjectException: Could not activate; failed
to recover session


> Show the full stacktrace of this error to demonstrate that the request is
in
> fact going through an HA capable proxy.
>

Well, it if makes sense or not, I don't know... But I've done every
experiment that I was able to think of and I can assure you that you'll see
this behaviour executing these steps:
1 - Interact with the server JB1. (that has a distributed servlet that
invoques a clustered session EJB)
2 - Send JB1 down
3 - Get JB1 up again
4 - Interact with the same server JB1

if you do a set between 2 and 3, connecting to JB2, this test will not fail.
I guess its due to some reference being updated in the sub or proxy that is
kept in the user (servlet) side.

One other tought: Is it possible that the failover logic is broken in the
following way: "If there is a local reference (following a colocation
strategy) then !only! use that connection"
Maybe the failover works fine if at the servlet we are using clustered EJB's
that running only on other machines, but if they are running on this one the
colocation strategy makes the behaviour go bad... For instance, clearing the
"list of possible replicas" favouring the local one... And not only
favouring but restricting the use to that one only!

Here goes the stack trace you requested, and as you can see, there is a "HA"
object in the middle...

12:09:44,247 INFO  [STDOUT] Servlet: OOPS! Apanhei excepcao na utilizacao
dos EJB's: java.rmi.NoSuchObjectException: Could not activate; failed to
recover session (session as been probably removed by session-timeout)
12:09:44,247 ERROR [STDERR] java.rmi.NoSuchObjectException: Could not
activate; failed to recover session (session has been probably removed by
session-timeout)
12:09:44,247 ERROR [STDERR] at
org.jboss.ejb.plugins.StatefulHASessionInstanceCache.get(StatefulHASessionIn
stanceCache.java:124)
12:09:44,247 ERROR [STDERR] at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.java:212)
12:09:44,247 ERROR [STDERR] at
org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownIntercept
or.java:172)
12:09:44,257 ERROR [STDERR] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
12:09:44,257 ERROR [STDERR] at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
380)
12:09:44,257 ERROR [STDERR] at
org.jboss.ejb.Container.invoke(Container.java:738)
12:09:44,257 ERROR [STDERR] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
12:09:44,257 ERROR [STDERR] at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:99)
12:09:44,267 ERROR [STDERR] at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
12:09:44,267 ERROR [STDERR] at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77
)
12:09:44,267 ERROR [STDERR] at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
12:09:44,267 ERROR [STDERR] at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce
ptor.java:117)
12:09:44,267 ERROR [STDERR] at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
12:09:44,277 ERROR [STDERR] at $Proxy25.CalculateAdd(Unknown Source)
12:09:44,277 ERROR [STDERR] at
web_counter.processRequest(web_counter.java:89)
12:09:44,277 ERROR [STDERR] at web_counter.doGet(web_counter.java:124)
12:09:44,277 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
12:09:44,277 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
12:09:44,287 ERROR [STDERR] at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
12:09:44,287 ERROR [STDERR] at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
12:09:44,287 ERROR [STDERR] at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
12:09:44,287 ERROR [STDERR] at
org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
12:09:44,287 ERROR [STDERR] at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:505)
12:09:44,297 ERROR [STDERR] at
org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
12:09:44,297 ERROR [STDERR] at
org.mortbay.http.HttpServer.service(HttpServer.java:879)
12:09:44,307 ERROR [STDERR] at
org.jboss.jetty.Jetty.service(Jetty.java:460)
12:09:44,307 ERROR [STDERR] at
org.mortbay.http.HttpConnection.service(HttpConnection.java:770)
12:09:44,307 ERROR [STDERR] at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:932)
12:09:44,307 ERROR [STDERR] at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:787)
12:09:44,317 ERROR [STDERR] at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)

Solved?!? (Re: [JBoss-user] [Cluster test app] fails to recover ejb session?)

2003-07-14 Thread Joao Clemente
Well, I can't explain why, but I've setup my cluster with the a loadbalancer
in front, instead of interacting directly with one of the jboss servers, and
this way I don't have an exception...
If someone has followed the problem I described here, I have an hipoteses
for what was happening, but I would like it validated:

By using a load balancer, when JB1 goes down, the requests are directed to
JB2 wich is able to provide updated references to the user stub (by
piggybacking). When JB1 comes up again, those references are again updated
with a pointer to a NEW AND DIFFERENT ejb stub in JB1... and that is why ot
works!

What could be happening was that JB1 was goind down, but the user stub kept
the reference for it, one that would become invalid. When JB1 came up again,
it would create a new ejb with the correct session values but whose
reference was different. User then tried to interact, the user stub would
see JB1 up and try that old reference (invalid). I don't know why at that
time it would not failover to JB2 but...

I'll try to validate this using the java application that I got working, but
using a longer time separating 2 interactions, so long that it would enable
for JB1 to go down and up before a connection got redirected to JB2..




---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] NoSuchObjectException: Could not activate; failed to recover session

2003-07-14 Thread Joao Clemente
I debugged further to understand the problem and I've reached this
exception:

java.rmi.NoSuchObjectException: Could not activate; failed to recover
session (session has been probably removed by session-timeout)

I hope this brings someone a clue for what is happening, 'cause it sure
isn't bringing me one..
I'm applying the same reasoning I use for httpSession: The sessions are
replicated in both servers. When JB1 goes down, JB2 keeps a copy of the
session that was in use. When JB1 comes up again, it syncs with JB1 and get
(again) the session that was in use. When the user connects to JB1, the
session is reactivated.

As far as I can understand, this is what happens with my java client app: It
keeps calling the a ejb instance that is replicated in both servers. The sub
know there are JB1 and JB2 that provide that ejb method/instance. When JB1
goes down, the stub redirects to JB2. Eventually JB1 comes up and the stub
knows that by a piggibacked message retrived by JB2. Then it can call JB1
again (for instance, it JB2 goes down).

The difference I have here is that the client is a servlet, and not a java
app. But I guess ths same reasoning should apply...

Unless...

There is one other difference: The calling instances: With my java client, I
do calls when

  1- Both servers are up
  2- JB1 is down
  3- JB1 is up again

with the servlet, I'm doing the calls 1 and 3 (as I'm not using a front-end
balancer, I can't invoke the servlet when JB1 is down as my http requests
are send directly to JB1)

But I'm not sure if this makes a diference or not...

- Original Message -
From: "Joao Clemente" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 13, 2003 8:21 PM
Subject: [JBoss-user] [Cluster test app] fails to recover ejb session?




---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Cluster test app] fails to recover ejb session?

2003-07-13 Thread Joao Clemente
I'm using JBoss 3.0.8 and testing clustering failover, in particular the
recovery of a ejb session.
I would like to ask if someone as executed such test and has suceeded with
it.
(Strangely I was almost sure I had good results in this test some months
ago, with a previous JBoss version)
I am having the feeling the error is somewhere in the way I've written the
test, but here goes:


Test Case:
2 servers in a clusters, JB1 and JB2, no load balancing involved. Cluster
here is setup to test the ability to replicate and recover a session after a
node failure.
Client connects (with IE) to a webpage in JB1. That page counts the number
of times that session has been used.
JB1 is shutdown, then out back up.
Client then interacts again with JB1. The expected result is a incremented
counter, just as if the server had not failed.

Test Application design and racionale:
1 statefull ejb, wich has a "int increment()" function, returning a "i++"
whose "i" is inited to "0" at ejb creation.
1 servlet that:
  - if httpSession.isNew, creates a ejb connection and calls increment().
Keeps the connection in httpSession context.
  - otherwise, calls increment on the already connected ejb.
  + increment a counter that represents the number of times that httpSession
has been used.
  + gives control to a jsp
1 jsp that returns a page to the client stating:
   a) number of times that httpSession has been called
   b) the return value of the ejb increment() call.

I've tested the ejb failover by using a java app calling the ejb directly.
It worked.

On this web test I described, what happens is that, after JB1 gets shutdown
and restarted, i get a page that correctly indicates the httpSession count
number. However, I don't get the correct value of the statefull ejb.
I wonder... is there a need for a special "ejb recovery" coding? I don't
understand why I can get this ejb value right trough the client java app,
but not through this servlet..

Anyone faced a problem like this?
And, btw, in theory, is ejb session recovery similar to httpSession
recovery?





---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Is there a maxNewConnections limit set to +-about 20-30 somewhere?!?

2003-07-04 Thread Joao Clemente
The new problem I'm having:
Trying to figure out the maximum number of concurrent connections that my
server deals with, I'm being able to open more than 20 connections at a
time, and less than 30 connections... The strange thing is that this value
only applies to the new connections I'm trying to open...

For instance, supose I try to start 40 threads and 10 fails to connect. 30
are connected. Now, again with the same 40 threads, I try to do another
request. the 40 threads work fine!
So, I supose that this second interaction is of 30 already active
connections + 10 new connections, so the server does not complain...
There doesn't seem to be a magic number... sometimes I get 28 connections
ok, sometimes I get about 25..

I tought of checking the http listener configuration.. but I have:

  
10
100

and this value does not match the cenario I'm having ... I changed the falue
for 50/200 and I kept having problems so it's not from there...

Any other places to look for?
I'm using Jboss 3.0.8
Thank you



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Problem after problem... (Re: [JBoss-user] http session clustering)

2003-07-03 Thread Joao Clemente
 I know JBoss is useable with hundrends of clients. I know it! I see
it with my own short j2ee apps that I wrote for testing with my clustered
setup!
  This app, with a "no-cluster" environment breaks with 5 clients! It's
impossible to but this in a cluster and make it work better... it sucks,
period!


But time keeps running and my thesis, my "scalable and fault-tolerant
middleware for a j2e appp" is going down the drain... no way this app is
going to be useable under load... and I keep banging my head on the wall
each time I run my tests, see the exceptions, and think to my self... "ok...
where is it now? is it my test code? is it the app? is is the xyz lib that
the app uses? maybe it's the foo lib... maybe the mail server fault? maybe
jboss this time? maybe this java vm implementation has a bug... maybe
the..."


sometimes I'm over a week or two without doing progress... I wake up in the
morning, I just feel like crying and I think "why tha hell didn't I went for
medicine school? what 'tha heck... maybe I can still be a plumber or
something... maybe I should just be in bed..."


- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, June 08, 2003 5:22 AM
Subject: RE: [JBoss-user] http session clustering


> You're problem is still not resolved Joao?!?
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Joao Clemente
> > Sent: vendredi, 6. juin 2003 14:48
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] http session clustering
> >
> >
> >
> > - Original Message -
> > From: "Stefano Maestri" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, June 06, 2003 10:44 AM
> > Subject: Re: [JBoss-user] http session clustering
> >
> >
> > > Thanks, it works.
> > > just a suggestion add this on your very good "JBoss
> > Clustering" docs.
> > > And another thing: I read in jbossbook3.2.1 draft docs in
> > chapter "Using
> > > Clustering with Tomcat" this phrase:
> > > "If you are using a load balancer, make sure that your
> > setup uses sticky
> > > session".
> > > I'm agree that's better to use it to reduce the overload on
> > JBoss, but it
> > is
> > > not necessary. Isn't it?
> > > BTW we are using since 2 year LVS (LinuxVirtualServer) as
> > load balancer
> > with
> > > JBoss, are you interested in my experience to integrate
> > something about
> > LVS
> > > in your docs exactly as you did for apache?
> >
> >
> > At least I am! I am trying to get that setup working correctly for an
> > entreprise app for over a year now..
> > This is my unversisty final work, and it has been delayed
> > forever as I'm
> > being unable to locate all the changes I need to do to get my app with
> > fault-tolerance features...
> > Every time I need to recover sessions (in particular http
> > session) I have a
> > really hard time 'till I find out where all those exceptions
> > come from...
> > I think the problem lies deep inside the app I'm using: It
> > uses some objects
> > kept inside the http session that are not serializable and
> > therefore there
> > is a need to recover them in a application level..
> > In particular, I also setup a LVS with LVS-DR (I once had it
> > with LVS-NAT)
> > and in the end I had to enable persistence so that each user
> > session sticks
> > with a single server...
> > So, if you had some approach for the problems found during the cluster
> > setup, I would love to hear it...



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] http session clustering

2003-06-06 Thread Joao Clemente

- Original Message - 
From: "Stefano Maestri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2003 10:44 AM
Subject: Re: [JBoss-user] http session clustering


> Thanks, it works.
> just a suggestion add this on your very good "JBoss Clustering" docs.
> And another thing: I read in jbossbook3.2.1 draft docs in chapter "Using
> Clustering with Tomcat" this phrase:
> "If you are using a load balancer, make sure that your setup uses sticky
> session".
> I'm agree that's better to use it to reduce the overload on JBoss, but it
is
> not necessary. Isn't it?
> BTW we are using since 2 year LVS (LinuxVirtualServer) as load balancer
with
> JBoss, are you interested in my experience to integrate something about
LVS
> in your docs exactly as you did for apache?


At least I am! I am trying to get that setup working correctly for an
entreprise app for over a year now..
This is my unversisty final work, and it has been delayed forever as I'm
being unable to locate all the changes I need to do to get my app with
fault-tolerance features...
Every time I need to recover sessions (in particular http session) I have a
really hard time 'till I find out where all those exceptions come from...
I think the problem lies deep inside the app I'm using: It uses some objects
kept inside the http session that are not serializable and therefore there
is a need to recover them in a application level..
In particular, I also setup a LVS with LVS-DR (I once had it with LVS-NAT)
and in the end I had to enable persistence so that each user session sticks
with a single server...
So, if you had some approach for the problems found during the cluster
setup, I would love to hear it...



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] session bug?

2003-03-27 Thread Joao Clemente
On Wed, Mar 26, 2003 at 07:45:55PM -0500, Dan K. wrote:

> I believe there is a bug with getting the session in JBoss 3.0.6 using the
> "all" configuration with  in web.xml.  The behavior is
> that every request to my test servlet gets a new session id (new session
> is created).
> 
> If I remove the  element from web.xml then it works as
> expected, which means the current session is kept and the id is the same
> on each request.
> 
> I was actually trying to get session replication in a clustered setup to
> work and found this while investigating.  Can anyone verify?

It works at least for simple setups. (I have some weird object on my
session that I can't serialize and I can't understand why)
Tip: Have you enabled the JGStore in jbossweb.sar?

How is your setup that when you remove the "distributable" you still can
keep session on a lb environment? I'm guessing you're not load balancing
at this time, right?


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] ClusteredHttpSession Question

2002-08-12 Thread Joao Clemente

- On Fri, 09 Aug 2002 14:05:34 -0700 
Greg Turner <[EMAIL PROTECTED]> wrote:

> I am looking for a free software solution to load balance http requests
> to multiple instances of JBoss/Jetty in a cluster inorder to test
> ClusteredHttpSessions.  Any ideas?  What does everyone else use?

Well, I'm also still looking for the solution, but I'll gonna try shortly a software 
named "pound". I'm not sure about the webpage, you'll have to look for it on freshmeat.
There are plenty of solutions, so I also would like to see some replies to this thread.

Hope this helps and thank you.

-- 
   ___   _ From Scratch 3.1 - Kernel 2.4.16 on a i686 - up 18 min
  /  /  (_)__  __   __  Life is too short for problems
 /  /__/ / _ \/ // /\ \/ / João Pedro Clemente
/_/_/_//_/\___/ /_/\_\jpcl @ rnl.ist.utl.pt


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] If http session is replicated.. no need for session affinity?

2002-07-24 Thread Joao Clemente


Hi.
As I was looking for a good load balancing solution for JBoss, it just came to my mind 
this question:

If httpSession is replicated, all machines have all session instances in memory... So, 
there is no need to use a "sticky-session" load balancing algorithm, right?
Furthermore, as we do not need to check the session, we don't need a layer-7 LB, so we 
can use a simpler/faster layer-4 LB without a problem! 

Or maybe there is something I am not seeing and it's still better to redirect the 
client to the same machine?

-- 
/--  João Pedro Clemente    jpcl @ rnl.ist.utl.pt  -
|  There are no hard things. You're just misprepared
| Powered by a i686 cpu running Linux 2.4.16 (LFS 3.1)  -  47 min uptime
\---


---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] So simple that I can't find it...

2002-07-21 Thread Joao Clemente


> Did you download just the binaries?  If so, go to this URL and download the
> source.  Then go to build directory and run the build script.  Then go to
> cluster/output/lib where you will find the sar file.

Yes, I downloaded the binaries... Ok, I'll do that 
 
> http://prdownloads.sourceforge.net/jboss/?sort_by=date&sort=desc
 

I just saw the filesize...  jboss-3.0.0-src.tgz -> 45681 kb  Geez, this must be 
binary+source all toguether!
If not, how can we have a   jboss-3.0.1RC1-src.tgz -> 19795 kb only ???

Will get some sleep first and then try to build that. See U tomorrow and thank you!

-- 
"Did I really see something referring to "heap buckets" go flying past?
I know I saw something about buckets, and Linux seems happy my machine
has them." - David Coursey , ZDNet article.
João Pedro Clemente - jpcl @ rnl.ist.utl.pt - Linux 2.4.16 on a i686


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] So simple that I can't find it...

2002-07-21 Thread Joao Clemente


> You need to copy the jbossha-httpsession.sar into the deploy directory. This
> file can be found, in one of the docs subfolders.

Sorry but I looked and looked and there is no such file. 
Maybe it's only on 3.0.1 RC ? Or maybe in the JbossTomcat version? 
I am using 3.0.0 (with Jetty)

-- 
"Put your hand on a hot stove for a minute and it will look like 3:15.
 Go out with a nice girl for 3:15 and it will look like a minute.
 That's RELATIVITY!" - Albert Einstein (adapted)
João Pedro Clemente - jpcl @ rnl.ist.utl.pt - Linux 2.4.16 on a i686


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user