Why is Rails + webpack + split chunking serving up slow requests on localhost?

Viewed 127

I have a Rails (puma) app with webpacker (webpack). I'm doing split chunking on ~40 of my pages at the routing level. When I run the app locally my requests start to slow down (see img below) after about an hour of running the server. I'm not sure why. If I kill my rails server and/or webpack dev server and restart them it still continues to be slow (If I restart my machine it'll go back to being fast. haha).

Any ideas how to fix or debug this?

// rails console output for this page:

@method=GET path=/invite format=html controller=HomeController action=index status=200 duration=154.88 view=154.15 db=0.00

slow request

0 Answers
Related