tilln / jmeter-sshmon Goto Github PK
View Code? Open in Web Editor NEWSSH Monitoring Plugin for JMeter
License: MIT License
SSH Monitoring Plugin for JMeter
License: MIT License
Is it possible to use this plugin with configuration from ~/.ssh/config ?
For me it looks that this file is not taken into account. because i configured a hostname in config file and it get "unresolved Address"
Is it possible to use this plugin with a tunneled connection?
Because i need a tunnel to configure to the host where the interesting data is available
Hello,
when running a test with SSHMon collecting resource utilization data, the resulting CSV is fine when running in GUI mode. However, in non-GUI mode the timestamp column's value is 0 for all the entries.
Can you please support?
Thanks
Octavian.
I am trying to run jmeter script with shhmo listener in linux vm using non gui mode command. Gives me the below error while starting up the test.
Error Details:
./jmeter.sh -n -t XXXXX.jmx -l results.jtl -e -o XXXX/TestRun_"date +%d%m%y%s
"
Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'XXXX.jmx'.
Cause:
CannotResolveClassException: nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonCollector
Detail:com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message :
first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:66)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.save.ScriptWrapper
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonCollector
line number : 41
version : 5.4.1
I am running JMeter in Kubernetes, and wanted to see how it would be possible to get performance data from Docker instances which are generated at run-time.
I have another instance of JMeter Cluster where the VMs ( where the server runs ) has known static IP addresses. In that case it's easy to run meter-sshmon.
When running in non-GUI mode with a few hundred monitoring instances (each with a single sampler row / command), threads get stuck when JMeter tries to shutdown the JVM (irrespective of increasing the jmeter.exit.check.pause
) with log output like the following:
... end of run
The JVM should have exited but did not.
The following non-daemon threads are still running (DestroyJavaVM is OK):
Thread[Thread-430,5,main], stackTrace:java.lang.Object#wait
java.io.PipedInputStream#read
java.io.PipedInputStream#read
sun.nio.cs.StreamDecoder#readBytes
sun.nio.cs.StreamDecoder#implRead
sun.nio.cs.StreamDecoder#read
java.io.InputStreamReader#read
java.io.Reader#read
org.apache.commons.io.IOUtils#copyLarge at line:2537
org.apache.commons.io.IOUtils#copyLarge at line:2516
org.apache.commons.io.IOUtils#copy at line:2493
org.apache.commons.io.IOUtils#copy at line:2441
org.apache.commons.io.IOUtils#toString at line:1084
org.apache.commons.io.IOUtils#toString at line:1064
nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonSampler#generateSamples at line:65
kg.apc.jmeter.vizualizers.MonitoringResultsCollector#processConnectors at line:215
kg.apc.jmeter.vizualizers.MonitoringResultsCollector#run at line:122
java.lang.Thread#run
A thread dump shows locked InputStreams, which suggests the Channel is still busy reading command output:
"Thread-430" #422 prio=5 os_prio=0 tid=0x00007f3b50388800 nid=0x504b in Object.wait() [0x00007f3b328aa000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.io.PipedInputStream.read(Unknown Source)
- locked <0x00000000c1e94458> (a com.jcraft.jsch.Channel$MyPipedInputStream)
at java.io.PipedInputStream.read(Unknown Source)
- locked <0x00000000c1e94458> (a com.jcraft.jsch.Channel$MyPipedInputStream)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
- locked <0x00000000c1e964f8> (a java.io.InputStreamReader)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.Reader.read(Unknown Source)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2537)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2516)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:2493)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:2441)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:1084)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:1064)
at nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonSampler.generateSamples(SSHMonSampler.java:65)
at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.processConnectors(MonitoringResultsCollector.java:215)
at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.run(MonitoringResultsCollector.java:122)
- locked <0x00000000c015b010> (a nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonCollector)
at java.lang.Thread.run(Unknown Source)
Iām doing a performance test using Jmeter and during the test Iām collecting the statistics for backend server performance , for this purpose I use SSHMON sample collector listener in my test plan https://github.com/tilln/jmeter-sshmon
I have also configured a CSV file path to check the response data received from the server Issue is that
Data is not recorded in the CSV file and also there is no graph shown for SSHMON listener
In the jemeter logs I can see the following error
java.text.ParseException: Unparseable number: " [2J"
at java.text.NumberFormat.parse(NumberFormat.java:434) ~[?:?]
at nz.co.breakpoint.jmeter.vizualizers.sshmon.SSHMonSampler.generateSamples(SSHMonSampler.java:86) [jmeter-sshmon-1.2.jar:?]
at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.processConnectors(MonitoringResultsCollector.java:215) [jmeter-plugins-cmn-jmeter-0.6.jar:?]
at kg.apc.jmeter.vizualizers.MonitoringResultsCollector.run(MonitoringResultsCollector.java:122) [jmeter-plugins-cmn-jmeter-0.6.jar:?] at java.lang.Thread.run(Thread.java:832) [?:?]
To verify the SSH configuration and the received data format , I tried to make a SSH connection to the backend server using putty and with same user/pwd and command , I get the data in Putty , please see the attached screenshot
Do I have to change the powershell script to change the format of CPU data, if yes then in which format? I did not get any info on plugin page.
I would really appreciate if you could provide me some help for this case.
The PEM file parser does not handle OpenSSH private key files.
Hello,
i tried plugin i have some problem with parsing float i discovered that its not compatible with float with comma deliver like:
0,01 but it need 0.01 It would be nice to handle that, for these who are not familiar with Linux scripting, sed etc.. Comma delimeter is used for lots of locales.
JMeter Functions e.g. ${__P(port)}
cannot be entered in the GUI.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.