Hello i have problem when i read object from file that generated from this code :
this is how i read the object, i'm using
thread because i want to keep up to date with the file, so it will keep reading in interval... the file that i read is about 15mb... but i dunt know how when i read object it will consume about 100-150mb memory in heap. i'm using jprofiler to measure.
this is code how i read this file :
This is main program :
does anyone know, why my program consumes about 100-150mb when deserialize object from 15mb file.
thank you