Re: Cannot setup remote console IP

olivier merlin <[email protected]> Mon, 30 Jan 2017 18:43:38 +0000
Newsgroups gmane.comp.java.grinder.user
Message-ID <CAFjxuZOv7koT0xH282NZPaJi_B=+qh7FMPVpg8=jrWq1v+YRyQ@mail.gmail.com>
--===============4717003768195926193==
Content-Type: multipart/alternative; boundary=001a11451ca039b00305475432dc

--001a11451ca039b00305475432dc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,
Use -Dgrinder.consoleHost=3Dxxx on your java agent startup script
Cheers

Le lun. 30 janv. 2017 19:07, Javier Farias <[email protected]> a =C3=A9crit :

I cannot figure out how I can tell my agent where the console is running.

The console and the agent are in two separate machines. The agent runs on
Windows. Its grinder.properties file is:

grinder.script=3DC:\\Users\\admin\\Desktop\\grinder-3.11\\scripts\\grinder.=
py
grinder.consoleHost=3D192.168.0.109
grinder.consolePort=3D6372
grinder.processIncrement=3D500
grinder.threads=3D500
grinder.runs=3D0
grinder.processIncrementInterval=3D1000

I launch the agent process with:

set GRINDERPATH=3DC:\Users\admin\Desktop\grinder-3.11
set GRINDERPROPERTIES=3Dgrinder.properties
set CLASSPATH=3D%GRINDERPATH%\lib\grinder.jar;%CLASSPATH%
set JAVA_HOME=3DC:\Program Files (x86)\Java\jre1.8.0_121
PATH=3D%JAVA_HOME%\bin;%PATH%
java -classpath %CLASSPATH% net.grinder.Grinder %GRINDERPROPERTIES%

The agent output while starting is:

2017-01-30 13:17:46,787 INFO  agent: The Grinder 3.11
2017-01-30 13:17:47,857 WARN  agent: Failed to connect to 'localhost/
127.0.0.1:6372', proceeding without the console; set
grinder.useConsole=3Dfalse to disable this warning.
2017-01-30 13:17:47,873 INFO  agent: Worker process command line: java
'-javaagent:C:\Users\admin\Desktop\grinder-3.11\lib\grinder-dcr-agent-3.11.=
jar'
-classpath 'C:\Users\admin\Desktop\grinder-3.11\lib\grinder.jar'
net.grinder.engine.process.WorkerProcessEntryPoint
2017-01-30 13:17:48,033 INFO  agent: worker hp-ref-1-0 started

Why is it trying to connect to 127.0.0.1, if I'm changin the default
console IP in the properties file?

Thank you
---------------------------------------------------------------------------=
---
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use

--001a11451ca039b00305475432dc
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr" class=3D"gmail_msg">Hi,<br class=3D"gmail_msg">
Use -Dgrinder.consoleHost=3Dxxx on your java agent startup script<br class=
=3D"gmail_msg">
Cheers</div><span>
</span><br class=3D"gmail_msg"><div class=3D"gmail_quote gmail_msg"><div di=
r=3D"ltr" class=3D"gmail_msg">Le lun. 30 janv. 2017 19:07, Javier Farias &l=
t;<a href=3D"mailto:[email protected]" class=3D"gmail_msg" target=3D"_blank">jf=
@xipron.com</a>&gt; a =C3=A9crit=C2=A0:<br class=3D"gmail_msg"></div><block=
quote class=3D"gmail_quote gmail_msg" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr" class=3D"gmail_msg"><di=
v style=3D"font-size:12.8px" class=3D"gmail_msg">I cannot figure out how I =
can tell my agent where the console is running.</div><div style=3D"font-siz=
e:12.8px" class=3D"gmail_msg"><br class=3D"gmail_msg"></div><div style=3D"f=
ont-size:12.8px" class=3D"gmail_msg">The console and the agent are in two s=
eparate machines. The agent runs on Windows. Its grinder.properties file is=
:</div><div style=3D"font-size:12.8px" class=3D"gmail_msg"><br class=3D"gma=
il_msg"></div><div style=3D"font-size:12.8px" class=3D"gmail_msg">grinder.s=
cript=3DC:\\Users\\admin\\Desktop\\grinder-3.11\\scripts\\grinder.py</div><=
div style=3D"font-size:12.8px" class=3D"gmail_msg">grinder.consoleHost=3D19=
2.168.0.109</div><div style=3D"font-size:12.8px" class=3D"gmail_msg">grinde=
r.consolePort=3D6372</div><div style=3D"font-size:12.8px" class=3D"gmail_ms=
g">grinder.processIncrement=3D500</div><div style=3D"font-size:12.8px" clas=
s=3D"gmail_msg">grinder.threads=3D500</div><div style=3D"font-size:12.8px" =
class=3D"gmail_msg">grinder.runs=3D0</div><div style=3D"font-size:12.8px" c=
lass=3D"gmail_msg">grinder.processIncrementInterval=3D1000</div><div style=
=3D"font-size:12.8px" class=3D"gmail_msg"><br class=3D"gmail_msg"></div><di=
v style=3D"font-size:12.8px" class=3D"gmail_msg">I launch the agent process=
 with:</div><div style=3D"font-size:12.8px" class=3D"gmail_msg"><br class=
=3D"gmail_msg"></div><div style=3D"font-size:12.8px" class=3D"gmail_msg">se=
t GRINDERPATH=3DC:\Users\admin\Desktop\grinder-3.11</div><div style=3D"font=
-size:12.8px" class=3D"gmail_msg">set GRINDERPROPERTIES=3Dgrinder.propertie=
s</div><div style=3D"font-size:12.8px" class=3D"gmail_msg">set CLASSPATH=3D=
%GRINDERPATH%\lib\grinder.jar;%CLASSPATH%</div><div style=3D"font-size:12.8=
px" class=3D"gmail_msg">set JAVA_HOME=3DC:\Program Files (x86)\Java\jre1.8.=
0_121</div><div style=3D"font-size:12.8px" class=3D"gmail_msg">PATH=3D%JAVA=
_HOME%\bin;%PATH%</div><div style=3D"font-size:12.8px" class=3D"gmail_msg">=
java -classpath %CLASSPATH% net.grinder.Grinder %GRINDERPROPERTIES%</div><d=
iv style=3D"font-size:12.8px" class=3D"gmail_msg"><br class=3D"gmail_msg"><=
/div><div style=3D"font-size:12.8px" class=3D"gmail_msg">The agent output w=
hile starting is:</div><div style=3D"font-size:12.8px" class=3D"gmail_msg">=
<br class=3D"gmail_msg"></div><div style=3D"font-size:12.8px" class=3D"gmai=
l_msg">2017-01-30 13:17:46,787 INFO =C2=A0agent: The Grinder 3.11</div><div=
 style=3D"font-size:12.8px" class=3D"gmail_msg">2017-01-30 13:17:47,857 WAR=
N =C2=A0agent: Failed to connect to &#39;localhost/<a href=3D"http://127.0.=
0.1:6372/" class=3D"gmail_msg" target=3D"_blank">127.0.0.1:6372</a>&#39;, p=
roceeding without the console; set grinder.useConsole=3Dfalse to disable th=
is warning.</div><div style=3D"font-size:12.8px" class=3D"gmail_msg">2017-0=
1-30 13:17:47,873 INFO =C2=A0agent: Worker process command line: java &#39;=
-javaagent:C:\Users\admin\Desktop\grinder-3.11\lib\grinder-dcr-agent-3.11.j=
ar&#39; -classpath &#39;C:\Users\admin\Desktop\grinder-3.11\lib\grinder.jar=
&#39; net.grinder.engine.process.WorkerProcessEntryPoint</div><div style=3D=
"font-size:12.8px" class=3D"gmail_msg">2017-01-30 13:17:48,033 INFO =C2=A0a=
gent: worker hp-ref-1-0 started</div><div style=3D"font-size:12.8px" class=
=3D"gmail_msg"><br class=3D"gmail_msg"></div><div style=3D"font-size:12.8px=
" class=3D"gmail_msg">Why is it trying to connect to 127.0.0.1, if I&#39;m =
changin the default console IP in the properties file?</div><div style=3D"f=
ont-size:12.8px" class=3D"gmail_msg"><br class=3D"gmail_msg"></div><div sty=
le=3D"font-size:12.8px" class=3D"gmail_msg">Thank you</div>
</div>
---------------------------------------------------------------------------=
---<br class=3D"gmail_msg">
Check out the vibrant tech community on one of the world&#39;s most<br clas=
s=3D"gmail_msg">
engaging tech sites, SlashDot.org! <a href=3D"http://sdm.link/slashdot" rel=
=3D"noreferrer" class=3D"gmail_msg" target=3D"_blank">http://sdm.link/slash=
dot</a>_______________________________________________<br class=3D"gmail_ms=
g">
grinder-use mailing list<br class=3D"gmail_msg">
<a href=3D"mailto:[email protected]" class=3D"gmail_msg" ta=
rget=3D"_blank">[email protected]</a><br class=3D"gmail_msg=
">
<a href=3D"https://lists.sourceforge.net/lists/listinfo/grinder-use" rel=3D=
"noreferrer" class=3D"gmail_msg" target=3D"_blank">https://lists.sourceforg=
e.net/lists/listinfo/grinder-use</a><br class=3D"gmail_msg">
</blockquote></div>

--001a11451ca039b00305475432dc--


--===============4717003768195926193==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--===============4717003768195926193==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use

--===============4717003768195926193==--