jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cihat güzel <c.guzel....@gmail.com>
Subject Re: why hostname is localhost?
Date Wed, 11 Sep 2013 14:18:10 GMT
Yes I did as follows:

1. I already had edited /etc/hosts file.
2. I used a static IP instead of DHCP server.
3. RMI_HOST_DEF="-Djava.rmi.server.hostname=10.6.149.95
       or
    RMI_HOST_DEF="-Djava.rmi.server.hostname=$(ifconfig eth0 | sed -n
'2s/[^:]*:[ \t]*\([^ ]*\) .*/\1/p')"
 at "./jmeter-server"
4. JVM_ARGS="-Djava.rmi.server.hostname=10.6.149.95
      or
    JVM_ARGS="-Djava.rmi.server.hostname=$(ifconfig eth0 | sed -n
'2s/[^:]*:[ \t]*\([^ ]*\) .*/\1/p')"
at "./jmeter"


It didn't change.


2013/9/11 Flavio Cysne <flaviocysne@gmail.com>

> Did you configure both JMeter server and client?
>
> The first solution, suggested by sebb, is what I'm using here and it did
> work for me.
>
>
> 2013/9/11 cihat güzel <c.guzel.src@gmail.com>
>
> > Thanks Flavio,
> >
> > I tried your solution but it didn't change.
> >
> >
> > 2013/9/11 Flavio Cysne <flaviocysne@gmail.com>
> >
> > > Two possible solutions:
> > >
> > > 1. As suggested by sebb, localhost in /etc/hosts should be associated
> to
> > > your current IP, not to 127.0.0.1 (loopback). You'll have to edit
> > > /etc/hosts and change 127.0.0.1 with your current IP.
> > >
> > > 2. If machines' IPs change a lot (because of DHCP server) you could use
> > > -Djava.rmi.server.hostname=$(ifconfig eth0 | sed -n "2s/[^:]*:[
> \t]*\([^
> > > ]*\) .*/\1/p") in your command line.
> > > This command line will return your current IP (if the network interface
> > > used is other than eth0, change it).
> > >
> > > As described in jmeter-server file, you have to add the variable below
> to
> > > command line if you can neither change /etc/hosts nor fixate IP
> address.
> > > jmeter-server executable command-line will look like this
> > > $> RMI_HOST_DEF="-Djava.rmi.server.hostname=$(ifconfig eth0 | sed -n
> > > '2s/[^:]*:[ \t]*\([^ ]*\) .*/\1/p')" ./jmeter-server
> > >
> > >
> > > Both solutions work also for jmeter executable file. The second one is
> a
> > > bit different 'cause you'll have to change RMI_HOST_DEF with JVM_ARGS
> > > $> JVM_ARGS="-Djava.rmi.server.hostname=$(ifconfig eth0 | sed -n
> > > '2s/[^:]*:[ \t]*\([^ ]*\) .*/\1/p')" ./jmeter
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message