Hello I’m working with Jmeter 2.4 and extended it creating a jmeter components jar, placed within the ext subfolder of libs. I’ve also created some test plans jmx files. These all run find locally. I’ve placed the whole jmeter directory on my Unix box, created a shell script to start it which consists of one line.
java JVM_ARGS="-Xms1024m -Xmx1024m" jmeter -t Block1Thread-1000.jmx
I have also tried
java JVM_ARGS="-Xms512m -Xmx512m" jmeter -t Block1Thread-1000.jmx
But both return
script.sh: line 32: java: command not found
My Unix is rather 101 so I’m could be missing something silly.
Cheers
First, make sure java is properly installed, and that you have JAVA_HOME and a path to the java bin directory set in your user profile.
Next, the JVM_ARGS need to be set as an environment variable. This means that the command you’re trying to execute need to be two commands, the first being
And the second probably just being
Please note that the second command may fail, and Linux will tell you that the script is not executable. You can change that by doing:
In the /bin directory of your jmeter installation.