Quantcast

Cannot setup remote console IP

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Cannot setup remote console IP

Javier Farias
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=C:\\Users\\admin\\Desktop\\grinder-3.11\\scripts\\grinder.py
grinder.consoleHost=192.168.0.109
grinder.consolePort=6372
grinder.processIncrement=500
grinder.threads=500
grinder.runs=0
grinder.processIncrementInterval=1000

I launch the agent process with:

set GRINDERPATH=C:\Users\admin\Desktop\grinder-3.11
set GRINDERPROPERTIES=grinder.properties
set CLASSPATH=%GRINDERPATH%\lib\grinder.jar;%CLASSPATH%
set JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_121
PATH=%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=false 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cannot setup remote console IP

olivier merlin
Hi,
Use -Dgrinder.consoleHost=xxx on your java agent startup script
Cheers

Le lun. 30 janv. 2017 19:07, Javier Farias <[hidden email]> a écrit :
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=C:\\Users\\admin\\Desktop\\grinder-3.11\\scripts\\grinder.py
grinder.consoleHost=192.168.0.109
grinder.consolePort=6372
grinder.processIncrement=500
grinder.threads=500
grinder.runs=0
grinder.processIncrementInterval=1000

I launch the agent process with:

set GRINDERPATH=C:\Users\admin\Desktop\grinder-3.11
set GRINDERPROPERTIES=grinder.properties
set CLASSPATH=%GRINDERPATH%\lib\grinder.jar;%CLASSPATH%
set JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_121
PATH=%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=false 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cannot setup remote console IP

Joel Lucuik
An example..

nohup /test_data/java/jdk1.8.0_11/bin/java -cp /test_data/grinder/lib/grinder.jar: -Dgrinder.console.httpHost=grinder_console_host net.grinder.Console > ~/grinderConsoleoutput.log 2>&1 &

Joel


On Jan 30, 2017 1:51 PM, "olivier merlin" <[hidden email]> wrote:
Hi,
Use -Dgrinder.consoleHost=xxx on your java agent startup script
Cheers

Le lun. 30 janv. 2017 19:07, Javier Farias <[hidden email]> a écrit :
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=C:\\Users\\admin\\Desktop\\grinder-3.11\\scripts\\grinder.py
grinder.consoleHost=192.168.0.109
grinder.consolePort=6372
grinder.processIncrement=500
grinder.threads=500
grinder.runs=0
grinder.processIncrementInterval=1000

I launch the agent process with:

set GRINDERPATH=C:\Users\admin\Desktop\grinder-3.11
set GRINDERPROPERTIES=grinder.properties
set CLASSPATH=%GRINDERPATH%\lib\grinder.jar;%CLASSPATH%
set JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_121
PATH=%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=false 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use
Loading...