merge from 2.1.0

This commit is contained in:
Jonathan Ellis 2014-07-08 15:59:15 -05:00
commit f72d0247a7
2 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,10 @@
* Optimise NativeCell comparisons (CASSANDRA-6755)
2.1.0-final
* (Windows) fix startup when WMI memory query fails (CASSANDRA-7505)
2.1.0-rc3
* Consider expiry when reconciling otherwise equal cells (CASSANDRA-7403)
* Introduce CQL support for stress tool (CASSANDRA-6146)

View File

@ -66,6 +66,14 @@ Function CalculateHeapSizes
}
$memObject = Get-WMIObject -class win32_physicalmemory
if ($memObject -eq $null)
{
echo "WARNING! Could not determine system memory. Defaulting to 2G heap, 512M newgen. Manually override in conf/cassandra-env.ps1 for different heap values."
$env:MAX_HEAP_SIZE = "2048M"
$env:HEAP_NEWSIZE = "512M"
return
}
$memory = ($memObject | Measure-Object Capacity -Sum).sum
$memoryMB = [Math]::Truncate($memory / (1024*1024))