Skip to content

Instantly share code, notes, and snippets.

View rawinng's full-sized avatar
🎯
Focusing

Rawin Ngamloet rawinng

🎯
Focusing
View GitHub Profile
java.lang.OutOfMemoryError: GC overhead limit exceeded
Dumping heap to java_pid1505.hprof …
Heap dump file created [13447490 bytes in 0.109 secs]
Exception in thread “main” java.lang.OutOfMemoryError: GC overhead limit exceeded
at memleak.MemLeak1.main(MemLeak1.java:27)
package memleak;
import java.util.HashMap;
import java.util.Map;
public class MemLeak1 {
final String key ;
public MemLeak1(String key) {
this.key = key;