jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: How to use jmeter with NAT?
Date Fri, 20 Feb 2009 17:00:47 GMT
On 19/02/2009, Thorsten von Eicken <tve@rightscale.com> wrote:
> Question: does the server make RMI calls to the client, or only the client
> to the server? That's gonna affect how much work I need to do to get this
> going...

I'm not sure what you mean by an RMI call. The client sets up the
initial connection, but the server sends data back to the client.

>  Thanksm
>         Thorsten
>
>
>  sebb wrote:
>
> > On 17/02/2009, Thorsten von Eicken <tve@rightscale.com> wrote:
> >
> > >
> > >  sebb wrote:
> > >
> > >
> > > > On 17/02/2009, Thorsten von Eicken <tve@rightscale.com> wrote:
> > > >
> > > >
> > > > > I have the following situation:
> > > > >  1. jmeter client in office behind NAT
> > > > >  2. jmeter servers in Amazon EC2 behind NAT
> > > > >  3. I can open any firewall ports, that's not a problem
> > > > >
> > > > >  It looks to me like the above config is impossible. When the client
> > > > > contacts the server, it receives responses with the local IP address
> at
> > > > >
> > > >
> > > the
> > >
> > > >
> > > > > server embedded inside. The client then seems to try to connect to
> the
> > > > >
> > > >
> > > local
> > >
> > > >
> > > > > IP of the server, which won't work. In other posts, others suggested
> > > > >
> > > >
> > > that
> > >
> > > >
> > > > > the server tries to connect back to the client?
> > > > >
> > > > >
> > > > That's not a port problem, it's a local host definition problem.
> > > >
> > > > RMI sends the host details back to the client which is what the client
> > > > then uses.
> > > >
> > > > See:
> > > >
> > > >
> > > >
> > >
> http://jakarta.apache.org/jmeter/usermanual/remote-test.html#tips
> > >
> > > > and also look in the jmeter-server script files.
> > > >
> > > >
> > >  Thanks for the pointers, unfortunately I need more help... I'm starting
> the
> > > server using:
> > >  ./jmeter-server -Dsun.rmi.loader.logLevel=verbose
> > > -Djava.rmi.server.hostname=tve-jmeter1.rightscale.com
> > >
> >
> > That may be too late - try defining the properties in the script file.
> >
> > Which version of JMeter are you using?
> > Please upgrade to 2.3.2 if necessary.
> >
> >
> > >  Where the above hostname is the external DNS name of the server. I also
> > > have the following in /etc/hosts, just in case:
> > >  174.129.179.214   tve-jmeter1.rightscale.com
> > >
> > >  I'm seeing the following log messages which concern me (I'm not a Java
> guy,
> > > so I don't understand the subtleties):
> > >
> > >  Feb 16, 2009 9:48:20 PM sun.rmi.server.LoaderHandler loadClass
> > >  FINER: RMI TCP Connection(1)-10.254.163.240: (thread context class
> loader:
> > > org.apache.jmeter.DynamicClassLoader@12152e6)
> > >  Feb 16, 2009 9:48:20 PM sun.rmi.server.LoaderHandler loadClass
> > >  FINER: RMI TCP Connection(1)-10.254.163.240: class
> > > "org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub"
> > > found via thread context class loader (no security manager: codebase
> > > disabled), defined by
> > > org.apache.jmeter.DynamicClassLoader@12152e6
> > >
> > >  10.254.163.240 is the internal address if the server.
> > >
> >
> > That is the problem - looks like the server hostname property did not
> take.
> >
> > What JVM are you using?
> >
> >
> > > What I don't like is
> > > the "no security manager: codebase disabled" message.
> > >
> >
> > I don't know if that is important or not, but you need to fix the
> > server IP address.
> >
> >
> > > In the tips section
> > > that you referenced, it says
> > > "-Djava.security.policy=`dirname $0`/[policy_file]"
> and
> > > "also create a policy file". What am I supposed to stick into that
> policy
> > > file? Is there a simple "allow anyone to do anything" rule? I couldn't
> find
> > > anything in the manual.
> > >
> >
> > This is a Java policy file - but I would not bother with it.
> >
> >
> > >  On the client it all dies with the following error in the log:
> > >  2009/02/16 19:02:39 ERROR - jmeter.gui.action.RemoteStart: Failed to
> > > initialise remote engine java.rmi.NotBoundException: JMeterEngine
> > >        at
> > >
> sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
> > >        at
> > > sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown
> Source)
> > >        ...
> > >
> > >  Help appreciated,
> > >
> >
> > What does the JMeter server log say?
> >
> >
> > >  Thorsten - RightScale
> > >
> > >
> ---------------------------------------------------------------------
> > >  To unsubscribe, e-mail:
> > > jmeter-user-unsubscribe@jakarta.apache.org
> > >  For additional commands, e-mail:
> > > jmeter-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message