Can i use more heap than 32 GB with compressed oops

前端 未结 5 583
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 13:06

I could understand that with compressed oops , we can only use 32 GB of RAM. Is there someway i can use more than that like by allocating 2 heap or something ?

Thank

5条回答
  •  悲哀的现实
    2020-12-31 13:32

    If I were in your shoes, I'd investigate each of the following:

    1. Not using compressed oops.
    2. Reducing your application's memory consumption (a memory profiler is an extremely handy tool for investigating memory usage).
    3. Splitting the workload across multiple JVMs, each with a sub-32GB heap.

    Each of the above has the potential for solving your problem. Which is the most appropriate is really hard for us to say.

    80% of space is eaten up by the references rather than the actual data.

    This sounds rather extreme. It may be worth revisiting your data structures, with the emphasis on reducing the number of object references. I've done things along these lines in the past, but it's very hard to give specific recommendations without knowing your problem and the data structures you're currently using.

提交回复
热议问题