Performance: Why configuration matters
MEDIUM IMPACT
Configuration affects application startup time, resource usage, and runtime responsiveness by controlling how components load and behave.
spring.main.lazy-initialization=true
# Beans load only when first usedspring.main.lazy-initialization=false
# All beans load eagerly at startup| Pattern | Startup Time | Memory Usage | CPU Load | Verdict |
|---|---|---|---|---|
| Eager bean loading | High (slow startup) | High | Moderate | [X] Bad |
| Lazy bean loading | Low (fast startup) | Low | Low | [OK] Good |
| Verbose logging (DEBUG) | Moderate | Moderate | High | [X] Bad |
| Info logging level | Low | Low | Low | [OK] Good |