当前位置:   article > 正文

How do I enable large page support on Windows?_jvm cannot use large page memory because it does n

jvm cannot use large page memory because it does not have enough privilege t

How do I enable large page support on Windows?

 SOLUTION 已验证 - 已更新 2014年九月5日10:06 - 

English 

环境

  • Windows
  • Java JDK

问题

Raw

  1. Java HotSpot(TM) 64-Bit Server VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.
  2. java.lang.NoClassDefFoundError: 922
  3. Caused by: java.lang.ClassNotFoundException: 922
  4. at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  5. at java.security.AccessController.doPrivileged(Native Method)
  6. at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
  7. at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  8. at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  9. at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  10. Could not find the main class: 922. Program will exit.
  11. Exception in thread "main" Shutdown JBoss EAP 5 (JVM1) service

决议

  • Large pages are only supported on Windows Server 2003/2008.

  • The user running Java must have the following additional privileges assigned:

    1. Select Control Panel -> Administrative Tools -> Local Security Policy
    2. Select Local Policies -> User Rights Assignment
    3. Double click "Lock pages in memory"
    4. Add users and/or groups
    5. Reboot the machine
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/279176
推荐阅读
相关标签
  

闽ICP备14008679号