Does UseLargePages option work on Windows?
Christian Törnqvist
christian.tornqvist at oracle.com
Tue Feb 26 23:45:22 PST 2013
Hi Zhengyu,
I got it to work (on my Windows 8 machine), granted myself the "Lock pages in memory" right and rebooted the machine. Then I had to start my java process from an administrative command prompt to get it to work, otherwise it would give me the privilege error.
I managed to reproduce your NMT assert using this. If you don't get it to work, please ping me and I'll give you access to my machine.
Thanks,
Christian
-----Original Message-----
From: Zhengyu Gu
Sent: den 20 februari 2013 20:40
To: hotspot-dev at openjdk.java.net
Subject: Does UseLargePages option work on Windows?
Hi,
I am trying to experiment UseLargePages option (-XX:+UseLargePages) with NMT, but I have trouble to get large page to work on Windows (mine is Windows 7).
I followed instruction to grant myself the permission to lock pages in memory (http://msdn.microsoft.com/en-us/library/ms190730.aspx), but I am still getting following warning message:
Java HotSpot(TM) Server VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.
Test jobs from JPRT also show large pages are not enabled.
Java HotSpot(TM) Client VM warning: Large page is not supported by the operating system.
Java HotSpot(TM) Server VM warning: Large page is not supported by the operating system.
Could you please comment what I did wrong?
Thanks,
-Zhengyu
More information about the hotspot-dev
mailing list