Memory pool in file handling?
Hi,
I have an issue with lots of memory allocation/freeing in my program because of which JVM GC gets pretty hectic after some time and that leads to huge delays in application run time.
I guess it can be overcome by using a global memory pool of objects(separate pool for each object) which can be reused again and again. But I am currently using a cache for the objects and the cache manager loads objects from disk to memory using ObjectInputStream.readObject(). For such cases I do not have control on letting java reuse some object from my memory pool.
Is there any workaround for this?