Fork me on GitHub
Petrus Theron08:03:13

Deploying a Clojure app to Heroku throws H20 App boot timeout and H10 "App crashed" errors. Worked previously. No new dependencies. Any tips on how to reduce startup time? The uberjar is 140 MB, which seems pretty fat.


@petrus - It definitely depends on the app, but as a general technique, you can move some loading out of the critical path, either into a separate thread or to be loaded lazily when it's needed and not before. It's often a bit more complicated to manage that (especially the former) because you have to account for the half-loaded state. But that might get you booted within the timeout window.