-2

I am using 512 mb ram. I know we can increase the jvm heap memory by passing two arguments..

What is the maximum value that I can give for -Xmx argument for 512 mb ram to work system smoothly.

MR. PRAD
  • 45
  • 2
  • 4

1 Answers1

1

That depends on what else you're running. If you run out of available RAM, the operating system will swap to disk. If you overcommit your RAM a little bit, the stuff that gets swapped to disk probably is the unused stuff and it doesn't hurt too much.

If you overcommit your RAM too much, the system will churn on the hard drive and everything slows down unbearably. There is no way for someone on the internet to guess at what this precise point may be on your computer, so you'll just have to try various values of the -Xmx argument to find out where the breaking point is.

Barend
  • 17,296
  • 2
  • 61
  • 80
  • 1
    Seriously though... 512MB. I'm guessing you're on a corporate network with no freedom to spec or buy your own hardware, but that was a nice amount of RAM to have twelve years ago. There's a good business case to be made for your boss to spend $15 on an upgrade to 4GB. You'll earn that amount of money in productivity within the week, possibly the day. – Barend Feb 24 '13 at 11:42