How to determine the average traffic out of a Jira server

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

This article describes how to understand the amount of requests flowing into and traffic flowing out of a Jira node without any specialised monitoring solution.

Requirements

  • Jira Server or Data Center

  • A Linux machine to parse the data

Solution

Theory of operation

The access logs provide 2 metrics of use:

  • Request count (otherwise known as throughput, simply the number of rows written to the log file, 1 row = 1 request to the server)

  • Bytes sent (this excludes HTTP headers, and only accounts for bytes SENT from Jira, not received)

We can input these logs through a utility called st. You can download it at https://github.com/nferraz/st

When we pull out just the bytes sent, st gives us useful statistics on a per-node per-day basis.

  • N - Request count

  • mean - average bytes sent

  • sum - total bytes sent that day

Obtaining the data

  1. Install st on the Linux machine that will parse the logs

  2. Change directory to the directory containing the access logs. Access logs are located at JIRA_INSTALL/logs/access_log.YYYY-MM-DD. If you have multiple nodes, you may wish to copy them to your Linux management workstation and arrange them with a sub-directory for each node

    1 cd <directory goes here>
  3. Run the following command

    1 find . -name "access_log*" -exec sh -c 'pwd; printf "{} "; cat "{}" | grep -P " \d+ \d+ \d+ " -o | sed "s/^.//" | grep -Po " \K\d+ " | sed "s/.$//" |st' \; > ~/access_log_output.txt

Expected output

The following output will be provided in access_log_output.txt

1 2 3 4 /node1/access_log.2022-08-01 N min max sum mean stddev 813321 2 4.01695e+07 1.51892e+10 17002 130292 (repeated for each file and sub-directory)

Refer to the "Theory of Operation" section above for how to interpret the numbers

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.