我有一个已上传到shinyapps.io的应用程序,并且我注意到一些无法跟踪的不稳定情况。该应用程序具有许多不同的无功输入,它们调用代码来过滤,计算和绘制一些数据。有时,按一定顺序选择这些输入会导致站点冻结并触发500 Internal Server Error。
奇怪的是,当我在本地托管(直通R)版本的应用上执行相同的命令时,我没有收到错误。
这真是个鼻屎:关于什么可能导致问题和/或如何更好地调试它的任何建议?我是一名javascript新手,因此将不胜感激。
完整的代表性错误日志:
/opt/shiny-server/scripts/shiny-run: line 3: 32 Killed
/bin/bash --login -c "$SHINY_EXEC_COMMAND $SHINY_R_PATH $*"
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
<<[email protected]>>/shared/bootstrap/css/bootstrap-responsive.min.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
<<[email protected]>>/shared/bootstrap/css/bootstrap.min.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
<<[email protected]>>/shared/font-awesome/css/font-awesome.min.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
<<[email protected]>>/shared/datatables/css/DT_bootstrap.css
好的-事实证明,问题实际上非常简单。该应用程序只是内存不足。
在错误日志中,有一行关于进程被杀死的信息,表明内存不足。您可以使用ShinyApps :: showLogs()访问错误日志。
要解决此问题,您可以使用以下方法增加应用程序可用的内存:Shinyapps :: configureApp(“ APPNAME”,size =“ xlarge”)
其中“ APPNAME”是应用程序的名称。有关内存的更多信息,请访问:http : //shiny.rstudio.com/articles/shinyapps.html
感谢RStudio的人员帮助诊断。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句