I've been running this sample and looking at the memory usage using VMMap and Performance Monitor and nothing stands out.
However I do consistently get "Version Store out of memory errors" as shown below.
Note that I've now run the SimulatedWorkLoad app against the same server 3 times (the 3rd time the app, not the server, crashed with the version store errors. So it's now inserted over 1/2 a million docs. But SimulatedWorkLoad app will no longer complete it's test, i.e. it can't insert all the docs without getting the version store error. It seems to insert about 100k before stopping.
Request #193,264: GET - 440 ms - Load - 200 - /docs/users/182283
Request #193,265: GET - 33 ms - Load - 200 - /docs/users/168358
Request #193,266: GET - 616 ms - Load - 200 - /indexes/Users/Locations?query=City%253AManhattan&start=0&page
Size=128&aggregation=None
Query: City:Manhattan
Time: 595 ms
Index: Users/Locations
Results: 128 returned out of 400 total.
Error on request Version store out of memory (cleanup already attempted)
Request #193,267: POST - 2 ms - Load - 500 - /bulk_docs
PUT users/485800
PUT users/485801
PUT users/485802
PUT users/485803
PUT users/485804
Error on request Version store out of memory (cleanup already attempted)
Request #193,268: POST - 2 ms - Load - 500 - /bulk_docs
PUT users/485805
PUT users/485806
PUT users/485807
Error during idle operation run for Load Version store out of memory (cleanup already attempted)
Error during idle operation run for Load Version store out of memory (cleanup already attempted)