Postingan lainnya
kenapa running berjalan dengan status suspended
apakah ada solusi saya running ide netbeans sudah 12 jam suspended tidak berjalan stack disitu aja dengan keterangan (java.lang.outofmemoryerror: GC overhead limit exceeded) apakah ada solusi nya juragan terima kasih untuk yg berkenan menjawabnya
3 Jawaban:
harus netbeans gan ide nya? sebenernya banyak ide yg mirip kaya itu, seperti:
- Intellij Community - Eclipse Oxygen
Kalo emang harus pake netbeans, coba ganti versinya gan
iya gan bikinnya di netbeans soalnya, belom pernah pake yg lainnya mungkin ada tutorialnya gan biar bisa saya coba, untuk versinya netbeans terbaru gan saya pakenya dan apache tomcat v.9 & glassfish terbaru,
Memang ada bugs gan, dari netbeans.org/bugzilla:
Ubah netbeans.conf file seperti ini: -J-Xmx2048m -J-Xms512m -J-XX:MaxPermSize=512m -J-XX:PermSize=128m -XX:+UseCompressedOops
I also enabled the new GC1 garbage collector but it seemed to fix the problem with the standard one or the new one.
Source: [link]https://netbeans.org/bugzilla/show_bug.cgi?id=210736 [/link]
atau
Excessive GC Time and OutOfMemoryError
The parallel collector will throw an OutOfMemoryError if too much time is being spent in garbage collection: if more than 98% of the total time is spent in garbage collection and less than 2% of the heap is recovered, an OutOfMemoryError will be thrown. This feature is designed to prevent applications from running for an extended period of time while making little or no progress because the heap is too small. If necessary, this feature can be disabled by adding the option -XX:-UseGCOverheadLimit to the command line.
Source: http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#par_gc.oom