What does “Other” mean in Java GC log?

I have such setup Java 11 Corretto inside Docker running on EC2 Java options: -Xms1200m -Xmx1200m -XX:+UseG1GC -Xlog:gc* In log I see that usually GC takes ~100-200ms, but for some timeslots, I see …

Heap allocation source code in in jdk(G1GC) [closed]

I want to understand how java allocates objects in heap. I want to know which parts of the JDK code are triggered when the “new” keyword is used. How can I define a function that a user can …

The cause of blocking GC Allocation problem when starting an Android application

I have recently encountered an unusual problem with Garbage Collecter allocation when beginning my application from Android Studio. My code compiles without errors and the program doesn’t throw any …

How to properly set the G1GC options for a server with 22G heap

I’m setting up a new JAVA server, the heap size is set to 22G, and would use the G1GC algorithm. I’ve read all the oracle documents, and believe this is what we need, but still have a few questions: 1&…

Garbage Collector not freeing “trash memory” as it should in an Android application

Hello! I’m a beginner Java and Android developer and I’ve been having trouble lately dealing with my app’s memory management. I will break this text into sections, in order to make it clearer and …

Are lambdas garbage collected?

If I’m not mistaken, under certain situations a lambda in Java is generated as an anonymous class instance. For example, in this code the lambda needs to capture a variable from the outside: final …