Persistent connection and unexpectedly high usage after shinyapps.io migration

Hi there,

we have migrated two apps from shinyapps.io to Connect Cloud. Both apps work fine on the user side, but something is off with the usage numbers. While one app has realistic values, the other has accumulated about 170hrs in a week or so and about 300 usage credits. This is strange for two reasons:

  • based on past usage, I would expect maybe 5 to a wild max of 20 hours usage time in that period
  • on the basic plan, I would only have 100 credits per month allowed, so we are way above our potential here

Here are the facts:

An investigation using the API metrics and application logs found the following:

  • The same server container has been running continuously since approximately 12 October 2026 at 06:34 UTC.
  • Every hourly observation from that point through 19 October at 08:00 UTC reports at least one concurrent connection, including overnight and throughout the weekend.
  • This persistent baseline accounts for approximately 168 of the estimated 188 connection-hours recorded since migration. These estimates come from connection metrics and serving duration.
  • Recent CPU utilization was approximately 0.27%, suggesting little computational activity.
  • Both language versions have identical settings: Connection Timeout and Read Timeout are each 3,600 seconds, and Idle Timeout is 5 seconds.
  • The German application logs contain ten occurrences of:
    Acquired a SockJS connection without any pending for app 0.

Any ideas that helps identify the source of this connection, together with recommended corrective steps, would be very helpful.

Thanks,

JZ

Hi Johannes,

Thanks for your report! We've identified a bug in Connect Cloud that kills WebSocket connections ungracefully after five minutes, triggering a reconnect from the browser and causing a loop. The sustained traffic prevents the app from scaling down. Your content shows a steady traffic pattern from a single IP starting a few days ago, indicating there's an open browser tab hitting this reconnection loop somewhere.

The intended behavior is for the read timeout to kick in after an hour so that apps without real activity can shut down.

We're working on a fix for this issue now; I'll post here once it's out.

Please let us know if you have any more questions!

@Johannes_Zauner1 We've deployed a fix for the issue, and your content has been scaled down.

That is great to hear - thanks for the quick fix!