# Performance-Optimierung (Spring Boot) > Performance-Optimierung: Profiling, Caching, Lazy Loading, Pagination, Connection Pooling, DB-Indexierung - 30 Interview-Fragen - Senior - [Interview-Fragen: Spring Boot](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen.md) ## 1. Was ist HikariCP im Kontext von Spring Boot? **Antwort** HikariCP ist seit Version 2.0 der Standard-Connection-Pool-Manager in Spring Boot. Er bietet durch eine optimierte Implementierung (geringer Overhead, effiziente Nebenläufigkeitsverwaltung) eine außergewöhnliche Performance und gilt weithin als der schnellste Connection Pool auf dem Markt. Spring Boot verwendet ihn automatisch, wenn spring-boot-starter-data-jpa oder spring-boot-starter-jdbc in den Abhängigkeiten vorhanden ist. ## 2. Welcher HikariCP-Parameter definiert die maximale Anzahl von Verbindungen im Pool? **Antwort** Der Parameter maximumPoolSize definiert die maximale Anzahl von Verbindungen (aktiv und im Leerlauf), die HikariCP im Pool aufrechterhält. Der von HikariCP empfohlene Wert basiert im Allgemeinen auf der Formel: connections = ((core_count * 2) + effective_spindle_count), oft zwischen 10 und 20 für typische Anwendungen. Ein zu hoher Wert kann die Datenbank überlasten, während ein zu niedriger Wert zu Verbindungswartezeiten führen kann. ## 3. Was ist der Unterschied zwischen maximumPoolSize und minimumIdle in HikariCP? **Antwort** maximumPoolSize definiert die maximale Gesamtzahl von Verbindungen (aktiv und im Leerlauf) im Pool, während minimumIdle die minimale Anzahl von Leerlaufverbindungen definiert, die HikariCP dauerhaft aufrechterhält. HikariCP empfiehlt, minimumIdle nicht festzulegen und maximumPoolSize den Pool verwalten zu lassen (Standardverhalten: minimumIdle = maximumPoolSize), da sich der Pool automatisch an die Last anpasst, um die Performance zu optimieren. ## 27 weitere Fragen verfügbar - Welche Formel empfiehlt HikariCP zur Berechnung von maximumPoolSize? - Welcher HikariCP-Parameter steuert die maximale Wartezeit, um eine Verbindung aus dem Pool zu erhalten? Kostenlos registrieren: https://sharpskill.dev/de/login ## Weitere Spring Boot-Interviewthemen - [Spring Core - IoC & DI](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-core-ioc-di.md): 22 Fragen, Junior - [Spring Boot Auto-Configuration](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-auto-configuration.md): 20 Fragen, Junior - [Spring Boot Starters](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-starters.md): 18 Fragen, Junior - [Application Properties & YAML](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/application-properties-yml.md): 16 Fragen, Junior - [Logging mit SLF4J und Logback](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/logging.md): 20 Fragen, Junior - [Spring Boot DevTools](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-devtools.md): 15 Fragen, Junior - [Spring MVC Basics](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-mvc-basics.md): 20 Fragen, Mid-Level - [Spring REST Controllers](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-rest-controllers.md): 20 Fragen, Mid-Level - [Request & Response Handling](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/request-response-handling.md): 20 Fragen, Mid-Level - [Ausnahmebehandlung](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/exception-handling.md): 25 Fragen, Mid-Level - [Bean Validation](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/bean-validation.md): 25 Fragen, Mid-Level - [Spring Data JPA Grundlagen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-data-jpa-basics.md): 25 Fragen, Mid-Level - [JPA-Entitäten und Beziehungen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/jpa-entities-relationships.md): 30 Fragen, Mid-Level - [JPA-Abfragen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/jpa-queries.md): 30 Fragen, Mid-Level - [Spring Data Repositories](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-data-repositories.md): 25 Fragen, Mid-Level - [Spring Security Grundlagen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-security-basics.md): 25 Fragen, Mid-Level - [Spring Boot Actuator](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-actuator.md): 20 Fragen, Mid-Level - [Unit-Tests mit JUnit & Mockito](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/testing-junit-mockito.md): 30 Fragen, Mid-Level - [Spring Boot Testing](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-testing.md): 30 Fragen, Mid-Level - [Profiles und Environment](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/profiles-environment.md): 20 Fragen, Mid-Level - [RestTemplate und WebClient](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/resttemplate-webclient.md): 24 Fragen, Mid-Level - [Async & Scheduling](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/async-scheduling.md): 25 Fragen, Mid-Level - [Caching mit Spring](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/caching.md): 25 Fragen, Mid-Level - [Spring WebFlux (Reactive)](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-webflux.md): 25 Fragen, Mid-Level - [Spring-Transaktionen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/transactions.md): 30 Fragen, Senior - [Erweiterte Authentifizierung und Autorisierung](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/authentication-authorization.md): 30 Fragen, Senior - [JWT & Stateless-Sicherheit](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/jwt-stateless-security.md): 20 Fragen, Senior - [OAuth2 & Authorization Server](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/oauth2-authorization-server.md): 20 Fragen, Senior - [Spring Boot und Docker](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-docker.md): 19 Fragen, Senior - [Microservices mit Spring](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/microservices-basics.md): 25 Fragen, Senior - [Spring Cloud Config](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-cloud-config.md): 19 Fragen, Senior - [GraalVM Native Images](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/graalvm-native-images.md): 20 Fragen, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/performance-optimization