Closed NagarajMasub closed 2 years ago
Facing this same issue, Any solution?
@jzabroski do you have any idea on this?
There isn't anything here for me to look at. I am pretty surprised there is a report of high memory usage without a repro or using a professional .NET memory profiling tool. Screenshots of Windows Task Manager Performance tab are not acceptable. It should be immediately obvious where your problem is if you are using professional tools to analyze the problem.
I would also note that in your second screenshot, it does not look like a memory leak is there. That looks pretty steady to me, and does not match your description that your app normally takes only 200MB. Are you really suggesting that one RazorLight request takes 12 hours to execute? There's also no data suggesting you are using 6GB on GCP.
Given your code sample shows you are manually building a new engine on every call, maybe start your investigation there and use dependency injection and see if your performance improves?
Some basic tips:
Closing. Please open a new issue if you have some more concrete details.
@jzabroski "you are manually building a new engine on every call" We did the same by blindly following examples in Readme. May I suggest to add to Readme a tip to use dependency injection/singleton to use single instance of razorLightEngine
Hi team, I have been using the RazorLight engine for resolving my email templates, I am facing high memory usage from the RazorLight engine. Please find the attached snap of memory usage report, this below snap taken in localhost.
We have hosted this app in GCP k8s too, there also facing the same issue, sometimes around 6GB memory used when we are having high incoming request.
Used Version: 2.0.0-rc.3 Thanks in advance.