waterml/src/main/java/ucar/nc2/ogc/erddap/util/ErddapMath2.java
public static void ensureArraySizeOkay(long tSize, String attributeTo) { 
        if (tSize >= Integer.MAX_VALUE) 
            throw new RuntimeException(memoryTooMuchData + "  " +
                MessageFormat.format(memoryArraySize, "" + tSize, "" + Integer.MAX_VALUE) +
                (attributeTo == null || attributeTo.length() == 0? "" : " (" + attributeTo + ")"));
    }
public static void ensureArraySizeOkay(long tSize, String attributeTo) { 
        if (tSize >= Integer.MAX_VALUE) 
            throw new RuntimeException(memoryTooMuchData + "  " +
                MessageFormat.format(memoryArraySize, "" + tSize, "" + Integer.MAX_VALUE) +
                (attributeTo == null || attributeTo.length() == 0? "" : " (" + attributeTo + ")"));
    }
public static void ensureArraySizeOkay ( long tSize , String attributeTo ) { if ( tSize >= Integer . MAX_VALUE ) throw new RuntimeException ( memoryTooMuchData + "  " + MessageFormat . format ( memoryArraySize , "" + tSize , "" + Integer . MAX_VALUE ) + ( attributeTo == null || attributeTo . length ( ) == 0 ? "" : " (" + attributeTo + ")" ) ) ; }
Even if JavaBits is 64, the limit on an array size is Integer.MAX_VALUE.

<p>This is almost identical to EDStatic.ensureArraySizeOkay, but lacks tallying.

@param tSize
@param attributeTo for a WARNING or ERROR message, this is the string
to which this not-enough-memory issue should be attributed.
Even if JavaBits is 64 the limit on an array size is Integer . MAX_VALUE .