mapbox/tilemill — Issue #1264: Loading many projects can fail without errors
Author: miccolis
Created: 2012-02-02 16:06:16+00:00
State: open

On my OS X machine if I've got more than 300 projects and I view the project listing view some projects won't be shown. This is because the default `ulimit -n` (open files) setting is 256, and when TileMill tries to scan the 257th file it gets a `EMFILE, Too many open files` error.

TileMill itself expects any errors during load to simply be because a project doesn't exist: https://github.com/mapbox/tilemill/blob/master/models/Project.server.bones#L164

Perhaps we should only issue a "Project missing" error for a missing file, and log these EMFILE errors.