FIX: Memory per process calculation - use 140MB baseline and improve display
This commit is contained in:
@@ -378,9 +378,9 @@ calculate_server_capacity() {
|
||||
available_mb=0
|
||||
fi
|
||||
|
||||
# Measure ACTUAL memory per process instead of assuming
|
||||
local memory_per_process
|
||||
memory_per_process=$(get_actual_memory_per_process)
|
||||
# Use 140MB per process (confirmed from actual PHP-FPM workers)
|
||||
# This is the realistic baseline for production PHP workloads
|
||||
local memory_per_process=140
|
||||
|
||||
# Total capacity = available memory / memory per process
|
||||
local total_capacity=$((available_mb / memory_per_process))
|
||||
|
||||
Reference in New Issue
Block a user