What is the maximum Java heap size that I can safely use on a 64bit Windows platform?

We use a 64-bit Windows 2003 server to run the WebSphere / J2EE application (the JVM is also 64-bit). The device has 16 GB of physical memory. Unfortunately, our application uses memory intensively, and it will take us some time to add additional memory.

I understand that the operating system itself requires a certain amount of memory. Do you consider how safe (without paging?) We can use the maximum heap size, considering that this is the only application running on the system?

+3
source share
3 answers

I think the answer will depend on many factors, many of which are difficult to predict.

IMO, the most practical way to determine the size of a safe heap is through trial and error. I would start with a maximum heap of about 15 GB in size, look at the system memory / paging statistics and adjust up or down.

+2
source

The best idea is to experiment ... Check out the first answer here ... it will help you ...

You can write a batch file to run an experiment for different heap sizes and see where it crashes ...

0
source

, . , , , . , 3/4 .

, , , GC- .

0

Source: https://habr.com/ru/post/1778454/


All Articles