Monday, 15 June 2015

A sample test java code which can demonstrate memory fragmentation in heap -



A sample test java code which can demonstrate memory fragmentation in heap -

i understand on how memory fragmentation can occur writing bad code in java user space.

please point out me ideas can help me understand this.

in understanding thinking like, java heap fragmentation can occur because of buggy garbage collection, of friends argued opposite.

i want understand java heap fragmentation can occur writing bad java code applications well.

nb: looking code snippets can demonstrate argument.

update:

actually jvm have in embedded device java 1.3.

thanks, sen

first of all, garbage collector jvm specific. know openjre , sun jre. garbage collectors used there compact heap during collection, heap fragmentation can not occur due design of memory management.

other algorithms memory management, got used more in past, utilize free list , did not move memory around in heap. such management schemes heap fragmentation can issue.

java heap-memory memory-fragmentation heap-fragmentation

No comments:

Post a Comment