shinyapps.io server too slow?

447 views
Skip to first unread message

zhao shilin

unread,
Jun 4, 2018, 6:11:07 PM6/4/18
to shinyapps.io Users
Hello,

I am trying to upload my shiny app to this server. It works fine in my laptop or server, usually can be finished within 10 seconds. But in the shinyapps.io it needs at least 3-4 minutes to finish the same task. The CPU usage is about 15000000000 (not sure what this mean) and the memory usage is about 700MB. So I think it is related to the shinyapps.io server CPU usage? Any suggestion about it? I checked the paid services and seems nothing is provided for upgrading server CPU?

Thanks!


Joshua Spiewak

unread,
Jun 5, 2018, 8:43:33 AM6/5/18
to shinyapps.io Users
The units of CPU usage are in nanoseconds.

When the application runs locally, how much memory does it consume?

The higher paid tiers have access to more memory. By default applications are limited to 1 GB, so if you are seeing memory usage approaching that, you could certainly try a larger instance type for improvement.

zhao shilin

unread,
Jun 5, 2018, 10:28:20 AM6/5/18
to Joshua Spiewak, shinyapps.io Users
Thanks~
It used about 700M in my laptop. So I am not worried about memory usage. 
If I understand it correctly, the CPU usage is 15000000000/10^9=1500%. So it used too much CPU (which makes it very slow in shinyapps.io) and I will need a more powerful server?

--
You received this message because you are subscribed to the Google Groups "shinyapps.io Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-users+unsubscribe@googlegroups.com.
To post to this group, send email to shinyapps-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/8f840aed-6db6-418a-b8f0-4ecb57a0b6c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joshua Spiewak

unread,
Jun 5, 2018, 11:18:21 AM6/5/18
to shinyapps.io Users
The unit is nanoseconds. It is the amount of time that the application was consuming the CPU for the period of time of the measurement. The period of time will depend upon how zoomed out you are, but is no more fine grained than a minute.

1500 seconds over what period of time would tell you a percentage.

Is your application loading anything over a network?

Also, I see many errors in the Javascript console.

zhao shilin

unread,
Jun 5, 2018, 6:23:28 PM6/5/18
to Joshua Spiewak, shinyapps.io Users
Thanks! For nanoseconds per "period of time", I can't distinguish it from the figure. The app do have a lot of computations, but not related to network (download/upload). So I can understand it will be slow, but didn't know why it is 100* slower than my laptop (3 second vs 300 second). 

For JavaScript errors, would you please post them? I also found error in log and think it is related to different package versions, as it works fine in my laptop but lost some web elements in the .io server. If I didn't click anything related to the lost elements, there will be no error in log and it is still very slow. So I think slow is not related to the errors.

Joshua Spiewak

unread,
Jun 6, 2018, 9:05:49 AM6/6/18
to shinyapps.io Users
We aren't really staffed to debug applications, I don't know what packages you might be using here, what your local environment looks like (windows vs linux on shinyapps.io, very likely has a GPU), etc.
I still suggest trying a larger instance type on shinyapps.io
FWIW, I was using the Chrome browser when I saw the console errors.
Reply all
Reply to author
Forward
0 new messages