On 27/04/07, Scott Cederberg <[EMAIL PROTECTED]> wrote:
I encountered the same problem. The FTP Sampler spawns another thread
to handle the data connection (the actual receipt of the file), then
the thread handling the control connection busy-waits for the data
thread to complete. I was able to fix the problem by declaring the
variables involved in the busywait to be synchronized.
I don't really know anything about Java threading, this was just a
shot in the dark that seems to have worked.
I did not try that, but I thought I tried using volatile for the
busywait variable which should be equivalent, and it did not fix the
problem. I must have missed something.
However, using the Commons Net library makes the code much simpler,
and allows file upload to be easily implemented.
Scott
On 4/27/07, sebb <[EMAIL PROTECTED]> wrote:
> Same for me, even with a very short text file.
>
> Not sure what the problem is in the code - tried one or two simple
> changes, but they had no effect.
>
> Rather than try and re-implement the FTP client protocol, I'm
> currently testing a fix that uses the Commons Net package from Apache.
> Seems OK so far.
>
> S.
> On 17/04/07, Ivan Rancati <[EMAIL PROTECTED]> wrote:
> >
> > I have a test plan where I need to validate a ftp download url, so I have
> > added an ftp sampler.
> > The url I extract from a previous response is correct, but JMeter just hangs
> > there; the file size is about 270k, and downloading from another client
> > (i.e. Firefox) works properly.
> >
> > Environment is
> > JMeter 2.2 on Kubuntu (kernel 2.6.20-15-generic),
> > java version 1.5.0_10
> >
> >
> > Has anybody seen this problem?
> > Or, even better, can I just check if the url is valid and skip the file
> > transfer? I do not need to validate the file contents.
> >
> > From jmeter.log
> >
> > 2007/04/17 17:17:41 INFO - jmeter.threads.JMeterThread: Thread Thread Group
> > 1-1 started
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #220---------- Welcome to Pure-FTPd [privsep] [TLS]
> > ----------#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #220-You are user number 2 of 75 allowed.#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #220-Local time is now 17:17. Server port: 21.#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #220-This is a private system - No anonymous login#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #220-IPv6 connections are also welcome on this
> > server.#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #220 You will be disconnected after 15 minutes of
> > inactivity.#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient: return
> > response
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #331 User B2uzD8vk OK. Password required#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient: return
> > response
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #230-User B2uzD8vk has group access to: ftpgroup#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #230 OK. Current restricted directory is /#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient: return
> > response
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #215 UNIX Type: L8#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient: return
> > response
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #257 "/" is your current location#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient: return
> > response
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #200 TYPE is now 8-bit binary#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient: return
> > response
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #227 Entering Passive Mode (10,55,2,29,186,86)#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient: return
> > response
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #150-Accepted data connection#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient:
> > FtpClient.getResponse(): #150 268.1 kbytes to download#
> > 2007/04/17 17:17:43 INFO - jmeter.protocol.ftp.sampler.FtpClient: return
> > response
> >
> > here it hangs; I tried to let it run for 15 minutes, no feedback, the light
> > on the top right corner of JMeter is still green, and there is no error.
> > --
> > View this message in context:
http://www.nabble.com/FTP-Request-hangs-tf3591356.html#a10037183
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]