Shinyapps.io“与服务器断开连接” /“内存不足”问题

时间:2019-09-27 21:21:32

标签: r shiny dashboard shinydashboard shinyapps

我在Travis上部署我的应用程序时遇到问题。这是我的应用:https://github.com/loicpalma/Shiny_App

您可以在这里在线尝试:https://loicpalma.shinyapps.io/Test_Shiny/

基本上,当我在本地托管我的应用时,一切正常

但是,当我尝试在Shinyapps.io上使用它时,尝试做一些混淆矩阵等操作时,我会断开连接。值得一提的是,我使用的是免费版本的Shinyapps.io。

这是我的Shinyapps.io日志:

2019-09-27T21:00:59.412409+00:00 shinyapps[1162708]: 
2019-09-27T21:00:59.412413+00:00 shinyapps[1162708]: Attaching package: ‘shinydashboard’
2019-09-27T21:00:59.412414+00:00 shinyapps[1162708]: 
2019-09-27T21:00:59.412820+00:00 shinyapps[1162708]: The following object is masked from ‘package:graphics’:
2019-09-27T21:00:59.412822+00:00 shinyapps[1162708]: 
2019-09-27T21:00:59.412823+00:00 shinyapps[1162708]:     box
2019-09-27T21:00:59.412823+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.222691+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.222705+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.222703+00:00 shinyapps[1162708]: Attaching package: ‘precrec’
2019-09-27T21:01:00.223080+00:00 shinyapps[1162708]: The following object is masked from ‘package:pROC’:
2019-09-27T21:01:00.223081+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.223082+00:00 shinyapps[1162708]:     auc
2019-09-27T21:01:00.223082+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.249436+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.249440+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.249837+00:00 shinyapps[1162708]: The following objects are masked from ‘package:stats’:
2019-09-27T21:01:00.249440+00:00 shinyapps[1162708]: Attaching package: ‘dplyr’
2019-09-27T21:01:00.249838+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.249839+00:00 shinyapps[1162708]:     filter, lag
2019-09-27T21:01:00.249840+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.250262+00:00 shinyapps[1162708]: The following objects are masked from ‘package:base’:
2019-09-27T21:01:00.250263+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.250264+00:00 shinyapps[1162708]:     intersect, setdiff, setequal, union
2019-09-27T21:01:00.250264+00:00 shinyapps[1162708]: 
2019-09-27T21:01:00.263423+00:00 shinyapps[1162708]: Loading required package: lattice
2019-09-27T21:01:02.014600+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.014603+00:00 shinyapps[1162708]: Attaching package: ‘xgboost’
2019-09-27T21:01:02.014604+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.014962+00:00 shinyapps[1162708]: The following object is masked from ‘package:dplyr’:
2019-09-27T21:01:02.014963+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.014964+00:00 shinyapps[1162708]:     slice
2019-09-27T21:01:02.014965+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.033009+00:00 shinyapps[1162708]: corrplot 0.84 loaded
2019-09-27T21:01:02.597854+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.597857+00:00 shinyapps[1162708]: Attaching package: ‘kernlab’
2019-09-27T21:01:02.597858+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.598774+00:00 shinyapps[1162708]: The following object is masked from ‘package:ggplot2’:
2019-09-27T21:01:02.598775+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.598776+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.598775+00:00 shinyapps[1162708]:     alpha
2019-09-27T21:01:02.626321+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.626323+00:00 shinyapps[1162708]: Please cite as: 
2019-09-27T21:01:02.626324+00:00 shinyapps[1162708]: 
2019-09-27T21:01:02.626480+00:00 shinyapps[1162708]:  Hlavac, Marek (2018). stargazer: Well-Formatted Regression and Summary Statistics Tables.
2019-09-27T21:01:02.626656+00:00 shinyapps[1162708]:  R package version 5.2.2. https://CRAN.R-project.org/package=stargazer 
2019-09-27T21:01:02.626657+00:00 shinyapps[1162708]: 
2019-09-27T21:01:07.171025+00:00 shinyapps[1162708]: 
2019-09-27T21:01:07.171029+00:00 shinyapps[1162708]: Listening on http://127.0.0.1:35874
2019-09-27T21:03:20.162037+00:00 shinyapps[1162708]: Warning: glm.fit: fitted probabilities numerically 0 or 1 occurred
2019-09-27T21:03:22.338070+00:00 shinyapps[system]: Out of memory!

显然这是一个"Out of memory issue"

这是我的Shinyapps.io设置:

enter image description here

enter image description here

这是我的指标:

enter image description here

我正在使用直接加载到global.R中的50 Mb .rds数据集,所以我认为这不是问题。

我看到很多人都在经历这种问题。但是,我在stackoverflow上找不到任何解决方案。是否有人可以解决此“与服务器断开连接” /“内存不足”问题?

0 个答案:

没有答案