R Shiny at IQSS
  • Introduction
  • Getting started
    • Determining your resource requirements
    • Applying for an account
  • Deploying
    • Setup your environment
    • Deploying an example Shiny app
    • Bootstrapping a new Shiny app or migrating a pre-existing Shiny application
    • Developing locally with RStudio
    • Developing locally using Docker
    • Speeding up deployments with Packrat
  • Configuration
    • Setting up a custom domain for your Shiny app
    • Installing additional system-level packages
    • Limiting the number of R Threads
  • Best Practices
    • File storage
    • Using promises
    • Adding routes
  • Troubleshooting
    • Resolving Application Error screen
    • Viewing app logs
    • Viewing resource consumption
    • Configuring Shiny session auto-reconnect
    • Getting support
Powered by GitBook
On this page
  • Dynos are tiny virtual machines
  • How do I find out how much memory my application uses?
  • For Windows
  • For OS X
  • My app uses over 512 MB of ram. Can I still apply?
  1. Getting started

Determining your resource requirements

PreviousGetting startedNextApplying for an account

Last updated 5 years ago

Does your R Shiny application consume less than 512 megabytes of ram? Let's find out.

Dynos are tiny virtual machines

All applications deployed to Heroku, including your R Shiny application, are executed on dynos. Dynos are, for the sake of simplicity, tiny virtual machines with resource limits.

The default memory limit for a Standard 1X Heroku dyno is 512MB. Standard 2X dynos provide 1GiB of memory, while Performance M and Performance L dynos provide 2.5GB and 14GB respectively. Take a look at a .

R Shiny apps take up a lot of memory, but, there are a few tricks you can use to build performant, small-footprint R applications.

While we prefer to reduce your application's footprint, we understand that some applications require more. However, using anything above a Standard 1X dyno will require additional consulting with the Shiny team at IQSS.

How do I find out how much memory my application uses?

For Windows

  • Run your Shiny application locally through RStudio or the command line

  • .

  • Look for R.exe or rsession.exe.

  • How much memory is being used?

For OS X

  • Run your Shiny application locally through RStudio or the command line.

  • Open the Activity Monitor. Typing "Activity" in Spotlight, accessed by clicking

    the magnifying class in the upper-right hand corner, should immediately show Activity Monitor as a top hit.

  • Look for R or rsession.

  • How much memory is being used?

Example

My app uses over 512 MB of ram. Can I still apply?

Continue with the onboarding process. RStudio does add some overhead compared to the vanilla R runtime which is used on Heroku. If your app is using substantially over 512 MB, continue with the onboarding process but be aware that you will most likely need to make substantial optimizations to your R code. We can also point you in the right direction to in-person R programming assistance on campus.

side by side comparison of available dyno types
Open the Task Manager
Determining memory usage of an R Shiny application in OS X
Open the activity monitor