bear-metal / tunemygc

TuneMyGC - optimal MRI Ruby 2.1+ Garbage Collection
https://www.tunemygc.com
346 stars 25 forks source link

500 internal server issue when trying to send snapshots- heroku #52

Open bregman90 opened 4 years ago

bregman90 commented 4 years ago

Hello - i am seeing a similar error as reported here: https://github.com/bear-metal/tunemygc/issues/30.

I've tried both using the Heroku addon and booting TuneMyGC from the command line.

I'm on Ruby 2.6.5.

Looking forward to using TuneMyGC!

-Ben


Nov 12 17:12:29 my-app app/web.1 I, [2019-11-13T01:12:29.387095 #6] INFO -- : [tunemygc, ppid: 4, pid: 6] An internal error occurred ({"status":"500","error":"Internal Server Error"}). Failed to sync 448 snapshots.

Nov 12 17:12:29 my-app app/web.1 I, [2019-11-13T01:12:29.387238 #6] INFO -- : [tunemygc, ppid: 4, pid: 6] Retrying in 2 seconds ...

Nov 12 17:12:32 my-app app/web.1 I, [2019-11-13T01:12:32.387618 #6] INFO -- : [tunemygc, ppid: 4, pid: 6] Sync failed after retries ...

Nov 12 17:12:36 my-app app/web.1 I, [2019-11-13T01:12:36.591201 #8] INFO -- : [b7e805e4-275c-451c-95e6-cf21a3936010] [tunemygc, ppid: 4, pid: 8] uninstalled action_controller spy

Nov 12 17:12:36 my-app app/web.1 I, [2019-11-13T01:12:36.591278 #8] INFO -- : [b7e805e4-275c-451c-95e6-cf21a3936010] [tunemygc, ppid: 4, pid: 8] kamikaze after 200 of 200 units of work

Nov 12 17:12:36 my-app app/web.1 I, [2019-11-13T01:12:36.609298 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] kamikaze: synching 466 GC sample snapshots ahead of time (usually only on process exit)

Nov 12 17:12:36 my-app app/web.1 I, [2019-11-13T01:12:36.609570 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] uninstalled GC tracepoint

Nov 12 17:12:36 my-app app/web.1 I, [2019-11-13T01:12:36.609797 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] uninstalled action_controller spy

Nov 12 17:12:36 my-app app/web.1 I, [2019-11-13T01:12:36.611911 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] Sync required? true

Nov 12 17:12:36 my-app app/web.1 I, [2019-11-13T01:12:36.612031 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] Syncing 466 snapshots

Nov 12 17:12:37 my-app app/web.1 I, [2019-11-13T01:12:36.863978 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] An internal error occurred ({"status":"500","error":"Internal Server Error"}). Failed to sync 466 snapshots.

Nov 12 17:12:37 my-app app/web.1 I, [2019-11-13T01:12:36.864094 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] Retrying in 0 seconds ...

Nov 12 17:12:38 my-app app/web.1 I, [2019-11-13T01:12:38.546070 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] An internal error occurred ({"status":"500","error":"Internal Server Error"}). Failed to sync 466 snapshots.

Nov 12 17:12:38 my-app app/web.1 I, [2019-11-13T01:12:38.546206 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] Retrying in 1 seconds ...

Nov 12 17:12:41 my-app app/web.1 I, [2019-11-13T01:12:41.675335 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] An internal error occurred ({"status":"500","error":"Internal Server Error"}). Failed to sync 466 snapshots.

Nov 12 17:12:41 my-app app/web.1 I, [2019-11-13T01:12:41.675480 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] Retrying in 2 seconds ...

Nov 12 17:12:44 my-app app/web.1 I, [2019-11-13T01:12:44.675746 #8] INFO -- : [tunemygc, ppid: 4, pid: 8] Sync failed after retries ...

Marcellllll commented 4 years ago

Hi,

I am having the same issue: [tunemygc, ppid: 4, pid: 15] An internal error occurred ({"status":"500","error":"Internal Server Error"}). Failed to sync 46 snapshots.

This is quickly followed by: [tunemygc, ppid: 1, pid: 4] at_exit [tunemygc, ppid: 1, pid: 4] uninstalled action_controller spy [tunemygc, ppid: 1, pid: 4] Sync required? false [tunemygc, ppid: 1, pid: 4] The TuneMyGC service requires an instrumented application to do at least one unit of work (an ActionController request / response cycle, processing a background job through ActiveJob etc.) in order to suggest a configuration. [tunemygc, ppid: 1, pid: 4] During the last instrumented run, the agent observed 8 GC events of interest, but none of them happened within the context of a unit of work and is thus not representative of your application's GC profile. [tunemygc, ppid: 1, pid: 4] Therefore, we're discarding 8 snapshots and will generate a configuration when there's more context available for the agent to get a representative sample size.

Looks like the service stopped after the errors. Heroku is still recommending the gem on their site. Does anybody know whether it still is working ?