memory - JAVA: Strategy to design large object which can be persisted into harddisk when its size is too large -
we have limited memory , we'd have way persist big object harddisk when size on defined number (i.e 100m). object can still used other function when it's called.
any thought implement such kind of object?
-> utilize java.lang.instrument.instrumentation class size of object this:-
instrumentation.getobjectsize(objectinstance);
-> check if size increases beyond 100 m
-> if does, serialize object, , save file on harddisk
java memory
No comments:
Post a Comment