You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "vijay.raje2015@gmail.com" <vi...@gmail.com> on 2018/08/20 16:29:21 UTC

jmeter command stuck - FTP testing

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

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


Re: jmeter command stuck - FTP testing

Posted by "glinius@live.com" <gl...@live.com>.
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-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: jmeter command stuck - FTP testing

Posted by Prateek Dua <pr...@go-mmt.com>.
Thanks Guys . it worked. Sharing mode was the hick up :-)

On Mon, Aug 20, 2018 at 11:10 PM, Deepak Shetty <sh...@gmail.com> wrote:

> Hi
> > 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
>
> On Mon, Aug 20, 2018 at 9:29 AM vijay.raje2015@gmail.com <
> vijay.raje2015@gmail.com> wrote:
>
> > 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
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
>

-- 


::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.

Re: jmeter command stuck - FTP testing

Posted by Deepak Shetty <sh...@gmail.com>.
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 .

On Thu, Aug 23, 2018 at 8:24 AM vijay.raje2015@gmail.com <
vijay.raje2015@gmail.com> wrote:

> 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-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: jmeter command stuck - FTP testing

Posted by "vijay.raje2015@gmail.com" <vi...@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

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


Re: jmeter command stuck - FTP testing

Posted by Deepak Shetty <sh...@gmail.com>.
Where did you specify timeout - As far as I know the FTP request itself
doesnt have a timeout so thread will block.

>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

On Tue, Aug 21, 2018 at 6:56 AM Vijay Raje <vi...@gmail.com> wrote:

> 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
>
> On Mon, Aug 20, 2018, 11:11 PM Deepak Shetty <sh...@gmail.com> wrote:
>
> > Hi
> > > 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
> >
> > On Mon, Aug 20, 2018 at 9:29 AM vijay.raje2015@gmail.com <
> > vijay.raje2015@gmail.com> wrote:
> >
> > > 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
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > For additional commands, e-mail: user-help@jmeter.apache.org
> > >
> > >
> >
>

Re: jmeter command stuck - FTP testing

Posted by Vijay Raje <vi...@gmail.com>.
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

On Mon, Aug 20, 2018, 11:11 PM Deepak Shetty <sh...@gmail.com> wrote:

> Hi
> > 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
>
> On Mon, Aug 20, 2018 at 9:29 AM vijay.raje2015@gmail.com <
> vijay.raje2015@gmail.com> wrote:
>
> > 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
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
>

Re: jmeter command stuck - FTP testing

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
> 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

On Mon, Aug 20, 2018 at 9:29 AM vijay.raje2015@gmail.com <
vijay.raje2015@gmail.com> wrote:

> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>