You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Seeta somagani <se...@gmail.com> on 2006/03/22 02:22:00 UTC

TCP Sampler

Hi,

I'm trying to test my application which accepts TCP queries from clients and
sends them back TCP results. I'm simulating a load of 10 concurrent users
inside one Thread Group using a single JMeter instance. But, I'm not able to
make the Thread Group loop for more than 1 time. How many ever times I may
try to loop it, even when using "forever", I see only one set of requests
arriving at the server.
What am I missing?
Thnx
Seeta

Re: TCP Sampler

Posted by "nam.truong" <na...@objectconsulting.com.au>.
After a bit of poking around I've found the resolution to my problem.

An end of line character needs to be defined in order for JMeter to
recognise that it has received a complete response. 

In the jmeter.properties file I have simply uncommented the tcp.eolByte
property and given it a value of 10 (i.e. ASCII 10: the line feed character)
since this was the character that I use to separate lines in my request text
(and the server echoes this straight back). 



nam.truong wrote:
> 
> Hi,
> 
> I have a TCP Sampler problem that is identical in symptoms to the one
> described by the OP.
> 
> My script is configured to send a TCP request using a single thread. The
> server that is being tested simply establishes a connection with the
> client, receives the request, responds with an echo of the request text,
> and keeps the connection open. 
> 
> Once started, JMeter sends the TCP request but does not appear to
> recognise the response (instead it sits in running state indefinitely).
> Only when the server is manually stopped does JMeter register the request
> as successful and update its result. 
> 
> My jmeter.log file does not report any error as follows:
> 
> 2008/07/30 17:30:37 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(true,*local*) 
> 2008/07/30 17:30:38 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1
> threads for group Thread Group. Ramp up = 0. 
> 2008/07/30 17:30:38 INFO  - jmeter.engine.StandardJMeterEngine: Continue
> on error 
> 2008/07/30 17:30:38 INFO  - jmeter.threads.JMeterThread: Thread Thread
> Group 1-1 started 
> 
> Does anyone have an idea of why this occurs and/or how it may be remedied?
> 
> Thanks,
> Nam
> 
> 
> 
> 
> Seeta somagani-2 wrote:
>> 
>> Hi,
>> 
>> I'm trying to test my application which accepts TCP queries from clients
>> and
>> sends them back TCP results. I'm simulating a load of 10 concurrent users
>> inside one Thread Group using a single JMeter instance. But, I'm not able
>> to
>> make the Thread Group loop for more than 1 time. How many ever times I
>> may
>> try to loop it, even when using "forever", I see only one set of requests
>> arriving at the server.
>> What am I missing?
>> Thnx
>> Seeta
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/TCP-Sampler-tp3524656p18748068.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: TCP Sampler

Posted by "nam.truong" <na...@objectconsulting.com.au>.
Hi,

I have a TCP Sampler problem that is identical in symptoms to the one
described by the OP.

My script is configured to send a TCP request using a single thread. The
server that is being tested simply establishes a connection with the client,
receives the request, responds with an echo of the request text, and keeps
the connection open. 

Once started, JMeter sends the TCP request but does not appear to recognise
the response (instead it sits in running state indefinitely). Only when the
server is manually stopped does JMeter register the request as successful
and update its result. 

My jmeter.log file does not report any error as follows:

2008/07/30 17:30:37 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(true,*local*) 
2008/07/30 17:30:38 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1
threads for group Thread Group. Ramp up = 0. 
2008/07/30 17:30:38 INFO  - jmeter.engine.StandardJMeterEngine: Continue on
error 
2008/07/30 17:30:38 INFO  - jmeter.threads.JMeterThread: Thread Thread Group
1-1 started 

Does anyone have an idea of why this occurs and/or how it may be remedied?

Thanks,
Nam




Seeta somagani-2 wrote:
> 
> Hi,
> 
> I'm trying to test my application which accepts TCP queries from clients
> and
> sends them back TCP results. I'm simulating a load of 10 concurrent users
> inside one Thread Group using a single JMeter instance. But, I'm not able
> to
> make the Thread Group loop for more than 1 time. How many ever times I may
> try to loop it, even when using "forever", I see only one set of requests
> arriving at the server.
> What am I missing?
> Thnx
> Seeta
> 
> 

-- 
View this message in context: http://www.nabble.com/TCP-Sampler-tp3524656p18728309.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: TCP Sampler

Posted by sebb <se...@gmail.com>.
The Sampler is merely reporting the error returned by Java when it
tries to read from the socket.

All I can suggest is that you look up what causes Java to report that
particular error.

S.
On 24/03/06, Seeta somagani <se...@gmail.com> wrote:
> Hi Sebb,
>
> In the jmeter.log file, I see the following line 5 times - the number of
> time the threadGroup is supposed to loop.
>
> 2006/03/24 10:01:08 WARN  - jmeter.protocol.tcp.sampler.TCPClientImpl: Read
> error:java.net.SocketException: Software caused connection abort: recv
> failed
>
> Can you suggest a fix?
> many thanks.
> seeta
>
> On 3/23/06, sebb <se...@gmail.com> wrote:
> >
> > Check the jmeter.log file for errors.
> >
> > On 22/03/06, Seeta somagani <se...@gmail.com> wrote:
> > > Hi,
> > >
> > > I'm trying to test my application which accepts TCP queries from clients
> > and
> > > sends them back TCP results. I'm simulating a load of 10 concurrent
> > users
> > > inside one Thread Group using a single JMeter instance. But, I'm not
> > able to
> > > make the Thread Group loop for more than 1 time. How many ever times I
> > may
> > > try to loop it, even when using "forever", I see only one set of
> > requests
> > > arriving at the server.
> > > What am I missing?
> > > Thnx
> > > Seeta
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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: TCP Sampler

Posted by Seeta somagani <se...@gmail.com>.
Hi Sebb,

In the jmeter.log file, I see the following line 5 times - the number of
time the threadGroup is supposed to loop.

2006/03/24 10:01:08 WARN  - jmeter.protocol.tcp.sampler.TCPClientImpl: Read
error:java.net.SocketException: Software caused connection abort: recv
failed

Can you suggest a fix?
many thanks.
seeta

On 3/23/06, sebb <se...@gmail.com> wrote:
>
> Check the jmeter.log file for errors.
>
> On 22/03/06, Seeta somagani <se...@gmail.com> wrote:
> > Hi,
> >
> > I'm trying to test my application which accepts TCP queries from clients
> and
> > sends them back TCP results. I'm simulating a load of 10 concurrent
> users
> > inside one Thread Group using a single JMeter instance. But, I'm not
> able to
> > make the Thread Group loop for more than 1 time. How many ever times I
> may
> > try to loop it, even when using "forever", I see only one set of
> requests
> > arriving at the server.
> > What am I missing?
> > Thnx
> > Seeta
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: TCP Sampler

Posted by sebb <se...@gmail.com>.
Check the jmeter.log file for errors.

On 22/03/06, Seeta somagani <se...@gmail.com> wrote:
> Hi,
>
> I'm trying to test my application which accepts TCP queries from clients and
> sends them back TCP results. I'm simulating a load of 10 concurrent users
> inside one Thread Group using a single JMeter instance. But, I'm not able to
> make the Thread Group loop for more than 1 time. How many ever times I may
> try to loop it, even when using "forever", I see only one set of requests
> arriving at the server.
> What am I missing?
> Thnx
> Seeta
>
>

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