jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Cysne <flaviocy...@gmail.com>
Subject Re: why hostname is localhost?
Date Wed, 11 Sep 2013 13:56:38 GMT
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