Jump to content
OpenSplice DDS Forum


  • Content count

  • Joined

  • Last visited

About clintwelbar

  • Rank

Profile Information

  • Company
  1. clintwelbar

    Best Practices for Memory Management when using Java

    The key to memory management is data structures, as well as how much performance you need / when. The tradeoff is often between memory and CPU cycles. For example, a lot of memory can be occupied by caching, which is specifically there to improve performance since you are trying to avoid an expensive operation. So think through your data structures and make sure you don't keep things in memory for longer than you have to. If it's a web app, avoid storing a lot of data into the session variable, avoid having static references to huge pools of memory, etc. Clint