Shiny App takes long time to load then immediatly disconnects from server

My Shiny App runs perfectly well on my local server, but when I try to run it on, it takes quite a while to load, and when it finally does, it immediately disconnects. I'm assuming this is happening because it has to load too much data (it loads two DFs, both of which contain several million observations), but I'm not sure. For context, I only have the free account on, so that may be limiting performance. Should I find more efficient ways to load the data (e.g., with something like the arrow package? I don't have any experience with this.), or is there potentially something else going on? Thanks!

You can confirm whether the source of the error/disconnection is not enough memory or something else by checking the logs of your app on Please post your logs leading up to the disconnect here so we have more details.

If you are using, logs are under the “Logs” tab found in an app’s settings, or at the URL, where ID is the app’s ID number (not its name).

Here are the logs. There don't appear to be any clear indications of what's going on...

I'd say in that case it is likely the memory limitations on the free shiny server.

1 Like

That's what I was afraid of. I've upgraded to the Basic plan, and it works now. Thanks!

As a side note, loading tidyverse on a resource constraint environment is a bad idea since it is a package aggregator and it loads a bunch of things, try to load only the packages you actually need.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.