charles okojie
charles okojie

Reputation: 728

Cannot run Jmeter on my Linux terminal

Hey I have tried to run Jmeter (Jmeter-server.bat) on my Linux Terminal but but i get "Command not found". Jmeter is already downloaded from http://jmeter.apache.org/download_jmeter.cgi. Tried sh Jmeter.sh , ./jmeter= An error occured:null. What can i do ? By the way i'm doing all this from the lib directory. I tried sh jmeter it says : sh : 0: cannot open jmeter

Upvotes: 8

Views: 32525

Answers (4)

Disper
Disper

Reputation: 745

I has the very same problem, in my case it was caused by removing Java icon from dock with environmental variable:

export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true'

commenting this out in my ~/.bash_profile and restarting terminal fixed it for me.

Upvotes: 0

charles okojie
charles okojie

Reputation: 728

OK, I got the solution. I just used the command ./jmeter -n -t mytextplan.jmx in the bin directory I wasn't including the "./jmeter" in non GUI mode. It shows i'm in a current working directory.

Then i use

./jmeter -n -t TestPlanResult.jmx -l jmeteroutput.csv

to copy results to my csv file.

It worked!!

Upvotes: 22

CharlieS
CharlieS

Reputation: 1452

You just need to move to the bin folder.

cd ../bin
sh jmeter

*.bat files are for windows only, no point trying to run those on linux. jmeter-server is for remote slaves to communicate with a jmeter master, which is also probably not what you want at this stage.

I am assuming you already have a java installation and a desktop environment to run the GUI.

Upvotes: 1

vins
vins

Reputation: 15370

First - You should have Java installed to run JMeter.

Then, follow these steps.

1) Goto http://apache.apache.org/site/downloads/downloads_jmeter.cgi
2) Download Binary 2.11.tgz . The tgz file name will be "apache-jmeter-2.11″
3) Paste it in /usr/USERNAME/Jmeter
4) Unzip “apache-jmeter-2.11″
5) New folder with name “apache-jmeter-2.11″ will be created
6) Go to command prompt
7) go to “apache-jmeter-2.11″ folder (cd /usr/USERNAME/Jmeter/apache-jmeter-2.11)
8) go to “bin” folder (cd bin)
9) Now you are in bin folder (i.e /usr/USERNAME/Jmeter/apache-jmeter-2.11/bin/)
10) type the command “sh jmeter”
11) After a short pause, the JMeter GUI should appear.

Slightly modified for you from this.

Upvotes: 5

Related Questions