Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Web Stress Tools Recommend?
Old 01-20-2008, 11:22 PM Web Stress Tools Recommend?
Experienced Talker

Posts: 36
Trades: 0
What web stress tools do people here recommend? I am specifically testing a new php site with mysql database. I want to see how many users can access and use my site at the same time. I have no experience with this type of thing.
nlassiter is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2008, 02:55 AM Re: Web Stress Tools Recommend?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
All unix-like systems with apache installed usually have an utility called 'ab' (apache benchmark). If you have shell access to some unix-like server you can run this test to get average number of requests per seconds that your server can handle.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 01-21-2008, 11:57 AM Re: Web Stress Tools Recommend?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Can you explain how to go about doing this via cPanel?

i have WHM access too so should have the right perms...

Thanks,
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 01-23-2008, 06:44 AM Re: Web Stress Tools Recommend?
Experienced Talker

Posts: 36
Trades: 0
With the apache benchmark, can you test multiple pages and queries at once simulating a user on your site? Simulating 50 users on your site? If so, how do you do this?
nlassiter is offline
Reply With Quote
View Public Profile
 
Old 01-24-2008, 02:35 AM Re: Web Stress Tools Recommend?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
You cannot test multiple pages at once, but you can simulate multiple concurrent requests to the single page/script to test the performance of that certain script. In fact there is no reason to test many pages at once since each script should be optimized separately.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 01-24-2008, 12:00 PM Re: Web Stress Tools Recommend?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
It would be apprieciated if someone could still explain how to do this and how to tell it how many users to test and all that if you dont mind
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 01-24-2008, 05:47 PM Re: Web Stress Tools Recommend?
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
And how do you do it in cpanel cause this seems ideal to use
andyp is offline
Reply With Quote
View Public Profile
 
Old 01-24-2008, 06:08 PM Re: Web Stress Tools Recommend?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
^ What he said X 10
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 01-25-2008, 05:22 PM Re: Web Stress Tools Recommend?
Novice Talker

Posts: 5
Trades: 0
You can't access ab through cpanel, you will need ssh access . This site has a generic tutorial on how to get it done: http://www.cyberciti.biz/tips/howto-...eb-server.html

Create a new user in cpanel with shell access, and login using something like PuTTy and follow the tutorial above.
shaftian is offline
Reply With Quote
View Public Profile
 
Old 01-28-2008, 02:03 AM Re: Web Stress Tools Recommend?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
ab -n 1000 -c 100 http://www.yoursite.com/yourscript.php
This will request the specified url 1000 times in blocks of 100 simultaneous requests, which can be used to simulate 100 users requesting a page at the same time.

Test will output many different numbers out of which you are most interested in number of requests per second the script can handle. Normally it should be not less than 1 reqs/sec even if your script makes requests to DB and not less than 5 reqs/sec if the script does not access the DB.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 02-12-2008, 05:45 PM Re: Web Stress Tools Recommend?
Experienced Talker

Posts: 36
Trades: 0
I logged in to SSH through the java tool in CPanel to try the ab command.
At the command line it said:
myusername@mydomain.com [~]#

directly after that I typed:
$ ab -n 10 -c 2 http://www.mydomain.com/

It came back and said:
-bash: $: command not found

I then tried just:
ab -n 10 -c 2 http://www.mydomain.com/

And it said:
-bash: ab: command not found

What am I doing wrong?
Thanks for your help
nlassiter is offline
Reply With Quote
View Public Profile
 
Old 02-13-2008, 01:44 AM Re: Web Stress Tools Recommend?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Probably you don't have ab installed or it is not visible within the current $PATH values. Try running "find / -name ab" without quotes to find the full path to ab and then run ab with full path.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 02-13-2008, 03:24 AM Re: Web Stress Tools Recommend?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
I believe that ab is not accessible to standard users.
In both my server and workstation (gentoo & ubuntu), it's installed in /usr/sbin, meaning that only an administrator should be able to run it.

Another tool I have used from my workstation, is Jmeter [ http://jakarta.apache.org/jmeter/index.html ], a java app from the apache foundation.
Here is a simple web page test plan, that I used to get used to Jmeter: [ http://jakarta.apache.org/jmeter/use...test-plan.html ]
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-13-2008, 05:30 AM Re: Web Stress Tools Recommend?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Just answerd what i was going to post tripy, i must remember to look at that when i get home!
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 02-13-2008, 11:51 AM Re: Web Stress Tools Recommend?
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
You usually have to ask for SSH access.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-14-2008, 02:19 AM Re: Web Stress Tools Recommend?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Dammit guys, how do you manage to get paid hosting without shell and ab?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 02-14-2008, 05:48 AM Re: Web Stress Tools Recommend?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
because most hosts (which arn't 13 AND have a brian) know its VERY bad to give it to idiots. (im not saying anyones a idiot its just there are plenty out there)

And hence why in most cases all u have to do is send a nice polite email, asking can i have it so i can use the ab thing. and i would guess they would allow it

which reminds me i need to send a email
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 02-14-2008, 07:30 AM Re: Web Stress Tools Recommend?
Experienced Talker

Posts: 36
Trades: 0
I have been talking to my web host about this and they wrote back:

It is installed along with Apache and available as /usr/local/apache/bin/ab.

For examle:
/usr/local/apache/bin/ab -n 10 -c 2 http://www.yoururl.net/index.php

Right now it told me:
-bash: /usr/local/apache/bin/ab: Permission denied

So I am working on that now.
nlassiter is offline
Reply With Quote
View Public Profile
 
Old 02-14-2008, 07:54 AM Re: Web Stress Tools Recommend?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
bash: /usr/local/apache/bin/ab: Permission denied
The file permissions are too restrictive...
You cannot do anything, ask your host to put you in a group where you have execution privilege to that file
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-14-2008, 06:11 PM Re: Web Stress Tools Recommend?
Experienced Talker

Posts: 36
Trades: 0
Yes, I got it to work now.

I was logging in as a regular user. I logged in as root and it work.

Thanks for all your help.
nlassiter is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Web Stress Tools Recommend?

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 3.51151 seconds with 12 queries