Announcement

Collapse
No announcement yet.

How to check daily server load with CL8?

Collapse
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to check daily server load with CL8?

    Hello,

    When using CL7, I could check 1, 5, 15 minutes server load by the following command.

    sar -q

    Output

    1:10:00 AM runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15 blocked
    1:20:00 AM 1 102 0.00 0.01 0.03 0
    1:30:00 AM 1 102 0.00 0.01 0.03 0
    ...​

    or specifying date like on 21th Apr.
    sar -q -f /var/log/sa/sa21

    However, this command does not work with CL8 server.

    What is the alternative command to check server load today and specified date with CL8(Almalinuc8)?

    Any advice would be appreciated.

    Thank you.
  • Answer selected by bogdan.sh at 06-10-2024, 06:50 AM.

    Hi,

    Be default sysstat is disabled on all OSes, you should enable it first - edit the /etc/default/sysstat​ file and change ENABLED to "true" and restart the service:

    Code:
    systemctl restart sysstat.service​

    Comment


    • #2
      Hi,

      Be default sysstat is disabled on all OSes, you should enable it first - edit the /etc/default/sysstat​ file and change ENABLED to "true" and restart the service:

      Code:
      systemctl restart sysstat.service​

      Comment


      • #3
        For CL8 (AlmaLinux 8), the sar command functionality has shifted slightly due to updated system packages. Here's how you can check the server load:
        1. For Current Day Load:
          Copy code
          HTML Code:
          sar -q
        2. For a Specific Date (e.g., April 21st):
          Copy code
          HTML Code:
          sar -q -f /var/log/sa/sa21
        3. Ensure that the sysstat package is installed and configured to collect data:
          Copy code
          HTML Code:
          sudo yum install sysstat
        HTML Code:
        sudo systemctl enable --now sysstat
        1. Alternative Command: Use uptime for quick load averages:
          Copy code
          HTML Code:
          uptime
        If sar still doesn’t work, verify sysstat configurations or consult logs under /var/log/sa/.

        Comment

        Working...
        X