You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
Learn how to track your Edge Function's performance and identify potential resource issues.
Accessing metrics
Track your function's performance through the dashboard:
Key metrics to monitor
CPU usage
High CPU usage indicates your function is performing intensive computations. Consider:
Memory usage
Memory spikes can cause function failures. Watch for:
Execution time
Long execution times can lead to timeouts. Monitor for:
Resource limits
Edge Functions have limited resources compared to traditional servers. Optimize for:
Best practices
Use streaming for large data
Instead of loading entire files into memory, stream data:
Process data in chunks
Break large operations into smaller batches:
Cache expensive operations
Store results of expensive computations to avoid recalculating:
Additional resources
All reactions