Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8821021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:45:06+00:00 2026-06-14T05:45:06+00:00

I have bought a VPS server with 2GB of RAM and Debian x64. When

  • 0

I have bought a VPS server with 2GB of RAM and Debian x64. When I want to run a Minecraft server with this command:
screen java -Xmx1600M -Xms1600M -jar craftbukkit.jar
but server keeps shutting down with information [screen is terminating], in logs I can find this: http://pastebin.com/YupAEnyN
Memory used by system is low: https://i.stack.imgur.com/2Yrl2.png

Unfortunately I can’t make swap because VPS is working under OpenVM.
What should I do if I want to run server with as much RAM as possible? Server is running with -Xms1536M -Xmx1536M but I’d like to get more…
Thanks for advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:45:08+00:00Added an answer on June 14, 2026 at 5:45 am

    I think you need to reduce the memory settings instead of trying to increase them.

    Notice that the error was Native memory allocation (malloc) failed

    The -Xmx flag increases your Java heap memory. It makes more memory available to Java code. However, that’s not where your problem is. Java has plenty of memory. The error indicates that native code is running out of memory.

    Let’s say that with your 2GB of RAM that the Java process will have 1.7GB available to it. This is an operating system defined limit that absolutely cannot be exceeded. (I don’t know what the real value is for your system, I’m just pretending that it is 1.7GB) Now you specify the -Xms1600M. You have just reserved 1.6GB for Java code and left a minuscule 100MB for any other native code.

    If it were me, I would start with -Xms1024 -Xmx1024 giving 1GB for Java code and several hundred MB for the other native code. Only when the process starts getting OutOfMemory exceptions in Java code (not native code) would I consider raising these values.

    This whole thing is rather counter-intuitive. For a much more in depth explanation see the article at:
    http://www.ibm.com/developerworks/linux/library/j-nativememory-linux/index.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to learn coding web apps with java using glassfish. i have bought
I have just bought a VPS running Ubuntu and I need to install the
I'm having a problem which I can't solve. I have bought a cheap vps,
I have recently bought VPS hosting and I assume, that it has problem with
I have bought a Joomla template from Template monster. It looks like this template
I have bought a ipad website and it's moved to my server. Now i
I want to develop facebook applications and I have bought some books from amazon.
helo everyone This is a code from a book i have bought. It gives
We have bought new iPod touch, I didn't got provisional certificates for this device,
i have bought a template that have built in contact form problem is that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.