You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/12/03 14:24:28 UTC
DO NOT REPLY [Bug 44012] New: - HTTP Request Sampler does not close the socket
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44012
Summary: HTTP Request Sampler does not close the socket
Product: JMeter
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: vedat.demir@gmail.com
When i want to send HTTP request via HTTP Request Sampler, i saw that;
HTTP Request Sample does not close the sockets. in the length of the time i saw
a lot of socket that are hang on TIME_WAIT sate. whereas they should be CLOSED.
I saw this error when i use HTTP Request object to send http request. I think
this issue may be related with this object. when I use Apache HTTP Client
object to send HTTP request, i've naver seen a error like this. all sockets
closed as expected...
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44012] - HTTP Request Sampler does not close the socket
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44012
------- Additional Comments From vedat.demir@gmail.com 2007-12-03 10:21 -------
Created an attachment (id=21223)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21223&action=view)
test plan example for http request sampler
could u please run this test plan. sorry if i m wrong.
but when i try to run a test plan like this. i see a lot of open socket that
are hang on TIME_WAIT state.
please run this test plan and meanwhile look your connections with "netstat
-an" command with your command promt. u will see increasing TIME_WAIT socket
connections.
as i said before i encountered this problem when i use the java HTTP client
object. just for this reason i use apache HTTP Client. when i use apache HTTP
Client object to send http requests, i have never seen a problem like this.
thanks & regards
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44012] - HTTP Request Sampler does not close the socket
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44012
------- Additional Comments From sebb@apache.org 2007-12-03 11:13 -------
Not sure what is happening here.
I can see the problem when using www.google.com, but I don't see it when using
news.bbc.co.uk.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44012] - HTTP Request Sampler does not close the socket
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44012
sebb@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
------- Additional Comments From sebb@apache.org 2007-12-05 11:38 -------
Whether or not you see connections in TIME_WAIT state depends on which end of
the connection initiates the shutdown. The end that initiates the shutdown
will see the TIME_WAIT.
I've run some separate tests with Java http, and TIME_WAIT is seen if the keep-
alive flag is set. If you don't use keep-alive, then you won't see TIME_WAIT -
the server will.
HttpClient behaves differently - I'm not sure why, I would have thought it
ought to behave the same.
There is nothing that can be done to change the Java http behaviour.
As far as I can tell it is working as designed.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44012] - HTTP Request Sampler does not close the socket
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44012
sebb@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From sebb@apache.org 2007-12-03 05:29 -------
TIME_WAIT state is normal after a socket is closed.
TCP has to wait for any stray packets before releasing the socket entirely.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44012] - HTTP Request Sampler does not close the socket
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44012
------- Additional Comments From sebb@apache.org 2007-12-03 06:40 -------
The Java HTTP implementation does not give access to the socket, but the HTTP
Sampler *does* call disconnect() - unless you specify KeepAlive.
However, even with KeepAlive set I cannot reproduce the error with the HTTP
Sampler.
Can you provide a test-case (using a public server) ?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44012] - HTTP Request Sampler does not close the socket
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44012
vedat.demir@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From vedat.demir@gmail.com 2007-12-03 05:38 -------
bu it is not normal to hang at this state durung OS tcp_time_wait duration.
when http sampler does not close this socket, this TIME_WAIT socket incrases
till OS max allowed count an then apllication does not reply any request because
of it can not open any new socket for new incomming requests.
so, i think HTTP Sampler object should close the sockect as expected. we should
not see incrasing TIME_WAIT sockets.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44012] - HTTP Request Sampler does not close the socket
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44012
------- Additional Comments From vedat.demir@gmail.com 2007-12-03 12:59 -------
i see this error when i use my own server, and i examine it carefully to close
the sockets appropriately. when i use WAST (microsoft's stress tool
[news.bbc.co.uk could be developed on ASP???]) for my tests. i don't see an
error like this.
as i said before, most probably it may be related with java http client object.
when i use this object to realize my own stress test, i see this error again.
just because of this reason i use apache http client object in my projects to
generate http requests
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org