H
HK
From Runtime.freeMemory() and Runtime.totalMemory() I
see that my main data structure uses 250MB of
memory. Setting up the data structure is quite
costly and the JVM allocated 1000MB to get
it done. Now the 750MB are reported as free by
the above mentioned method.
I also tried to serialize the data structure
and read it in again, but the result is
only marginally better, i.e. 600MB free after
the data structure is in memory.
Is there any way to tell the JVMs memory
management system to eventually give back
large chunks of free memory to the OS? I know
that malloc() does that if possible.
I am using 1.4.2, but having a solution on with
1.5 (5.0?) would make me switch.
Harald.
see that my main data structure uses 250MB of
memory. Setting up the data structure is quite
costly and the JVM allocated 1000MB to get
it done. Now the 750MB are reported as free by
the above mentioned method.
I also tried to serialize the data structure
and read it in again, but the result is
only marginally better, i.e. 600MB free after
the data structure is in memory.
Is there any way to tell the JVMs memory
management system to eventually give back
large chunks of free memory to the OS? I know
that malloc() does that if possible.
I am using 1.4.2, but having a solution on with
1.5 (5.0?) would make me switch.
Harald.