简体   繁体   English

Windows Server 2008 R2下JVM停止在2GB

[英]JVM stops at 2GB under windows Server 2008 R2

I have a problem with a java application. 我有一个Java应用程序的问题。 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. 在Windows Server 2008 r2(64位)下使用64位JVM(1.60.0_20),应用程序挂起2GB分配内存,即使更改JVM设置以分配更多(-Xmx5000m)并等待更多内存,它也不会超出该标记超过12小时。 This is on an EC2 instance with 7.5GB available memory. 这是在具有7.5GB可用内存的EC2实例上。

Hangs? 挂起? Not throws 'OutOfMemoryError'? 不抛出'OutOfMemoryError'? What happens if you start out with the heap at 2GB ("-Xms2g -Xmx2g"), can you start the app? 如果你开始使用2GB的堆(“-Xms2g -Xmx2g”)会发生什么,你能启动应用程序吗?

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. 也许你需要一个大内存实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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