You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by tripgaurav <gu...@yahoo.co.in> on 2010/09/01 15:57:01 UTC

How can I do a chunked upload (packet upload)?

Hi everyone,

I was trying write a load test script for an application that accepts files
in chunks of 1 MB each. When the file transfer starts, the servers starts
requesting for file in chunks of 1 MB by providing the offset. I read on
this forum on some older post that packetization was not supported by JMeter
back in 2008. Any ideas if the latest release supports it?

If not, can any one on this forum help me with how I can test this service?
I need to upload around 100 MB of video data in chunks.

Thanks and regards,
Gaurav
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2799355.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: SV: How can I do a chunked upload (packet upload)?

Posted by tripgaurav <gu...@yahoo.co.in>.
any idea friends??? This is a bit urgent so please don't mind my reminder
posts.

Regards,
Gaurav
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2805213.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: SV: How can I do a chunked upload (packet upload)?

Posted by tripgaurav <gu...@yahoo.co.in>.
On unfortunately the client is in C++... there are some Javascript function
evals that are used to exchange the information between the server and the
client according to the protocol that is set...

But I will try to find something on these lines... 

Thanks a lot. All of you rock!!!

Regards,
Gaurav
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2813940.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: SV: How can I do a chunked upload (packet upload)?

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
Well you say you have an embedded client (written in some language) which
will probably call some classes to implement what you have described above.
If these classes are java(or any of the languages that the JVM supports -
BSF) then you might be able to invoke those directly from within JMeter .
Its basically what felix has suggested but rather than recoding everything ,
use the code that you already have . Again this might not be possible but
only someone who knows what your code looks like can say for sure

regards
deepak

On Tue, Sep 7, 2010 at 9:54 AM, tripgaurav <gu...@yahoo.co.in>wrote:

>
> Hey Deepak,
>
> Can you shed some more light on the approach that you are suggesting?
>
> Regards,
> Gaurav
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2806451.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: SV: How can I do a chunked upload (packet upload)?

Posted by tripgaurav <gu...@yahoo.co.in>.
Hey Deepak,

Can you shed some more light on the approach that you are suggesting?

Regards,
Gaurav
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2806451.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: SV: How can I do a chunked upload (packet upload)?

Posted by Deepak Shetty <sh...@gmail.com>.
>You should be able to do this in Jmeter. But don't be fooled, you will
>likely be rebuilding your application logic in Jmeter
Whats the client written in? java? If so it may be possible to reuse the
client classes to accomplish this -- but that depends on how well the client
is written


On Tue, Sep 7, 2010 at 2:20 AM, Felix Frank <ff...@mpexnet.de> wrote:

> You should be able to do this in Jmeter. But don't be fooled, you will
> likely be rebuilding your application logic in Jmeter, which may be a
> huge hassle.
> What you need to do is define appropriate RequestSamplers and Loops to
> implement the same logic the client side uses when run from, say, the
> browser.
>
> I'm not sure it will be worth the hassle, but then, I recently found
> myself spending some 10 hours tuning my test plan to work with all the
> little special cases in the web shop I was stressing.
>
> So, go ahead and build a plan to do all that jazz if it is worth the
> effort to you.
>
> One word about the chunking: I very much doubt that Jmeter can make
> chunks from a given file. But could you fool your server into accepting
> the same chunk dozens of times over? Because it sounds as if the easiest
> thing would be to just use a pre-made chunk in a single file you define.
> Then again, BeanShell might be able to do something for you. But I
> cannot advise you on that.
>
> HTH,
> Felix
>
> On 09/04/10 21:21, tripgaurav wrote:
> >
> > AAh.. n 1 more thing... after every chunk upload succeeds (as in when
> server
> > receives 1 MB data), it gives a response and the client calls another
> > servlet... this other servlet has a check in it to see if the total video
> > has been uploaded and if not, it asks the client to call the first
> servlet n
> > send another chunk... this goes on n on till the file is uploaded...
> >
> > PS: Please dont ask me why this application is architected in this way...
> I
> > have no control on the design and I just need to perform load tests for
> it
> > :)))
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: SV: How can I do a chunked upload (packet upload)?

Posted by tripgaurav <gu...@yahoo.co.in>.
Hey thanks. Sounds like this would work with my application. I am trying to
edit my script to perform a pseudo-chunk upload (if i can term it this way
:) )

Thanks a tonne.
Gaurav
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2806072.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: SV: How can I do a chunked upload (packet upload)?

Posted by Felix Frank <ff...@mpexnet.de>.
You should be able to do this in Jmeter. But don't be fooled, you will
likely be rebuilding your application logic in Jmeter, which may be a
huge hassle.
What you need to do is define appropriate RequestSamplers and Loops to
implement the same logic the client side uses when run from, say, the
browser.

I'm not sure it will be worth the hassle, but then, I recently found
myself spending some 10 hours tuning my test plan to work with all the
little special cases in the web shop I was stressing.

So, go ahead and build a plan to do all that jazz if it is worth the
effort to you.

One word about the chunking: I very much doubt that Jmeter can make
chunks from a given file. But could you fool your server into accepting
the same chunk dozens of times over? Because it sounds as if the easiest
thing would be to just use a pre-made chunk in a single file you define.
Then again, BeanShell might be able to do something for you. But I
cannot advise you on that.

HTH,
Felix

On 09/04/10 21:21, tripgaurav wrote:
> 
> AAh.. n 1 more thing... after every chunk upload succeeds (as in when server
> receives 1 MB data), it gives a response and the client calls another
> servlet... this other servlet has a check in it to see if the total video
> has been uploaded and if not, it asks the client to call the first servlet n
> send another chunk... this goes on n on till the file is uploaded...
> 
> PS: Please dont ask me why this application is architected in this way... I
> have no control on the design and I just need to perform load tests for it
> :)))

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


Re: SV: How can I do a chunked upload (packet upload)?

Posted by tripgaurav <gu...@yahoo.co.in>.
AAh.. n 1 more thing... after every chunk upload succeeds (as in when server
receives 1 MB data), it gives a response and the client calls another
servlet... this other servlet has a check in it to see if the total video
has been uploaded and if not, it asks the client to call the first servlet n
send another chunk... this goes on n on till the file is uploaded...

PS: Please dont ask me why this application is architected in this way... I
have no control on the design and I just need to perform load tests for it
:)))
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2803685.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: SV: How can I do a chunked upload (packet upload)?

Posted by tripgaurav <gu...@yahoo.co.in>.
Ok. So here is some detail about the application that I need to load test.
Firstly, it is a hybrid application, part online and part embedded in
desktop client... and the client library and the server share a protocol and
maintain a common dictionary... for example, consider the scenario when
server is ready to accept a file... as a part of its response to the client,
it would send an XML tag <request-file-list />, and the client in the next
request would send <file-list>...tonnes of info about file including
size...<file-list/>

Now server side code performs some validation and depending on the size of
valid file, it either requests the complete file or a part of it, by telling
the client the number of bytes it needs to send and the offset of where to
start (depending of how many such chunks have been uploaded)... the client
just responds with this information...

So my question is, is this even possible in JMeter? If no, is there any
other way in which I can do this?

Thanks for all the help.
Gaurav
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2803678.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


SV: How can I do a chunked upload (packet upload)?

Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> How does that even work? How does a webserver request chunks from a
> client?

It's the client that tells the server that the data is chunked AFAIK; the server than reads chunk sizes and the chunks themselves from the stream, flushed:

http://en.wikipedia.org/wiki/Chunked_transfer_encoding

- Tor Iver

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


Re: How can I do a chunked upload (packet upload)?

Posted by Felix Frank <ff...@mpexnet.de>.
Hi,

> I was trying write a load test script for an application that accepts files
> in chunks of 1 MB each. When the file transfer starts, the servers starts
> requesting for file in chunks of 1 MB by providing the offset. I read on

How does that even work? How does a webserver request chunks from a client?

Sorry for not being helpful, I just don't really comprehend the context
of your question.

Regards,
Felix

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


Re: How can I do a chunked upload (packet upload)?

Posted by tripgaurav <gu...@yahoo.co.in>.
Any idea JMeter users?
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/How-can-I-do-a-chunked-upload-packet-upload-tp2799355p2802077.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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