1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 00:02:09 +02:00
tldr/pages.it/common/ab.md
2019-06-10 00:35:02 +01:00

20 lines
525 B
Markdown

# ab
> Strumento di benchmarking di Apache. Il più semplice modo per eseguire un test sul carico del server.
> Maggiori informazioni: <https://httpd.apache.org/docs/2.4/programs/ab.html>.
- Esegui 100 richieste HTTP GET ad un dato URL:
`ab -n {{100}} {{url}}`
- Esegui 100 richieste HTTP GET ad un dato url, processandone fino a 10 requests contemporaneamente:
`ab -n {{100}} -c {{10}} {{url}}`
- Usa keep alive:
`ab -k {{url}}`
- Setta il massimo numero di secondi per il benchmarking:
`ab -t {{secondi}} {{url}}`