hi,
I am doing performance testing of web application designed with TCP Socket
using JMeter .Application is made such a way that after login to the site we
get token. token having terminator command in order to parsed and process
properly by the server.
For the same resone i have made some changes in to TCPSampler.java as of
follows.
Class: org.apache.jmeter.protocol.tcp.sampler.TCPSampler
Line: 267
String len = Integer.toString(getRequestData().length() + 1);
StringBuffer sb = new StringBuffer(10);
for(int i = 0; i < 10 - len.length(); i++)
sb.append(" ");
sb.append(len);
String req = sb.toString() + getRequestData() + '\0';
Now, my script is working as of our requirment. But i get responce time is
increase incredibally with Jmeter Assertion result. But the when i monitor
activity at port(where Jmeter is install) shows really lesser responce time
from that Jmeter assersation.If i be more specific when i mesure sample
time with Jmeter it's shows 15000+ms while with TCP/IP monitor for activity
at my defined socket it's almost 120ms.
Can u guys tell me why it is happen with Jmeter.what is soluation to get
real sample time
Alpesh