Fixed a regression in the Master stats.json endpoint.

Review: https://reviews.apache.org/r/19493
Only use 50% of the memory for systems with less than 2GB of memory.

Review: https://reviews.apache.org/r/19312