You notice that a Spring Boot application is experiencing high latency. How would you go about identifying and resolving the performance bottlenecks in the application?
- Use a profiling tool like VisualVM to analyze thread dumps.
- Increase the heap size of the JVM.
- Disable logging to reduce overhead.
- Add more physical memory to the server.
Option 1 is correct. Profiling tools like VisualVM can capture and analyze thread dumps, helping identify performance bottlenecks by showing which threads are causing delays. Increasing heap size or disabling logging may not directly address the root cause of high latency. Adding more physical memory could help with memory-related issues but may not solve latency problems.
Loading...
Related Quiz
- Which file format is generally used in Spring Boot for configuring application properties?
- In Spring Boot, to resolve property values from environment variables, you can use the _____ placeholder in the application properties file.
- How can parameterized tests be created using JUnit?
- How would you secure RESTful web services in Spring Security using OAuth2?
- In what cases would you choose constructor injection over setter injection, and why?