/go/sizetop: sizetop from the Command Line

/go/sizetop finds the biggest responses your server has sent. It reads the access log and lists the 20 largest responses to: Use it to find pages or scripts that send a lot of data, such as a script that exports a huge file, a page that is much heavier than it should be, or a URL that bots keep downloading and that is using your bandwidth. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/sizetop

Examples

# Show the 20 largest responses
/go/sizetop

# Keep only one site (this filters the 20 rows already shown, it does not search deeper)
/go/sizetop | grep example.com

# Review recent calls
tail /var/log/go/sizetop.log

Output

The command prints a header and up to 20 rows, largest first.

SIZE HOST REQUEST
------------ ------------------------- ------------------------------------
12.48 MB example.com GET /download.php?id=7 HTTP/1.1
3.20 MB shop.example.net GET /export.php HTTP/1.1
845.12 KB example.com GET / HTTP/1.1
512 B blog.example.org GET /ping.php HTTP/1.1

The values above are only an illustration.

Column Meaning
SIZE Bytes sent in the response, shown as MB, KB, or B.
HOST The host name of the site that answered.
REQUEST The request line: the method, the URL, and the protocol.

Size units

Sizes use multiples of 1024, even though the labels are KB and MB.

Shown as Bytes
B Less than 1,024
KB 1,024 up to 1,048,575
MB 1,048,576 and above

If nothing in the log matches, only the header is printed.

See the full reference at /go/sizetop and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *