JVM stops at 2 GB under windows Server 2008 R2

I have a problem with a java application. Using a 64-bit JVM (1.60.0_20) under a Windows 2008 r2 server (64 bit), the application freezes with 2 GB of allocated memory, it does not go beyond this sign even after changing the JVM settings to allocate more (-Xmx5000m) and wait more than 12 hours. This is an EC2 instance with an available memory of 7.5 GB.

+4
source share
1 answer

hangs? Doesn't throw "OutOfMemoryError"? What happens if you start with a 2 GB heap ("-Xms2g -Xmx2g"), can you launch the application?

Interestingly, you are working with the memory available to your instance. Is this a small example? It will start to beat due to the swap, since the amount of memory used is significantly larger than the available physical memory. Perhaps you need a large memory instance.

+1
source

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


All Articles