Allow for -1 memory limit
Merge pull request #1406 from ExchangeCore/memorylimit

Allow for -1 memory limit