|
|
|
|
Re: Eclipse wont run "Hello World" [message #1799749 is a reply to message #1799724] |
Thu, 13 December 2018 09:19 |
Ed Willink Messages: 7669 Registered: July 2009 |
Senior Member |
|
|
Hi
Quote:-Xmxsize
Specifies the maximum size (in bytes) of the memory allocation pool in bytes. This value must be a multiple of 1024 and greater than 2 MB. Append the letter k or K to indicate kilobytes, m or M to indicate megabytes, g or G to indicate gigabytes.
512 would therefore be both foolish and illegal. It is the maximum size. 6122 is also foolish. 6122M is plausible, but perhaps a little generous if you only have an old perhaps 8G machine.
In my experience I can sometimes get away with 64M when testing that standalone applications are not being too wasteful or leaky. I really wouldn't recommend less than 1G for everyday usage. For ordinary applications the default, often 256M, is adequate. Eclipse Modeling applications tend to be a bit thirsty, so 1G or more is better.
If you actually care, use jvisualvm to see how much memory you actually use. Setting -Xmx too low will break your application, being stingy will just make your application run slow, perhaps very slow.
Regards
Ed Willink
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03791 seconds