ebeb496c7c
- Fix: Memory-based calculator now accounts for MySQL memory usage - Fix: Changed safety buffer from 15% to 50% (much more conservative) - Fix: Hard cap recommendations at 150 max_children per domain on shared hosting - Fix: Added combined capacity validation to prevent OOM scenarios - Fix: Use realistic 20MB per process default instead of 1MB - Fix: Added critical warning when server has <20% RAM headroom - Feature: Step 2b now validates that combined domain recommendations fit in RAM - Feature: Automatically scales down recommendations if they exceed 60% of total RAM - Safety: Previous recommendations of 227 for 8GB server would now be capped at 150 This prevents dangerous situations like: - Domain with 421 requests getting 227 max_children (would need ~28GB) - Combined pools exceeding available RAM - OOM crashes from over-provisioned settings Tested on 8GB server with 2 domains: Now recommends 105 + 31 instead of 227 + 31