Hi Sacha,
Apologies if I am confusing things. I have a Stateless Session EJB
declared now as
<clustered>true</clustered>.
The code I am running is the following:
TestHome testHome = (TestHome)
javax.rmi.PortableRemoteObject.narrow(
ctx.lookup("EJB/Session/Test"),
TestHome.class);
Test test = testHome.create();
System.out.println("Hello: " + test.hello());
for(int i = 0; i < 200; i++)
{
Integer myPrime = test.getPrimeAtPosition(i);
System.out.println("Thread " + Thread.currentThread().getName() +
":\tPrime @ position "+ i +": " + myPrime);
}
And all the calls get sent to the same member.
Any idea?
Thanks
Simone
----- Original Message -----
From: "Sacha Labourey" <sacha.labourey@(protected)>
To: <jboss-user@(protected)>
Sent: Thursday, August 14, 2003 5:07 PM
Subject: RE: [JBoss-user] Load-Balancing Problems
What kind of EJB is that?
> -----Original Message-----
> From: jboss-user-admin@(protected)
> [mailto:jboss-user-admin@(protected)
> Simone Milani
> Sent: jeudi, 14. ao�t 2003 16:52
> To: jboss-user@(protected)
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Hi,
>
> I use 3.2.2RC2 and the default config for round robin.
> to have the call
> span the whole cluster in round robin I need to lookup the
> home every time
> which is not very efficient. I would like to do the lookup
> and the create
> only one and do round robin after that. Is it possible?
>
> Thanks!
>
> Simone
> ----- Original Message -----
> From: "Sacha Labourey" <sacha.labourey@(protected)>
> To: <jboss-user@(protected)>
> Sent: Wednesday, August 13, 2003 8:28 AM
> Subject: RE: [JBoss-user] Load-Balancing Problems
>
>
> Then that is very strange as with 3.2.x you should be able to
> re-create your
> home/remote and keep balancing correctly.
>
> > -----Original Message-----
> > From: jboss-user-admin@(protected)
> > [mailto:jboss-user-admin@(protected)
> > Christofer Dutz
> > Sent: mercredi, 13. ao�t 2003 00:18
> > To: jboss-user@(protected)
> > Subject: Re: [JBoss-user] Load-Balancing Problems
> >
> >
> > I am using 3.2.2RC2 ...
> >
> > Chris
> >
> > Sacha Labourey wrote:
> >
> > >... Or use 3.2.x which removes this issue.
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: jboss-user-admin@(protected)
> > >>[mailto:jboss-user-admin@(protected)
> > >>Adrian Brock
> > >>Sent: mardi, 12 ao�t 2003 17:50
> > >>To: jboss-user@(protected)
> > >>Subject: Re: [JBoss-user] Load-Balancing Problems
> > >>
> > >>
> > >>You are probably doing sessionHome.create() on every request?
> > >>
> > >>This creates a new remote interface proxy, which will
> > >>round-robin all servers. However if you only do one
> > >>invocation it will always use the first server and never get
> > >>to the others.
> > >>
> > >>You can get similar problems with other patterns in your
> > >>RemoteInterface usage depending upon how many servers you have.
> > >>
> > >>One simple solution is to use RandomRobin rather than
> > >>RoundRobin as the load balancing policy.
> > >>
> > >>Regards,
> > >>Adrian
> > >>
> > >>On Tue, 2003-08-12 at 10:41, Christofer Dutz wrote:
> > >>
> > >>
> > >>>Hi,
> > >>>
> > >>>I am having some Problems with load-balancing in JBoss.
> > >>>All Beans are set to use the RoundRobin Load-Balancing
> > strategy and
> > >>>the
> > >>>cluster seems to work like a charm.
> > >>>I setup the HA-JNDI to work on Port 1100 and setup the
> > >>>
> > >>>
> > >>client to use
> > >>
> > >>
> > >>>this port. Everything seems to work fine, except one thing.
> > >>>If I watch the load of the cluster-machines with "top" I
> > >>>
> > >>>
> > >>can see the
> > >>
> > >>
> > >>>machine that is directly accessed by the Client-Application
> > >>>has a load of 100% the other cluster nodes then are only
> > >>>
> > >>>
> > >>30%. Mabe I'm
> > >>
> > >>
> > >>>wrong, but I think that it could be, that the client proxy
> > >>>is doing no load-balancing at all and that the 30% are just
> > >>>
> > >>>
> > >>for syncing.
> > >>
> > >>
> > >>>Any Ideas of how I could balance the load over all nodes?
> > >>>Any help is realy appreciated.
> > >>>
> > >>>Christofer Dutz
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>-------------------------------------------------------
> > >>>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/psa00100003ave/direct;at.aspnet_072303_
> > >>
> > >>
> > >>>01/01
> > >>>_______________________________________________
> > >>>JBoss-user mailing list
> > >>>JBoss-user@(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/psa00100003ave/direct;at.aspnet
> > >>
> > >>
> > >_072303_01/01
> > >_______________________________________________
> > >JBoss-user mailing list
> > >JBoss-user@(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/psa00100003ave/direct;at.aspne
> > t_072303_01/01
> > >_______________________________________________
> > >JBoss-user mailing list
> > >JBoss-user@(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/psa00100003ave/direct;at.aspnet
> > _072303_01/01
> > _______________________________________________
> > JBoss-user mailing list
> > JBoss-user@(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/psa00100003ave/direct;at.aspnet
> _072303_01/01
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@(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/psa00100003ave/direct;at.aspnet
> _072303_01/01
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@(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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
JBoss-user@(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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
JBoss-user@(protected)
https://lists.sourceforge.net/lists/listinfo/jboss-user