Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please help!!! I wonder how can I reconcile the following error: "JVM cannot use large page memory because it does not have enough privilege to lock pages in memory"?

The settings are: set JAVA_OPTS=-Xms20g -Xmx20g -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseLargePages -Duser.timezone="GMT" %DEBUG%

share|improve this question
What OS are you using? – mrdenny Oct 23 '09 at 20:35
up vote 3 down vote accepted

There is a page on Sun's website about this:

Here's the relevant information for what is likely your problem:

Only Windows Server 2003 supports large page memory. In order to use it, the administrator must first assign additional privilege to the user who will be running the application:

  1. select Control Panel -> Administrative Tools -> Local Security Policy
  2. select Local Policies -> User Rights Assignment
  3. double click "Lock pages in memory", add users and/or groups
  4. reboot the machine

Note the above steps are needed even if it's the administrator who will be running the application, as administrators by default do not have the privilege to lock pages in memory.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.