Giter VIP home page Giter VIP logo

jmeter-ssh-sampler's People

Contributors

antoniochiurla avatar ceazy79 avatar kenji1bm avatar njenan avatar sapradhan avatar yciabaud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jmeter-ssh-sampler's Issues

SFTP - Save failed responses to file results in empty files

Jmeter 5.4.3/ plugin version 1.2.0

To reproduce this you need to configure listener "Save responses to a file"
Then select "Failed responses only"
Run you test with many enough users to simulate failure
Inspect created files

Result: while response files exists the are empty (0 length)
Expected: Files should contain info about the error

Note: You can refer to an HTTP sample behavior

Publish to repository

Would it possible to get this code published into a repository such as maven central or jcenter? This would make it more easily usable as clients would not have to build and install it manually, instead it could be included as an entry in a maven pom file or gradle build script for example.

messy code in response data for chinese characters

In Jmeter 3.3 i am using SSH Command and running command, but some of the chinese characters are displayed as messy code,I.e. 游戏状态查询响应 displayed as 游戏状�?�查询响应, please give hand, and thanks in advance.

ps. the properties had changed to sampleresult.default.encoding=UTF-8

May I ask how to set up the UI ?

For me,there is no problem in using the project at all.However,I'm a little confused about how to set up jmeter UI interface for this project.
And thank you for sharing and l am look forward to getting your answer.

Kerberos input interrupte the process of run ssh command in Jmeter

Hi,
I meet an issue when using SSH Command sampler.
I running Jmeter in Windows10, and send ssh command to Linux machine
Jmeter version is 3.2 r1790748, jsch-0.1.54.jar in lib, ApacheJMeter_ssh-1.1.1.jar in lib/ext

I Add only one SSH Command sampler in the Thread Group with Hostname, Port, Login User name/Password, and other fields use default value

After I click run, the Jmeter UI will be waiting there. I check the cmd.exe window which used to start jmeter.bat, there ask me for username and password. Like this:
Kerberos username [ayan]: snap
Kerberos password for snap:

I need input the username and password again (which already configured in the SSH sampler page), then, Jmeter is continued to execute the command (date) in the remote Linux server.

Why Jmeter ask me Kerberos username and password?
I already input them.
In such manual step stop me to integrate ssh command sampler into my jmeter scripts.

Can you help to verify?

Not able to use SSH command in JMeter 3.0

Hi,

In Jmeter 3.0 i am using SSH Command and running command - ls . But my Jmeter hangs for infinte time and in jmeter.log getting error - jmeter.threads.JMeterThread: Sampler is not Interruptible: SSH Command

jmeter.protocol.ssh.sampler.AbstractSSHSampler: SSH connexion error com.jcraft.jsch.JSchException: java.net.UnknownHostException

Here's the exception I receive:

2016/10/06 10:57:15 ERROR - jmeter.protocol.ssh.sampler.AbstractSSHSampler: SSH connexion error com.jcraft.jsch.JSchException: java.net.UnknownHostException: XXXX
    at com.jcraft.jsch.Util.createSocket(Util.java:394)
    at com.jcraft.jsch.Session.connect(Session.java:215)
    at org.apache.jmeter.protocol.ssh.sampler.AbstractSSHSampler.connect(AbstractSSHSampler.java:72)
    at org.apache.jmeter.protocol.ssh.sampler.SSHCommandSampler.sample(SSHCommandSampler.java:64)
    at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:431)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:258)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: XXXX
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at com.jcraft.jsch.Util$1.run(Util.java:362)
    ... 1 more

I had similar error using directly jsch but with config.put("StrictHostKeyChecking", "no"); I have no problems. Haven't tried to fork your plugin and check without StrictHostKeyChecking yet (or with with passing known_hosts file) , but this is the next thing I'll try

Adding the possibility to enstablish an SSH Tunnel?

Would it be possible to enstablish an SSH Tunnel directly from this plugin? I don't need to perform a distributed test through SSH tunnel as 100% of the online guides are about. I need to test an SSHD server and I need to perform multiple SSH Tunnel connections.

Unable to copy test elements in Jmeter 2.10 and 2.11

After adding this sampler to my Test Plan, I am unable to copy another test element without the following error message showing up:

image

After clearing the message, the test element is not in the clipboard and is not able to be copied. I tried running this sampler in Jmeter 2.7 and this issue did not occur, so it must be a compatability issue with more recent versions (I only saw it in Jmeter 2.10 and 2.11).

Question: How to pass ssh client options?

Hi,
how do I pass ssh/sftp client options using the jmeter GUI:

-o option
Can be used to give options in the format used in the
configuration file. This is useful for specifying options for
which there is no separate command-line flag. For full details
of the options listed below, and their possible values, see
ssh_config(5).

               AddKeysToAgent
               AddressFamily
               BatchMode
               BindAddress
               CanonicalDomains
               CanonicalizeFallbackLocal
               CanonicalizeHostname
               CanonicalizeMaxDots
               CanonicalizePermittedCNAMEs
               CertificateFile
               ChallengeResponseAuthentication
               CheckHostIP
               Cipher
               Ciphers
               ClearAllForwardings
               Compression
               CompressionLevel
               ConnectionAttempts
               ConnectTimeout
               ControlMaster
               ControlPath
               ControlPersist
               DynamicForward
               EscapeChar
               ExitOnForwardFailure
               FingerprintHash
               ForwardAgent
               ForwardX11
               ForwardX11Timeout
               ForwardX11Trusted
               GatewayPorts
               GlobalKnownHostsFile
               GSSAPIAuthentication
               GSSAPIDelegateCredentials
               HashKnownHosts
               Host
               HostbasedAuthentication
               HostbasedKeyTypes
               HostKeyAlgorithms
               HostKeyAlias
               HostName
               IdentityFile
               IdentitiesOnly
               IPQoS
               KbdInteractiveAuthentication
               KbdInteractiveDevices
               KexAlgorithms
               LocalCommand
               LocalForward
               LogLevel
               MACs
               Match
               NoHostAuthenticationForLocalhost
               NumberOfPasswordPrompts
               PasswordAuthentication
               PermitLocalCommand
               PKCS11Provider
               Port
               PreferredAuthentications
               Protocol
               ProxyCommand
               ProxyUseFdpass
               PubkeyAcceptedKeyTypes
               PubkeyAuthentication
               RekeyLimit
               RemoteForward
               RequestTTY
               RhostsRSAAuthentication
               RSAAuthentication
               SendEnv
               ServerAliveInterval
               ServerAliveCountMax
               StreamLocalBindMask
               StreamLocalBindUnlink
               StrictHostKeyChecking
               TCPKeepAlive
               Tunnel
               TunnelDevice
               UpdateHostKeys
               UsePrivilegedPort
               User
               UserKnownHostsFile
               VerifyHostKeyDNS
               VersionAddendum
               VisualHostKey
               XAuthLocation

Non-GUI Mode not correctly handled

Why
When using jmeter-ssh-sampler in Non-GUI Mode (Command Line mode) an exception is raised.

Concrete
This case is seen, when running JMeter on a headless (Linux) machine. Running JMeter as part of a Maven configuration (using the jmeter-maven-plugin), on a Jenkins build server.

Jenkins Console shows how JMeter is started

JMeter is called with the following command line arguments: -n -t /var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/src/test/jmeter/intake_v02.jmx 

In the line above is shown that the argument -n, is used (non-gui mode)

JMeter log (as seen in the job Workspace directory: ws/target/jmeter/logs/intake_v02.jmx.log)

At the bottum is the line shown ERROR - jmeter.JMeter: Uncaught exception: java.awt.AWTError. Which is caused, because X11 is not available.

2015/10/16 09:27:08 INFO  - jmeter.util.JMeterUtils: Setting Locale to en 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: Loading user properties from: /var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/target/jmeter/bin/user.properties 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: Loading system properties from: /var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/target/jmeter/bin/system.properties 
2015/10/16 09:27:08 WARN  - jmeter.JMeter: LogLevel: DEBUG 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: Copyright (c) 1998-2015 The Apache Software Foundation 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: Version 2.13 r1665067 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: java.version=1.8.0_60 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: os.name=Linux 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: os.arch=amd64 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: os.version=3.10.0-229.7.2.el7.x86_64 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: file.encoding=UTF-8 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: Default Locale=English 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: JMeter  Locale=English 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: JMeterHome=/var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/target/jmeter 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: user.dir  =/var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/target/jmeter/bin 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: PWD       =/var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/target/jmeter/bin 
2015/10/16 09:27:08 INFO  - jmeter.JMeter: IP: 172.17.0.1 Name: 4d14addf5da6 FullName: 4d14addf5da6 
2015/10/16 09:27:08 INFO  - jmeter.services.FileServer: Default base='/var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/target/jmeter/bin' 
2015/10/16 09:27:08 INFO  - jmeter.services.FileServer: Set new base='/var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/src/test/jmeter' 
2015/10/16 09:27:09 INFO  - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 
2015/10/16 09:27:09 INFO  - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 
2015/10/16 09:27:09 INFO  - jmeter.save.SaveService: Using SaveService properties file version 1656252 
2015/10/16 09:27:09 INFO  - jmeter.save.SaveService: Using SaveService properties version 2.8 
2015/10/16 09:27:09 INFO  - jmeter.save.SaveService: All converter versions present and correct 
2015/10/16 09:27:09 INFO  - jmeter.save.SaveService: Loading file: /var/jenkins_home/jobs/jmeter-environment-health-check_develop_FI2/workspace/src/test/jmeter/intake_v02.jmx 
2015/10/16 09:27:09 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 
2015/10/16 09:27:09 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is  
2015/10/16 09:27:09 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is  
2015/10/16 09:27:09 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is  
2015/10/16 09:27:09 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is  
2015/10/16 09:27:09 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 
2015/10/16 09:27:09 INFO  - jmeter.JMeter: Creating summariser <summary> 
2015/10/16 09:27:09 INFO  - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version 
2015/10/16 09:27:09 INFO  - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false 
2015/10/16 09:27:09 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2015/10/16 09:27:09 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2015/10/16 09:27:09 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2015/10/16 09:27:09 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 
2015/10/16 09:27:09 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 
2015/10/16 09:27:09 ERROR - jmeter.JMeter: Uncaught exception:  java.awt.AWTError: Can't connect to X11 window server using ':99' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

Some process are hung while running SSH Sampler through jmeter commandline.

In my jmx, I'm using 'SSH command' sampler - To make it working, I've copied the respective jar file in /lib/ext folder [i.e jmeter-ssh-sampler-0.1.0.jar ] also kept the 'jsch-0.1.50.jar' file at 'jmeter/lib' directory. When I'm running the jmx from command-line, encountered with below issue. [Note: Jmx got executed and respective response is available at jtl. But, the process is still running with below info]

Here is the log:
Writing log file to: /sdl06930/tperf/output/1512531557701/sequential/shell.log
Created the tree successfully using shell.jmx
Starting the test @ Wed Dec 06 22:15:56 PST 2017 (1512627356465)
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
Tidying up ... @ Wed Dec 06 22:16:40 PST 2017 (1512627400181)
... end of run
The JVM should have exitted but did not.
The following non-daemon threads are still running (DestroyJavaVM is OK):
Thread[Connect thread 10.25.16.80 session,5,main], stackTrace:java.net.SocketInputStream#socketRead0
java.net.SocketInputStream#socketRead at line:116
java.net.SocketInputStream#read at line:170
java.net.SocketInputStream#read at line:141
com.jcraft.jsch.IO#getByte at line:82
com.jcraft.jsch.Session#read at line:908
com.jcraft.jsch.Session#run at line:1378
java.lang.Thread#run at line:745

Thread[DestroyJavaVM,5,main], stackTrace:

Here is the part of jmx used for SSH command sampler:

      <hashTree>
        <org.apache.jmeter.protocol.ssh.sampler.SSHSampler guiclass="TestBeanGUI" testclass="org.apache.jmeter.protocol.ssh.sampler.SSHSampler" testname="SSH Command" enabled="true">
          <stringProp name="command">/usr/bin/sh /Venki/test.sh</stringProp>
          <stringProp name="hostname">10.25.25.25</stringProp>
          <stringProp name="password">PassWord</stringProp>
          <intProp name="port">22</intProp>
          <stringProp name="username">root</stringProp>
        </org.apache.jmeter.protocol.ssh.sampler.SSHSampler>
        <hashTree/>

Some-times the process are running for very long time, seems hours.
Why this was happening ? Can you please suggest me the solution.?

Running docker command doesn't work

Steps to reproduce:

1)Add a SSH Sampler for localhost
2)Give the credentials in the sampler and in the command give the following command-->docker ps
3)Run the Test Plan

I get the following error:

=== stdin ===

=== stderr ===

bash: docker: command not found

But when I run other command like date,it works fine .Also when I run the docker command from the shell manually.It works fine.

如何拿到ssh command命令后的结果

很多时候执行ssh command都不是简单的执行一条命令,希望可以执行shell,使用正则拿不到执行后的结果。不知道是我使用的问题还是本身不支持

SSH Command: Auth fail when connecting to shell with username / pw

Hi,

I'm trying to connect to a remote machine using username/password. I tried creating a very simple test plan with just the "SSH command" sampler and a "View results tree". I entered the credentials in the sampler config but get an "Auth fail" error.

Plugin version: 1.1.1
JMeter 3.2 and 4.0

This is the exception from the log view:
018-09-12 16:21:46,052 ERROR o.a.j.p.s.s.AbstractSSHSampler: SSH connexion error com.jcraft.jsch.JSchException: Auth fail at com.jcraft.jsch.Session.connect(Session.java:512) ~[jsch-0.1.50.jar:?] at org.apache.jmeter.protocol.ssh.sampler.AbstractSSHSampler.connect(AbstractSSHSampler.java:72) [ApacheJMeter_ssh-1.1.1-SNAPSHOT.jar:?] at org.apache.jmeter.protocol.ssh.sampler.SSHCommandSampler.sample(SSHCommandSampler.java:64) [ApacheJMeter_ssh-1.1.1-SNAPSHOT.jar:?] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490) [ApacheJMeter_core.jar:4.0 r1823414] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416) [ApacheJMeter_core.jar:4.0 r1823414] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250) [ApacheJMeter_core.jar:4.0 r1823414] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162] 2018-09-12 16:21:46,052 ERROR o.a.j.p.s.s.SSHCommandSampler: Failed to connect to server with credentials [correct username]@[correct ip]:22 pw=[correct pw]
The username, password, ip and port that are printed in the log view are correct and working connecting from a shell.

In the following branch I created a fix so that the login is now working:
https://github.com/ceazy79/jmeter-ssh-sampler/tree/bugfix/auth-fail-interactive-login-fix

BR
Chris

On jmeter maven, "mvn verify" instructions...

Hello, greetings from Brazil.

About the instructions :

About: v1.1.0

@yciabaud yciabaud released this Feb 12, 2014 · 1 commit to master since this release

•Copy the ApacheJMeter_ssh-1.1.0.jar to $JMETER_HOME/lib/ext directory

•Copy the jsch-0.1.51.jar to $JMETER_HOME/lib directory if needed

About The issue:
how to run ssh shell test on maven jmeter as a dependency? Can you add one "for dummies" example in the main page, like "insert the dependency in maven mvn verify project..."?

partial mvn verify jmeter failed automated script, with profile, etc....
....

integrated



com.lazerycode.jmeter
jmeter-maven-plugin
1.10.1


jmeter-tests
verify

jmeter


false
debug

xx
6060
xpto
acme
10.5.112.126


<EXECUTE_CORE>false</EXECUTE_CORE>
<EXECUTE_INTEGRATED>true</EXECUTE_INTEGRATED>







org.postgresql
postgresql
9.4-1200-jdbc41



org.apache.jmeter.protocol.ssh.sampler.SSHCommandSampler
org.apache.jmeter.protocol.ssh.sampler.SSHCommandSampler
1.1.0

                    </dependencies>
                </plugin>
            </plugins>
        </build>
    </profile>
</profiles>

Its possible to transfer files to Windows machine on which is running Jmeter (through scpo)?

Hello,
im not able to download files through scp to my Jmeter Windows machine - i have problem with command syntax.. or its simply too much for plugin.
As far i know putty and similar are emulating some Linux like backend, which needed for SCP, but im not sure if this plugin could?
Maybe i can just send some command to should content of file and save whole response like response with filename, it seems to be ugly work around, but it could maybe work?

There is no size of download or upload SFTP simple

Jmeter 5.4.3/ plugin version 1.2.0

Create simple SFTP sample get or put

Run the sample
Expected: Size of the response or request should be accounted and aggregated
Actual: upload and download sizes are always 0 -> Send and Receive always 0

Thread still running due to socket

Hello,

Is it possible to configure a timeout with the SSH Sampler ?
I'm facing a strange issue when using Jmeter with Jenkins.

The JVM should have exitted but did not.
The following non-daemon threads are still running (DestroyJavaVM is OK):
Thread[DestroyJavaVM,5,main], stackTrace:
Thread[Connect thread 192.168.70.197 session,5,main], stackTrace:java.net.SocketInputStream#socketRead0
java.net.SocketInputStream#socketRead at line:116
java.net.SocketInputStream#read at line:170
java.net.SocketInputStream#read at line:141
com.jcraft.jsch.IO#getByte at line:82
com.jcraft.jsch.Session#read at line:918
com.jcraft.jsch.Session#run at line:1392
java.lang.Thread#run at line:745

I Googled it but none contained

com.jcraft.jsch.IO#getByte at line:82
com.jcraft.jsch.Session#read at line:918
com.jcraft.jsch.Session#run at line:1392

And it seems that only the SSH Sampler can produce that stack, right ?

The real problem is that when I'm debugging locally, it works well. With jenkins on the other machine I get that after all the tests passed.

Publish to Maven Central

First of all, I would like to thank for this amazing JMeter plugin. It'll be great if this plugin is available as a Maven dependency.

compilation error symbol SFTP_COMMAND_MKDIR

Hello,

it seems this commit (3521fb3) introduced a problem in the compilation:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/usr/git/jmeter-ssh-sampler/src/main/java/org/apache/jmeter/protocol/ssh/sampler/SSHSFTPSampler.java:[159,20] cannot find symbol
  symbol:   variable SFTP_COMMAND_MKDIR
  location: class org.apache.jmeter.protocol.ssh.sampler.SSHSFTPSampler
[ERROR] /home/usr/git/jmeter-ssh-sampler/src/main/java/org/apache/jmeter/protocol/ssh/sampler/SSHSFTPSamplerBeanInfo.java:[45,27] cannot find symbol
  symbol:   variable SFTP_COMMAND_MKDIR
  location: class org.apache.jmeter.protocol.ssh.sampler.SSHSFTPSampler

I reverted that commit locally and the build succeeds.

When trying to do SFTP get - destination will not interpolate user variable

Jmeter 5.4.3/ plugin version 1.2.0

Setup SFTP download (get)
Source path: \home${USER_NAME}\somefile.txt
Destination path: c:\temp${USER_NAME}_download.txt
Run sampler

Expected: file with name user1_download.txt to appear in c:\temp
Actual: file with ${USER_NAME}_download.txt appear instead

Note: seems like interpolation in source path works fine

Add mkdir command

First of all, thank you for this useful plugin.
I need to remove directory on remote server, I would to implement thise command, I'll send you a pull request.

Cannot find file transferred using SSH SFTP sampler

Running JMeter from a Windows 10 system, I can see the contents of the transferred file in the Results tab in the View Results Tree listener, but I cannot find the contents of the transferred file actually saved to disk. I tried specifying a destination path for the file and not specifyiing a destination path hoping that would let the file be saved in a default location. I could not find a saved file in either case.

SSH connexion error com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused

Hi,

I'm using below in CentOS 7:
JMeter 3.0 r1743807
jmeter-ssh-sampler v1.1.1-SNAPSHOT
jsch-0.1.53.jar

I have a SFTP server with Apache SSHD v1.2.0 + Wireshark + Windows 7.

When I test 100 Threads + Loop 1, I get below error for some threads:

2016/09/02 11:42:48 ERROR - jmeter.protocol.ssh.sampler.AbstractSSHSampler: SSH connexion error com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused
at com.jcraft.jsch.Util.createSocket(Util.java:394)
at com.jcraft.jsch.Session.connect(Session.java:215)
at org.apache.jmeter.protocol.ssh.sampler.AbstractSSHSampler.connect(AbstractSSHSampler.java:72)
at org.apache.jmeter.protocol.ssh.sampler.SSHSFTPSampler.sample(SSHSFTPSampler.java:73)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:465)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:410)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:241)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.(Socket.java:434)
at java.net.Socket.(Socket.java:211)
at com.jcraft.jsch.Util$1.run(Util.java:362)
... 1 more

I noticed that Wireshark (at server side) didn't get any packets from the refused connection, and it means the thread didn't really connect to server and thought its connection was refused, but it's not true.
And when I test 50 threads + Loop 100, everything is fine, no connection is refused.
I have no idea why this happened.

Does anyone have any comments?
Thank you.

Debug info for jsch and sftp-sampler?

ssh-sampler version: 1.1.2
jmeter version: 3.1
jsch version: 0.1.54

Using the sftp sampler from the GUI:

How could I get/set debug output for:

  1. SFTP sampler say doing a put/get? Info like source and destination directories etc. etc.
  2. SFTP client info like getting debug/verbose info using OpenSSH SFTP client with -vvv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.