Hello Venkat,
Greetings!
Yes, memory spikes and leaks can cause JVM pauses, especially in the following scenarios:
-
GC Pauses: When the JVM detects that it's running low on memory, it may trigger a garbage collection cycle, which can cause the application to pause while memory is being reclaimed.
Your GC event took more than 5 seconds, inspite of the fact that your application running for less than 30 minutes. As your application runs for a longer period, you might encounter more GC events to take more than 5 seconds.
a. You may follow the recommendations given here to reduce your long GC Pause.
b. This GC tuning & troubleshooting video can also help with optimizing your GC performance.
Additionally, it's a good practice to run your application continuously for 24 hours to monitor and analyze its behavior over time. This extended runtime can help identify any memory issues or performance bottlenecks that may not be evident during shorter test periods.
Thanks.
Edit your Comment