简体   繁体   中英

JVM stops at 2GB under windows Server 2008 R2

I have a problem with a java application. Using a 64bit JVM (1.60.0_20) under windows server 2008 r2 (64bit), the application hangs at 2GB allocated memory, it will not go beyond that mark even after changing the JVM settings to allocate more (-Xmx5000m) and waiting for more than 12 hours. This is on an EC2 instance with 7.5GB available memory.

Hangs? Not throws 'OutOfMemoryError'? What happens if you start out with the heap at 2GB ("-Xms2g -Xmx2g"), can you start the app?

I wonder if you are running up against the memory available to your instance. Is it a small instance? It will start thrashing, due to swap, as the amount of memory in use well exceeds the physical memory available. Maybe you need a large-memory instance instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM