Updated on 25 February 2024 to update example screenshots and outdated links.
Monitor System's Load Essential Keep App Running Smoothly AppSignal's Host Metrics Provide Insights into System's Load Average Showing How Much Load System Under Over Multiple Time Frames You Can Also Check This Metric Using Tools Like top, uptime, และ w:
แต "Load Average" หมายถึงอะไรจริง และ Interpret Numbers นี้ยังไง? ในบทความนี้ เราจะ Break Down System Load Explain How to Read Load Averages และ Show How to Monitor Effectively
What Are Load Averages? (Load Averages คืออะไร)
Load Averages Usually Displayed as Three Numbers Like Example from uptime Above Three Numbers at End of Result Show Average Load Last Minute (0.44), Last Five Minutes (0.28), และ Last Fifteen (0.25)

On AppSignal Load Averages Displayed by Minute Last 12 Hours และ Per Hour Longer Periods You Can Dive Deeper Any Moment with Time Detective และ Compare Hosts Real Time Using Host Metrics Dashboards
System Load (โหลดระบบ)
เข้าใจ Load Averages Tell Us อะไร (และ When to be Alarmed) ต้องเข้าใจ System Load Means และ Measured ยังไงก่อน
System Load Essentially Number of Active Processes At Any Given Time:
- When Idle Load 0
- When Process Starts Load Increases by 1
- When Process Completes Load Decreases by 1
Load Includes Processes Waiting for CPU Time So If One Process Actively Using CPU และ Two Others Queued Load 3
Because Short-lived Processes Load Fluctuates Rapidly — Jump from 0 to 5 in Milliseconds และ Drop Back Just as Fast Due to Volatility Useful Look at Average Load Over Time Clearer Picture How Busy System Been
Load Averages
ตอนรู้ System Load Counted มา Look at Load Averages As Seen Load System Under Usually Shown as Average Over Time
Generally Single-core CPU Handle One Process at a Time Average Load 1.0 Mean One Core Busy 100% Time If Load Average Drops to 0.5 CPU Idle 50% Time
If Load Average Rises to 1.5 CPU Busy All Time While (On Average) One Other Process Waiting 50% Time Giving CPU More Work Than Can Handle
Logical Processors (Logical Processors)
General Rule of Thumb Load Average Shouldn't Exceed Number of Processors in Machine If Processors Four Load Generally Stay Under 4.0
Keep in Mind Relates to Logical Processors Instead of Actual Physical Ones on CPU Because Software Abstractions Like Hyper-threading Number of Logical Processors/Processing Threads Can Be Higher Than Physical Processor Cores
Check Number of Logical Processors Linux Count Processors in /proc/cpuinfo หรือ Use:
Print Number of Processor Lines Automatically On Mac Ask sysctl Number of Logical Processors Directly:
System Multiple Logical Processors Load Average Can Grow Higher Because Run More Concurrent Processes Machine 2 CPU Cores Load Average 2.0 Mean Both CPUs 100% Utilized While Two Processes Active On Average
👋 Look at Other Ruby (on Rails) Performance Articles in Ruby Performance Monitoring Checklist
Reading Load Averages (การอ่าน Load Averages)
Since Average of Absolute Number of Processes Seem Difficult Determine Proper Load Average และ When to be Alarmed Generally Since Each CPU Core Handle One Process at a Time System Not Overloaded Until Goes Over 1.0 Per Logical Processors Dual-core System (Without Hyper-threading) That'd Be 2.0
Usually Fine If Load Average Above 1.0 Per Core Last Minute Mark แต Elevated Load Five or Fifteen-minute Averages Could Indicate Problem
Monitor Your Hosts with AppSignal
Understanding Load Averages Key to Keeping App Healthy With Features Like Error Tracking, Anomaly Detection, และ Log Management AppSignal Helps Spot Issues Before They Become Problems
Want to Monitor App with Powerful Insights and Smart Alerts? Start Free 30-day Trial No Credit Card Needed
Have Questions or Feedback? Let Us Know Our Experts On Hand Answer Your Monitoring Queries!