How to use JMeterPluginsCMD command line Tool?

5,620 views
Skip to first unread message

ah2...@gmail.com

unread,
Jan 7, 2014, 2:28:40 PM1/7/14
to jmeter-...@googlegroups.com
First of all, I downloaded standard set, extras set,  extras with lib sets from Jmeter-plugins.org

In Jmeter-plugins.org installation page, its mentioned 

The tool is placed inside distribution ZIP. The tool consists of CMDRunner.jar and shell wrappers. Wrappers just shorten call of "java -jar CMDRunner.jar --tool Reporter ...". The tool files must be placed inside lib/extdirectory of JMeter installation. The tool requires JMeterPlugins.jar to be placed in lib/ext also. The tool requires JMeter 2.4 to function properly (2.3 will work only for PNG generation).

In the downloaded folder, there are only 4 files in /lib/ext directory i.e.,

CMDRunner.jar
JMeterPlugins-Standard.jar
JMeterPluginsCMD.sh
JMeterPluginsCMD.bat

Where is JMeterPlugins.jar file? There is no JMeterPluginsCMD.jar either.

Without that, I would not be able to execute the statement. I renamed JMeterPlugins-Standard.jar to JMeterPlugins.jar and executed, its showing the following error "no main manifest attribute, in JMeterPluginsCMD.jar". Same error with JMeterPluginsCMD.jar after renaming.

May be I am executing from the wrong directory. I have tried different ways, but failed all the time. For your reference I have attached a screen shot. Please correct me.

Thanks in advance.

AH
Image 1.jpg

Andrey Pohilko

unread,
Jan 8, 2014, 4:35:28 AM1/8/14
to jmeter-...@googlegroups.com, ah2...@gmail.com
Hi,

You don't need to launch JAR yourself. Just run JMeterPluginsCMD.bat file and it will do all required parameters. Also you can open JMeterPluginsCMD.bat with notepad to see which exact command line it uses to launch the server agent.

Good luck!
--
Andrey

вторник, 7 января 2014 г., 23:28:40 UTC+4 пользователь ah2...@gmail.com написал:

ah2...@gmail.com

unread,
Jan 8, 2014, 10:35:19 AM1/8/14
to jmeter-...@googlegroups.com, ah2...@gmail.com
Hey Andrey, it worked. Thanks. You are great!!!

Once I mentioned --tool Reporter, it worked.

kranti....@gmail.com

unread,
Oct 14, 2015, 10:54:26 AM10/14/15
to jmeter-plugins, ah2...@gmail.com
Hi.

Could you pls post the command to generate the graph.

You have it worked. I want to try.

Please post the command used to generate graph.

Best Regards,
Kranti

lz...@hotmail.com

unread,
Nov 4, 2015, 5:23:14 PM11/4/15
to jmeter-plugins, ah2...@gmail.com
I did run the JmeterPluginsCMD.bat,

I got below error:

C:\apache-jmeter-2.13\lib>C:\apache-jmeter-2.13\lib\JMeterPluginsCMD.bat
ERROR: java.lang.NoClassDefFoundError: org/apache/jmeter/visualizers/Visualizer
*** Problem's technical details go below ***
Home directory was detected as: C:\apache-jmeter-2.13\lib
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/jmeter/visualizers/Visualizer
        at kg.apc.cmdtools.ReporterTool.processParams(ReporterTool.java:66)
        at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:63)
        at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:174)
Caused by: java.lang.ClassNotFoundException: org.apache.jmeter.visualizers.Visualizer
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 8 more

Do you know what the problem is?

Thanks,

Andrey Pokhilko

unread,
Nov 5, 2015, 5:56:50 PM11/5/15
to jmeter-plugins, ah2...@gmail.com, lz...@hotmail.com
JMeterPluginsCMD should be installed in lib/ext , not just lib.

--
Andrey

четверг, 5 ноября 2015 г., 0:23:14 UTC+2 пользователь lz...@hotmail.com написал:

Danijel Vukovič

unread,
Jan 3, 2016, 3:03:40 PM1/3/16
to jmeter-plugins, ah2...@gmail.com

hi,

here is great code how to create graph in parallel using powershell and xml:
http://performancewebautoamtionother.blogspot.si/2015/12/jmeter-create-graphs-with-cmdrunner.html

br,Dani

Dne torek, 07. januar 2014 20.28.40 UTC+1 je oseba ah2...@gmail.com napisala:
Reply all
Reply to author
Forward
0 new messages