mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-08-05 16:59:05 +00:00
Tweak ram detector to allow slightly below 512M of ram
This commit is contained in:
parent
5c6ac9f467
commit
8ccab0497d
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ public class Bootstrap
|
|||
}
|
||||
|
||||
long memoryMb = Runtime.getRuntime().maxMemory() >> 20;
|
||||
if ( memoryMb < 512 )
|
||||
if ( memoryMb < 448 ) // Older JVMs (including Java 8) report less than Xmx here. Allow some slack for people actually using -Xmx512M
|
||||
{
|
||||
System.err.println( "BuildTools requires at least 512M of memory to run (1024M recommended), but has only detected " + memoryMb + "M." );
|
||||
System.err.println( "This can often occur if you are running a 32-bit system, or one with low RAM." );
|
||||
|
|
Loading…
Add table
Reference in a new issue