2

My shiny app works fine locally, but when I deploy it on the server (this app), it's fetching following error:

enter image description here

I looked at the logs and it says "out of memory".

enter image description here

I checked that shiny allows memory usage up to 1 GB for free accounts.

enter image description here

But when I looked at my app's memory usage it's hardly touching even 500 MB.

enter image description here

I admit that the CSV file which I am trying to access is of 1.3 GB, possibly can be the culprit.

But I am not convinced because often the good data for analysis are large and doesn't limit to size 2 or 50 MB.

Kindly requesting some expert advice and if possible a workaround.

Scott Grammilo
  • 1,229
  • 4
  • 16
  • 37
  • Error related to this?: https://stackoverflow.com/a/18037912/5874001 – InfiniteFlash Dec 29 '17 at 20:45
  • 2
    I've had similar issues before and honestly, I'd avoid having applications relying on large datasets. Would recommend you pull from a dataset via `sqldf` so that you're not loading the entire dataset in your environment. – InfiniteFlash Dec 29 '17 at 20:46
  • I have the exact same issue. The difference is that I upload data files that are 150MB in total. I think the problem is that I use too many libraries that might create this `out of memory!`issue? For my case I use `ballgown RSkittleBrewer genefilter dplyr devtools ggplot2 reshape stringr Gviz`. – Corend Feb 06 '18 at 10:47
  • @CorentinD: DId using the thing which you have mentioned solve your error? I am very curious. And what's the solution: is it a line of `code`? I am not able to understand. – Scott Grammilo Feb 06 '18 at 15:20
  • @InfiniteFlashChess: Umm, I think more than that. – Scott Grammilo Feb 06 '18 at 15:21
  • Nope, I still have the issue, I am wondering if using too many packages is creating the `out of memory!` error because they take too much memory. – Corend Feb 06 '18 at 15:47
  • @CorentinD: I am not sure what is your case, if it is possible for you, you can either relax some of your business rules. Like you may aggregate the results which you previously wanted to show. What I would like to do is (1) to check which maximum file size works, (2) divide original app into multiple inter-linked apps such that user would just click and travel to a totally different app for a different type of insight using a different and aggregated metalayer. – Scott Grammilo Feb 08 '18 at 02:29

0 Answers0