CRAMM (Cooperative Robust Automatic Memory Management) provides a method for dynamically selecting optimal heap sizes for garbage-collected applications while minimizing paging and overhead. It employs a cooperative approach between the operating system and garbage collector, gathering memory usage statistics to adjust heap sizes as memory pressure changes, resulting in improved performance by up to 20 times. The system is characterized by low overhead (1-2.5%) and adapts quickly to variable memory conditions.