Agent not responding after initial startup

Darren Ball <[email protected]> Wed, 22 Apr 2015 12:40:24 -0400
Newsgroups gmane.comp.java.grinder.user
Message-ID <CA+YPNhf1A-XOfHJjVo=kPx2nWFyu0HzK0jqG7OJn8xK9D34WpA@mail.gmail.com>
Hi All,

I currently have jenkins jobs that are used to fire up the console on a
remote machine via SSH.
After the console is up and ports are listening, I wait and then fire up
agents remotely via SSH as well.

Console comes up and I can talk to it via service interface.  It looks like
the agents are all up.  Java processes are there, port is connected and
logging indicates that it is waiting for a console signal.

My startup for the agents is scripted as follows:
java -classpath
"/home/grinder/uber/*":/home/grinder/myapp-uber.jar:/opt/grinder/lib/grinder.jar
\
 -Dlogback.configurationFile=/home/grinder/logback.xml \
 -Dgrinder.consoleHost=$1 \
 -Dgrinder.hostID=$2 \
 -Dgrinder.logDirectory="/var/log/appbase/$(date +%y%m%d)" \
 net.grinder.Grinder -daemon 30 > /var/log/qbase/grinderagent.log 2>&1 &


I have the agent logging out to a file of which contains:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/home/grinder/uber/logback-classic-1.0.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/home/grinder/uber/slf4j-nop-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/opt/grinder/lib/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: Actual binding is of type
[ch.qos.logback.classic.util.ContextSelectorStaticBinder]
{"timestamp":"2015-04-22T16:18:59.373+00:00","logger":"agent","thread":"main","level":"INFO","HOSTNAME":"ip-10-82-151-41.localdomain","message":"The
Grinder 3.12-SNAPSHOT"}
{"timestamp":"2015-04-22T16:18:59.439+00:00","logger":"agent","thread":"main","level":"INFO","HOSTNAME":"ip-10-82-151-41.localdomain","message":"connected
to console at grinderconsole1/10.82.151.109:6372"}
{"timestamp":"2015-04-22T16:18:59.439+00:00","logger":"agent","thread":"main","level":"INFO","HOSTNAME":"ip-10-82-151-41.localdomain","message":"waiting
for console signal"}


When I attempt to distribute files, the agents are not responding (or
accepting the request to distribute).

If I kill the process and re-run the startup script a second time directly
on the machine, everything seems to work fine.
Maybe this is due to launching from within a Jenkins job via SSH, but if
that was the case, I would assume the console would have similar issues as
well?

Weird antics here.

Looks like the process is coming up orphaned as well (most likely due to
the non terminal launch) when launched from the CI.

[grinder@ip-10-82-151-41]$ netstat -an | grep 637

tcp        0      0 10.82.151.41:54335          10.82.151.109:6372
 ESTABLISHED

[grinder@ip-10-82-151-41]$ ps -ef | grep grinder

grinder    3722      1  1 16:11 ?        00:00:02 java -classpath
/home/grinder/uber/*:/home/grinder/myapp-uber.jar:/opt/grinder/lib/grinder.jar
-Dlogback.configurationFile=/home/grinder/logback.xml
-Dgrinder.consoleHost=grinderconsole1 -Dgrinder.hostID=i-a9b7265f
-Dgrinder.logDirectory=/var/log/qbase/150422 net.grinder.Grinder -daemon 30

Any insight on how to get the agents to continue to be listening or how to
debug this would be great.

Thanks,
Darren

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF

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