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

Very slow ErrorDetailHelper.MarkupStackTrace call with text from in a docker container. #188

Open
belav opened this issue Mar 12, 2024 · 0 comments

Comments

@belav
Copy link

belav commented Mar 12, 2024

We ran into a situation where the elmah details page was taking ~8s to load when an error was thrown from our app running inside of docker. I narrowed it down to the call to ErrorDetailHelper.MarkupStackTrace

I was able to reproduce the problem by capturing the Error.Detail values from inside and outside of docker and putting them into unit tests.

belav@a8b9409

ThisIsSlow - takes ~20s to run
ThisIsFast - takes ~0s to run

Diffing the strings, one obvious change is
ThisIsSlow uses windows paths such as

C:\projects\insite-commerce\Src\Backend\Plugins\Search\Insite.Search.Elasticsearch\DocumentTypes\Product\Query\ProductSearchFacetProcessor.cs:line 357

ThisIsFast uses linux paths such as

/work/Src/Backend/Plugins/Search/Insite.Search.Elasticsearch/DocumentTypes/Product/Query/ProductSearchFacetProcessor.cs:line 357

I did a find and replace of \ with / in the slow version and that didn't seem to affect the speed of parsing. I haven't tried to debug/profile yet, which may narrow down the problem.

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