You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Gurkan Ustunkar <us...@gmail.com> on 2007/12/17 11:08:29 UTC
java object request load test
Hello,
I am new to the list so first of all greetings eveybody.
I am trying to perform a load test to my server to simulate the real life condition (distributed clients all over).. I have tried to use grinder but I could not figure out how to do this using it due to lack of proper documentation. I recently downloaded jmeter and am trying to get used to it.
I have serialized the object that acts as the client application (file name request.out) and all I want to do is to deserialize this and send the output to my server and see what happens (if I use 100 threads).
Now I see that there is a java object request sampler. I thought (as the name implies) this can be used for my purpose. However I could not quite understand how to do that.
Any help is highly appreciated.
G
Re: java object request load test
Posted by sebb <se...@gmail.com>.
It's possible that the TCP sampler:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#TCP_Sampler
may be sufficient, otherwise you will have to write your own sampler.
Probably easiest to prototype it using the BeanShell sampler.
On 17/12/2007, Gurkan Ustunkar <us...@gmail.com> wrote:
> two type of communication takes place.. one is http. this is used when file
> transferring takes place..
> however the one I want to test is not a standart protocol. we create
> serialized objects and send them over socketconnection to the specified port
> of the server.. I have now a sample serialized object (in a file called
> request.out) and want to send this to the port of the server using multiple
> threads..
>
> ----- Original Message -----
> From: "sebb" <se...@gmail.com>
> To: "JMeter Users List" <jm...@jakarta.apache.org>
> Sent: Monday, December 17, 2007 2:32 PM
> Subject: Re: java object request load test
>
>
> > On 17/12/2007, Gurkan Ustunkar <us...@gmail.com> wrote:
> >> well I have already gone over this in the user manual.
> >>
> >> What I try to learn is that: I want to deserialize the object I have
> >> serialized to a file (request out). Is there a place that I can write
> >> down
> >> the code to do that usng jmeter?
> >>
> >> Something like:
> >> ObjectInputStream in = new ObjectInputStream(new
> >> FileInputStream("request.out"));
> >> ObjectType obj = (ObjectType) in.readObject();
> >> in.close();
> >>
> >> And then I want to send the readObject to the server..
> >
> > What protocol is used to communicate with the server?
> > FTP, SOAP, HTTP, HTTPS, TELNET, RMI, JMS, Mail or something else?
> >
> > Without knowing the protocol it's impossible to provide specific advice.
> >
> >> What I have done is to add the .jar file related to my client code to
> >> ./lib
> >> and I have no clue how to proceed.
> >>
> >>
> >>
> >> ----- Original Message -----
> >> From: "dennis" <gz...@126.com>
> >> To: "JMeter Users List" <jm...@jakarta.apache.org>
> >> Sent: Monday, December 17, 2007 12:21 PM
> >> Subject: Re: java object request load test
> >>
> >>
> >> > Do you mean "Java Request Sampler"?
> >> >
> >> > Using Java Request Sampler, you can write a java class to send request
> >> > to
> >> > your server.
> >> >
> >> > More details can be found here:
> >> > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Java_Request
> >> >
> >> > Gurkan Ustunkar wrote:
> >> >> Hello,
> >> >>
> >> >> I am new to the list so first of all greetings eveybody.
> >> >>
> >> >> I am trying to perform a load test to my server to simulate the real
> >> >> life
> >> >> condition (distributed clients all over).. I have tried to use grinder
> >> >> but I could not figure out how to do this using it due to lack of
> >> >> proper
> >> >> documentation. I recently downloaded jmeter and am trying to get used
> >> >> to
> >> >> it.
> >> >>
> >> >> I have serialized the object that acts as the client application (file
> >> >> name request.out) and all I want to do is to deserialize this and send
> >> >> the output to my server and see what happens (if I use 100 threads).
> >> >> Now
> >> >> I see that there is a java object request sampler. I thought (as the
> >> >> name
> >> >> implies) this can be used for my purpose. However I could not quite
> >> >> understand how to do that.
> >> >>
> >> >> Any help is highly appreciated. G
> >> >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: java object request load test
Posted by Gurkan Ustunkar <us...@gmail.com>.
two type of communication takes place.. one is http. this is used when file
transferring takes place..
however the one I want to test is not a standart protocol. we create
serialized objects and send them over socketconnection to the specified port
of the server.. I have now a sample serialized object (in a file called
request.out) and want to send this to the port of the server using multiple
threads..
----- Original Message -----
From: "sebb" <se...@gmail.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Monday, December 17, 2007 2:32 PM
Subject: Re: java object request load test
> On 17/12/2007, Gurkan Ustunkar <us...@gmail.com> wrote:
>> well I have already gone over this in the user manual.
>>
>> What I try to learn is that: I want to deserialize the object I have
>> serialized to a file (request out). Is there a place that I can write
>> down
>> the code to do that usng jmeter?
>>
>> Something like:
>> ObjectInputStream in = new ObjectInputStream(new
>> FileInputStream("request.out"));
>> ObjectType obj = (ObjectType) in.readObject();
>> in.close();
>>
>> And then I want to send the readObject to the server..
>
> What protocol is used to communicate with the server?
> FTP, SOAP, HTTP, HTTPS, TELNET, RMI, JMS, Mail or something else?
>
> Without knowing the protocol it's impossible to provide specific advice.
>
>> What I have done is to add the .jar file related to my client code to
>> ./lib
>> and I have no clue how to proceed.
>>
>>
>>
>> ----- Original Message -----
>> From: "dennis" <gz...@126.com>
>> To: "JMeter Users List" <jm...@jakarta.apache.org>
>> Sent: Monday, December 17, 2007 12:21 PM
>> Subject: Re: java object request load test
>>
>>
>> > Do you mean "Java Request Sampler"?
>> >
>> > Using Java Request Sampler, you can write a java class to send request
>> > to
>> > your server.
>> >
>> > More details can be found here:
>> > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Java_Request
>> >
>> > Gurkan Ustunkar wrote:
>> >> Hello,
>> >>
>> >> I am new to the list so first of all greetings eveybody.
>> >>
>> >> I am trying to perform a load test to my server to simulate the real
>> >> life
>> >> condition (distributed clients all over).. I have tried to use grinder
>> >> but I could not figure out how to do this using it due to lack of
>> >> proper
>> >> documentation. I recently downloaded jmeter and am trying to get used
>> >> to
>> >> it.
>> >>
>> >> I have serialized the object that acts as the client application (file
>> >> name request.out) and all I want to do is to deserialize this and send
>> >> the output to my server and see what happens (if I use 100 threads).
>> >> Now
>> >> I see that there is a java object request sampler. I thought (as the
>> >> name
>> >> implies) this can be used for my purpose. However I could not quite
>> >> understand how to do that.
>> >>
>> >> Any help is highly appreciated. G
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: java object request load test
Posted by sebb <se...@gmail.com>.
On 17/12/2007, Gurkan Ustunkar <us...@gmail.com> wrote:
> well I have already gone over this in the user manual.
>
> What I try to learn is that: I want to deserialize the object I have
> serialized to a file (request out). Is there a place that I can write down
> the code to do that usng jmeter?
>
> Something like:
> ObjectInputStream in = new ObjectInputStream(new
> FileInputStream("request.out"));
> ObjectType obj = (ObjectType) in.readObject();
> in.close();
>
> And then I want to send the readObject to the server..
What protocol is used to communicate with the server?
FTP, SOAP, HTTP, HTTPS, TELNET, RMI, JMS, Mail or something else?
Without knowing the protocol it's impossible to provide specific advice.
> What I have done is to add the .jar file related to my client code to ./lib
> and I have no clue how to proceed.
>
>
>
> ----- Original Message -----
> From: "dennis" <gz...@126.com>
> To: "JMeter Users List" <jm...@jakarta.apache.org>
> Sent: Monday, December 17, 2007 12:21 PM
> Subject: Re: java object request load test
>
>
> > Do you mean "Java Request Sampler"?
> >
> > Using Java Request Sampler, you can write a java class to send request to
> > your server.
> >
> > More details can be found here:
> > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Java_Request
> >
> > Gurkan Ustunkar wrote:
> >> Hello,
> >>
> >> I am new to the list so first of all greetings eveybody.
> >>
> >> I am trying to perform a load test to my server to simulate the real life
> >> condition (distributed clients all over).. I have tried to use grinder
> >> but I could not figure out how to do this using it due to lack of proper
> >> documentation. I recently downloaded jmeter and am trying to get used to
> >> it.
> >>
> >> I have serialized the object that acts as the client application (file
> >> name request.out) and all I want to do is to deserialize this and send
> >> the output to my server and see what happens (if I use 100 threads). Now
> >> I see that there is a java object request sampler. I thought (as the name
> >> implies) this can be used for my purpose. However I could not quite
> >> understand how to do that.
> >>
> >> Any help is highly appreciated. G
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: java object request load test
Posted by Gurkan Ustunkar <us...@gmail.com>.
well I have already gone over this in the user manual.
What I try to learn is that: I want to deserialize the object I have
serialized to a file (request out). Is there a place that I can write down
the code to do that usng jmeter?
Something like:
ObjectInputStream in = new ObjectInputStream(new
FileInputStream("request.out"));
ObjectType obj = (ObjectType) in.readObject();
in.close();
And then I want to send the readObject to the server..
What I have done is to add the .jar file related to my client code to ./lib
and I have no clue how to proceed.
----- Original Message -----
From: "dennis" <gz...@126.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Monday, December 17, 2007 12:21 PM
Subject: Re: java object request load test
> Do you mean "Java Request Sampler"?
>
> Using Java Request Sampler, you can write a java class to send request to
> your server.
>
> More details can be found here:
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Java_Request
>
> Gurkan Ustunkar wrote:
>> Hello,
>>
>> I am new to the list so first of all greetings eveybody.
>>
>> I am trying to perform a load test to my server to simulate the real life
>> condition (distributed clients all over).. I have tried to use grinder
>> but I could not figure out how to do this using it due to lack of proper
>> documentation. I recently downloaded jmeter and am trying to get used to
>> it.
>>
>> I have serialized the object that acts as the client application (file
>> name request.out) and all I want to do is to deserialize this and send
>> the output to my server and see what happens (if I use 100 threads). Now
>> I see that there is a java object request sampler. I thought (as the name
>> implies) this can be used for my purpose. However I could not quite
>> understand how to do that.
>>
>> Any help is highly appreciated. G
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: java object request load test
Posted by dennis <gz...@126.com>.
Do you mean "Java Request Sampler"?
Using Java Request Sampler, you can write a java class to send request
to your server.
More details can be found here:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Java_Request
Gurkan Ustunkar wrote:
> Hello,
>
> I am new to the list so first of all greetings eveybody.
>
> I am trying to perform a load test to my server to simulate the real life condition (distributed clients all over).. I have tried to use grinder but I could not figure out how to do this using it due to lack of proper documentation. I recently downloaded jmeter and am trying to get used to it.
>
> I have serialized the object that acts as the client application (file name request.out) and all I want to do is to deserialize this and send the output to my server and see what happens (if I use 100 threads).
>
> Now I see that there is a java object request sampler. I thought (as the name implies) this can be used for my purpose. However I could not quite understand how to do that.
>
> Any help is highly appreciated.
>
>
> G
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org