Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-13-2014, 09:09 AM
|
#1
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176
Rep:
|
Siege sometimes hangs up
I'm testing one web application with siege (http load tester and benchmarking utility) to estimate maximum traffic our webserver can handle. I find siege most capable and easy to use http stress test tool, although I noticed that it sometimes hangs up and there is no way to tell what is going on.
At first I thought siege might be waiting for some connections to timeout or something similar, however even after long period of time (hour or so) siege is still running without displaying results. I also checked that all related connection on remote machine are closed after a while, therefore test should be finished by the time. When I look at running processes, all siege threads and processes sleeps - apparently doing nothing.
I'm using latest siege release (3.0.5). Does anyone know what could cause the trouble?
|
|
|
01-18-2014, 03:50 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
|
|
|
01-20-2014, 11:31 PM
|
#3
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176
Original Poster
Rep:
|
Sorry for the late response. I found this FAQ entry soon afterwards, but didn't manage to find a little bit of spare time to update initial post.
I'm not sure how to actually force HTTP 1.0. I didn't find any parameter for that in manual. Should I set it in custom header? I guess it could work, but then I'd have to create whole HTTP header myself, which doesn't work neither with explicit target URL nor without it (if it's already in header, it should work, right?).
I'm also confused by siege output. With default configuration it presumably use HTTP 1.1 (print HTTP 1.1 on screen), while invoked with --get (GET HTTP headers and display the transaction) it print HTTP 1.0. So which HTTP is actually used and when?
As a workaround I decided to avoid redirects (as they are causing trouble), which almost fixed this "freezing". It still occurs from time to time with high number of concurrent connections, but maybe hardware or OS resources limit is bottleneck this time.
|
|
|
01-21-2014, 01:45 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
Quote:
Originally Posted by yenn
I'm not sure how to actually force HTTP 1.0. I didn't find any parameter for that in manual.
|
I don't know either. Else maybe use httperf or ab? One of those isn't even able to go beyond HTTP/1.0 ;-p
Quote:
Originally Posted by yenn
I'm also confused by siege output. With default configuration it presumably use HTTP 1.1 (print HTTP 1.1 on screen), while invoked with --get (GET HTTP headers and display the transaction) it print HTTP 1.0. So which HTTP is actually used and when?
|
IIRC that's in the FAQ too but then again your logs might show? HTTP/1.1 is more than just that header (keep-alives and such)...
Maybe you can get the author to update the documentation because as you found out it indeed is a bit lacking...
|
|
|
01-22-2014, 03:31 PM
|
#5
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
I don't know either. Else maybe use httperf or ab? One of those isn't even able to go beyond HTTP/1.0 ;-p
|
For future readers: It's in FAQ, but hidden within another question ( http://www.joedog.org/siege-faq/#a07). Just set
Code:
protocol = HTTP/1.0
in .siegerc
Well, I'm not against HTTP/1.1 per se. It's just that siege doesn't implement all of it's features and that sometimes cause troubles. I tried ab, but didn't really understand meaning of it's output, so it's useless to me. I might try httperf.
Quote:
Originally Posted by unSpawn
IIRC that's in the FAQ too but then again your logs might show? HTTP/1.1 is more than just that header (keep-alives and such)...
|
You're right, I finally find it this time. Unfortunately documentation/FAQ isn't very clear.
Quote:
Originally Posted by unSpawn
Maybe you can get the author to update the documentation because as you found out it indeed is a bit lacking...
|
I will, I just wanted to first try if someone else encountered this behavior before writing author directly.
Marking this thread as solved. Thank for help.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 11:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|