LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-13-2014, 09:09 AM   #1
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
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?
 
Old 01-18-2014, 03:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Seen / tried If Siege supports HTTP/1.1 protocol why would I choose 1.0???
 
Old 01-20-2014, 11:31 PM   #3
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Original Poster
Rep: Reputation: 28
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.
 
Old 01-21-2014, 01:45 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Quote:
Originally Posted by yenn View Post
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 View Post
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...
 
Old 01-22-2014, 03:31 PM   #5
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by unSpawn View Post
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 View Post
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 View Post
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.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Software company Ushahidi uses open source skills to help during Kenya mall siege LXer Syndicated Linux News 0 09-25-2013 02:51 PM
When testing VPS server with Siege is 50 concurrent users good enough? deskt0plinux Linux - Server 1 03-06-2012 05:38 AM
LXer: Put your site under Siege LXer Syndicated Linux News 0 07-02-2011 05:00 PM
Enabling local filesystem quotas [ok] ...HANGS (PC HANGS) RHEL 5 please help maxy Red Hat 2 05-09-2011 05:46 AM
Opensuse 11.1 - System hangs - Keyboard hangs - Mouse works cvrprakash Linux - Desktop 1 04-07-2009 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration