Discussion:
jmeter command stuck - FTP testing
v***@gmail.com
2018-08-20 16:29:21 UTC
Permalink
Hi
I am using Jmeter to perform FTP load testing on Azure using csv file.
Total hitting threads : 225 from one server
Total no of connections from server to FTP : 450 (upload + download)

I am getting success message if I am running jemeter command from one
machine. but while running from 15 Linux servers sententiously , some of
them are getting stuck on below screen.
<Loading Image...>





--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Deepak Shetty
2018-08-20 17:40:59 UTC
Permalink
Hi
Post by v***@gmail.com
but while running from 15 Linux servers sententiously
This will run 15 * 225 connections to your server - Is this what you want
to do ?
Its likely your server is rejecting connections or timing out - The
screenshot you have taken is not what is useful - You need a threaddump
which will likely show you all the JMeter threads are waiting for response .

regards
deepak
Post by v***@gmail.com
Hi
I am using Jmeter to perform FTP load testing on Azure using csv file.
Total hitting threads : 225 from one server
Total no of connections from server to FTP : 450 (upload + download)
I am getting success message if I am running jemeter command from one
machine. but while running from 15 Linux servers sententiously , some of
them are getting stuck on below screen.
<http://www.jmeter-archive.org/file/t346050/123.jpg>
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
Prateek Dua
2018-08-20 19:10:01 UTC
Permalink
Thanks Guys . it worked. Sharing mode was the hick up :-)
Post by Deepak Shetty
Hi
Post by v***@gmail.com
but while running from 15 Linux servers sententiously
This will run 15 * 225 connections to your server - Is this what you want
to do ?
Its likely your server is rejecting connections or timing out - The
screenshot you have taken is not what is useful - You need a threaddump
which will likely show you all the JMeter threads are waiting for response .
regards
deepak
Post by v***@gmail.com
Hi
I am using Jmeter to perform FTP load testing on Azure using csv file.
Total hitting threads : 225 from one server
Total no of connections from server to FTP : 450 (upload + download)
I am getting success message if I am running jemeter command from one
machine. but while running from 15 Linux servers sententiously , some of
them are getting stuck on below screen.
<http://www.jmeter-archive.org/file/t346050/123.jpg>
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
--
::DISCLAIMER::


----------------------------------------------------------------------------------------------------------------------------------------------------





This message is intended only for the use of the addressee and may
contain information that is privileged, confidential and exempt from
disclosure under applicable law. If the reader of this message is not the
intended recipient, or the employee or agent responsible for delivering the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by return e-mail and delete this e-mail and all attachments
from your system.
Vijay Raje
2018-08-21 13:56:41 UTC
Permalink
I have configured 30 sec timeout value in jmx file. So it should reject
automatically.
But still getting stuck and not every time. Some time it's working without
any issue.

Thanks
Vijay Raje
Post by Deepak Shetty
Hi
Post by v***@gmail.com
but while running from 15 Linux servers sententiously
This will run 15 * 225 connections to your server - Is this what you want
to do ?
Its likely your server is rejecting connections or timing out - The
screenshot you have taken is not what is useful - You need a threaddump
which will likely show you all the JMeter threads are waiting for response .
regards
deepak
Post by v***@gmail.com
Hi
I am using Jmeter to perform FTP load testing on Azure using csv file.
Total hitting threads : 225 from one server
Total no of connections from server to FTP : 450 (upload + download)
I am getting success message if I am running jemeter command from one
machine. but while running from 15 Linux servers sententiously , some of
them are getting stuck on below screen.
<http://www.jmeter-archive.org/file/t346050/123.jpg>
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
Deepak Shetty
2018-08-21 16:31:56 UTC
Permalink
Where did you specify timeout - As far as I know the FTP request itself
doesnt have a timeout so thread will block.
Post by Vijay Raje
But still getting stuck and not every time. Some time it's working without
any issue.
Which is more likely to be your applications issue. Again take a thread
dump on JMeter if they are waiting on your application server then check
whats happening on your application

regards
deepak
Post by Vijay Raje
I have configured 30 sec timeout value in jmx file. So it should reject
automatically.
But still getting stuck and not every time. Some time it's working without
any issue.
Thanks
Vijay Raje
Post by Deepak Shetty
Hi
Post by v***@gmail.com
but while running from 15 Linux servers sententiously
This will run 15 * 225 connections to your server - Is this what you want
to do ?
Its likely your server is rejecting connections or timing out - The
screenshot you have taken is not what is useful - You need a threaddump
which will likely show you all the JMeter threads are waiting for
response
Post by Deepak Shetty
.
regards
deepak
Post by v***@gmail.com
Hi
I am using Jmeter to perform FTP load testing on Azure using csv file.
Total hitting threads : 225 from one server
Total no of connections from server to FTP : 450 (upload + download)
I am getting success message if I am running jemeter command from one
machine. but while running from 15 Linux servers sententiously , some
of
Post by Deepak Shetty
Post by v***@gmail.com
them are getting stuck on below screen.
<http://www.jmeter-archive.org/file/t346050/123.jpg>
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
v***@gmail.com
2018-08-23 15:24:06 UTC
Permalink
I used below class in JMX file. This is working fine for FTP for timeout. I
have used 30 sec(30000 milliseconds) for testing purpose.

<hashTree/>
<DurationAssertion guiclass="DurationAssertionGui"
testclass="DurationAssertion" testname="Duration Assertion" enabled="true">
<stringProp name="DurationAssertion.duration">30000</stringProp>
</DurationAssertion>
<hashTree/>

When I used 1000 milliseconds(1 sec) as timeout it gives timeout error for
most of threads while testing.

The operation lasted too long: It took 1,115 milliseconds, but should not
have lasted longer than 1,000 milliseconds

<http://www.jmeter-archive.org/file/t346050/123.jpg>





--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Deepak Shetty
2018-08-23 19:45:27 UTC
Permalink
The duration assertion marks a sample as failed if the time it takes is
larger than configured. it doesnt however timeout the sampler. If you have
a blocking call then till that call returns , nothing else will happen till
that call returns .
Post by v***@gmail.com
I used below class in JMX file. This is working fine for FTP for timeout. I
have used 30 sec(30000 milliseconds) for testing purpose.
<hashTree/>
<DurationAssertion guiclass="DurationAssertionGui"
testclass="DurationAssertion" testname="Duration Assertion" enabled="true">
<stringProp name="DurationAssertion.duration">30000</stringProp>
</DurationAssertion>
<hashTree/>
When I used 1000 milliseconds(1 sec) as timeout it gives timeout error for
most of threads while testing.
The operation lasted too long: It took 1,115 milliseconds, but should not
have lasted longer than 1,000 milliseconds
<http://www.jmeter-archive.org/file/t346050/123.jpg>
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
g***@live.com
2018-08-27 06:07:30 UTC
Permalink
As of JMeter 4.0 underlying FTPClient
<https://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html>
doesn't have any timeouts so if your server will never respond - your JMeter
test will never end.

You can work it around by placing your FTP requests under the Runtime
Controller
<http://jmeter.apache.org/usermanual/component_reference.html#Runtime_Controller>
- this way you will get confidence that your test will be terminated by the
Runtime Controller.

Another option is switching from JMeter's FTP Request sampler to JSR223
Sampler
<https://www.blazemeter.com/blog/load-testing-ftp-and-sftp-servers-using-jmeter>
where you will have full control over FTPClient instance and will be able to
define all the timeouts you can think of
FTPClient ftpClient = new FTPClient(x);
ftpClient.setDefaultTimeout(x);
ftpClientp.setDataTimeout(x);
ftpClientp.setConnectTimeout(x);
ftpClient.setSoTimeout(x);
ftpClient.setControlKeepAliveTimeout(x);
ftpClient.setControlKeepAliveReplyTimeout(x);
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org

Loading...