Skip to content

excessive CPU usage warning from Vercel for middleware #45

@nibtime

Description

@nibtime

Just checked my emails and received a warning from Vercel about excessive CPU usage of middleware, both on my hobby account and a Pro Team account. For middleware, there is a limit of 50ms CPU execution time per request, on average

I merged the release commit for 0.8.0 on Jul 7, 2022 at 6:13PM (UTC), with also redeployed the e2e app with the new version.

Strange though is, that the avg. CPU time per request doesn't execeed 50ms on any day + a project on the Pro account that uses middleware doesn't use the new release and still runs on 0.6.0 with Beta middleware. Also both alert arrived around the same time, (Fr. 8 Juli, 3:08PM and 3:10PM (UTC).

Hobby CPU utilization

2022-07-12 02_47_12

Pro Team CPU utilization

2022-07-12 02_47_58

I got in touch with Vercel support and asked what I should do. I'll update this issue once I get a reply

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions