Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track performance metrics of cold starts (helps debug startup performance issues) #431

Open
atuttle opened this issue Jan 13, 2023 · 0 comments

Comments

@atuttle
Copy link
Owner

atuttle commented Jan 13, 2023

I was recently helping a company with performance issues they were seeing on cold starts (e.g. just restarted their CFML service, so there is nothing cached) for their Taffy API. In order to help track down problem files, I sent them a customized version of Taffy that tracked the time used for almost everything that happened while Taffy's internal bean factory was bootstrapping resources and their dependencies.

The approach and display was crude so I would want to rewrite it from scratch, but I think the general idea is sound.

Basically, any time Taffy creates an instance of non-taffy components, it would track the time to do so (using getTickCount()) and then log that to a new dataset inside of application._taffy. Then it can be displayed, either on the dashboard, or in headers, or as a custom built-in route response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant