Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
I am looking for a tool that can simulate a complete browser request to a LAMP based site including downloading of images, etc.
Simple tools like curl and wget dont do that, but I was looking at ab it seems like it can. The tool I need has to be command line based so I can run it via cron and parse the output with a script.
Does anyone have any experience with ab (or any other tools)?
I am not looking for a load testing tool, although such a feature might be handy one day.
My main concern is that it simulates a real browser request as closely as possible. I do not need per object stats, though that would be helpful, but rather, simple stats like total time, time to first byte, etc.
ab is a performance tool and only evaluates the HTTP headers it retrieves and the raw data sizes of retrieved objects. It
doesn't interpret the html it retrieves, so it cannot retrieve referenced objects. Are you sure wget doesn't work? what about:
my goal is to make a simple script that measures the response time of a site and time to page load including all objects on the page. I just noticed that ab does not retrieve any of the content (images, css, etc).
The only tool I've used that does what you want with decent automation/logging/recording support is httpwatch pro.
Sadly its an IE based plugin...
httpfox is for firefox, but it doesn't have the automation or logging/recording features.
You could try automating browsing with iMacros, filter through tcpdump or wireshark and parse the caps with say chaosreader or a custom script you write...kind of overkill but it should work.
There are SaaS offerings that does this btw. You might want to try out Gomez. We use them for our shop, its great...webmetrics does the same thing, but I think somewhat cheaper.
yes, Ive used Gomez and Keynote before, however for small sites it was hard to justify the per URL fee so I thought it'd be fun to try building my own tool that is good enough to get the basics.
I am playing with wget -p (thanks grepmasterd) and now jmeter as well. I found some articles on getting jmeter running through Ant.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.