RanniSch / webserv

0 stars 2 forks source link

PROBLEM: Mandatory Part: Check the code and ask questions: Launch the installation of siege with homebrew. #67

Closed RanniSch closed 10 months ago

RanniSch commented 10 months ago

siege http://localhost:8000/animal.jpg --> no failed transactions

siege http://localhost:8000/index.html --> segmentation fault image

siege http://localhost:8000/upload.html --> Aborted image


For Mac "brew install siege"

For Linux "sudo apt-get install siege"

How to use siege? Start the server, open a second terminal and type in "siege http://example.com" Stresstest: "siege -c 10 -t 1M http://example.com" --> -c 10 means that 10 users sending their request at the same time -t 1M means that the tests should run for one Minute

What is siege? Siege is a command line tool for load testing web servers and web applications. It sends a large number of parallel requests to the server to test its response to load situations. Siege allows you to test the responsiveness and performance of a server under stress by simulating a large number of requests.

What is homebrew? Homebrew is a package manager for macOS operating systems. It enables the easy installation of open source software and tools by automating their installation, updating and uninstallation.

RanniSch commented 10 months ago

If I don't run siege too long, there are no "failed transactions". No aborted and no seg fault anymore