How to troubleshoot Microservice’s OutOfMemoryError: Metaspace

Опубликовано: 04 Октябрь 2024
на канале: yCrash
1,718
22

Recently we confronted an interesting ‘java.lang.OutOfMemoryError: Metaspace’ problem in a Microservice application. This Microservice application will run smoothly for initial few hours, later it will start to throw java.lang.OutOfMemoryError: Metaspace. In this video let us share the steps we pursued to troubleshoot this problem.

If you liked this video, you'll love our Java Performance Masterclass. Learn more:
https://ycrash.io/java-performance-tr...

- - - - - - - - - - - - - -

Topics covered:

00:30 - Application running on AWS
00:44 - Application Crashing
00:52 - JVM memory Regions
02:12 - Metaspace region having problem
02:21 - Enabling GC Logs
02:58 - Logs uploaded in GCeasy tool
03:20 - Heap Usage Graph
06:49 - Metaspace Graph
07:47 - Approaches to study the Metaspace contents
08:02 - Heap dump approach
08:18 - What is the problem?
08:52 - Solution!

- - - - - - - - - - - - - -

Links shared in the video:

Metadata Details:
https://docs.oracle.com/javase/specs/...

Types of java.lang.OutOfMemoryError:
https://blog.gceasy.io/2022/01/03/dif...

JVM memory regions:
   • JVM Memory - Learn Easily  

How to enable GC Logs:
https://blog.gceasy.io/2017/10/17/wha...

Overhead added by Garbage Collection Logging:
https://blog.gceasy.io/2021/08/17/ove...

Benefits of garbage collection log:
https://blog.gceasy.io/2021/07/08/i-d...

GC log analysis report:
https://gceasy.io/my-gc-report.jsp?p=...

- - - - - - - - - - - - - -

Read more in this blog:

https://blog.ycrash.io/2022/07/26/tro...

- - - - - - - - - - - - - -

Our Tools:

yCrash: https://yCrash.io/
GCeasy: https://gceasy.io/
HeapHero: https://heaphero.io/
fastThread Tool: https://fastthread.io/

- - - - - - - - - - - - - -

SRE Community:

Need help in troubleshooting your performance problems?
Post here: https://answers.ycrash.io/

- - - - - - - - - - - - - -

Follow us on:

LinkedIn:   / ycrash  
Instagram:   / ycrash_rca  
Facebook:   / tier1app  
Twitter:   / tier1app  

- - - - - - - - - - - - - -

Related videos:
JVM memory regions:
   • JVM Memory - Learn Easily  

- - - - - - - - - - - - - -

#microservices | #microservicesinterviewquestions | #javalangoutofmemoryerrormetaspace | #java8frompermgentometaspace | #java8metaspacetuningmetaspacevsheap | #metaspaceinjava8 | #permgentometaspaceinjava8 | #checkmetaspacesizeofjavaapplication | #metaspace | #permgenvsmetaspace | #javapermgenspacevsmetaspace | #permgenandmetaspace | #whatismetaspace? | #metaspacesizeismetaspacegarbagecollected | #java8metaspace