aspose file tools*
The moose likes Tomcat and the fly likes Issues with distributed JMeter and ${_StringFromFile()} function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Issues with distributed JMeter and ${_StringFromFile()} function" Watch "Issues with distributed JMeter and ${_StringFromFile()} function" New topic
Author

Issues with distributed JMeter and ${_StringFromFile()} function

Ajit Wagh
Greenhorn

Joined: Jul 02, 2007
Posts: 1
Hello Guys,

I have setup Jmeter in distributed mode.
In mater jmeter test plan - the file contining url is provided using
function ${_StringFromFile(FILE)}.
Location for FILE is JMeters bin directory.

On local machine JMeter could read FILE and request ads mentioned in FILE,
but on remote machine I could see file not found error. This error was
resolved by copying FILE in slave Jmeters \bin directory.
But on some remote machines... I could see file not found error in
jmeter.log even though FILE was available in jmeters \bin directory - I
further dig down the issue and I found that.

After further digging the issue - I found
1. Master jmeter location is C:\JmeterServer
2. The slave jmeters where problem encountered - the Jmeter location is
D:\JMeterServer

If I change Jmeter slave location to C:\JmeterServer the problem solved =85
but I need to do it on more than 20 machines... and some machines are unix
machines and its impossible to arrange C:\JmeterServer path in unix.

Another solution I tried is hardcode path in ${_StringFromFile(FILE)}
function
e.g. ${_StringFromFile(C:\\FILE)} and ${_StringFromFile(C:/FILE)}, but slav=
e
jmeter log file says =85 C:\\FILE not found.

Can anybody help me in solving this problem?

JMeter.log file error is :---

INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2007/07/02 09:19:49 INFO - jmeter.functions.StringFromFile:
setParameters(C:\\FILE)
2007/07/02 09:19:49 INFO - jmeter.functions.StringFromFile: Thread-119
opening file C:\FILE
2007/07/02 09:19:49 ERROR - jmeter.functions.StringFromFile: openFile()
error: java.io.FileNotFoundException: C:\FILE (The system cannot find the
file specified)
2007/07/02 09:19:49 INFO -
jmeter.samplers.RemoteListenerWrapper: Test Started on 10.25.16.181
2007/07/02 09:19:49 INFO - jmeter.samplers.RemoteListenerWrapper: Test
Started on 10.25.16.181
2007/07/02 09:19:49 INFO - jmeter.samplers.RemoteListenerWrapper: Test
Started on 10.25.16.181
2007/07/02 09:19:50 INFO - jmeter.engine.StandardJMeterEngine: Starting 10
threads for group Thread Group. Ramp up =3D 1.
2007/07/02 09:19:50 INFO - jmeter.engine.StandardJMeterEngine : Continue o=
n
error
2007/07/02 09:19:50 INFO - jmeter.threads.JMeterThread: Thread Thread Grou=
p
1-1 started
2007/07/02 09:19:50 INFO
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issues with distributed JMeter and ${_StringFromFile()} function