If we get a large catalog, the JVM will crash with OOM errors if not sized correctly. This is not very elegant, and we need a much nicer way of dealing with this.
We should have a way of dealing with this, either through a configurable option for maximum catalog receive size at the earlier HTTP stage (initially), or something more heuristic (long term). We should either way, not throw an OOM if we can avoid it.
Eventually we want to support arbitrarily large catalogs, but that will be a significant change. Changing this ticket to fail fast on catalogs that are too large.