This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package memleak; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class MemLeak1 { | |
final String key ; | |
public MemLeak1(String key) { | |
this.key = key; |
NewerOlder