Posts Tagged ‘memory’

  

How to Determine Maximum Heap Size

What is a good way to determine the maximum heap size a virtual machine (VM) should be allocated in production? A simple but flawed approach is to simply start with an initial size and increase it by 50% to 100% whenever it runs out of memory. While this might be acceptable for test environments, incurring […]

Streaming Data to Reduce Memory Usage

I recently performed a series of optimizations to reduce an application’s memory usage. After completing several of these I noticed that there was a common theme to many of my optimizations that I could explicitly apply to help identify further opportunities for improvement. As a reoccuring solution, this qualifies as a design pattern which I […]