-
Notifications
You must be signed in to change notification settings - Fork 923
Description
Hi,
Just feeding back about my experiences using React.NET in a web app I manage. I'm using react code for 2 pages in the app, which are frequently accessed edtitable lists.
The web app gets about 10,000 views a day.
So, using React.NET, I plumbed in the server-side rendering and everything seemed to work great. I load-tested with a simple "request the same react page thousands of times" test, and things seemed OK. So we went live with this (to an azure web site)...
While everything looked good, we noticed that memory usage started creeping up.. Over a period of about 3 days, the memory usage from IIS went from 800Meg to about 2 Gig, where it then maxed out and the app started getting memory exceptions (the server had 3 gig). What seemed to be the issue was that for each different user logged in to the app, this would have an impact to the amount of memory that was then being consumed and got given back (presumably by the ClearScript engine spinning up and processing the JS for that user). So if I just bombarded it with a simple load test for the same user, I didn't see much of a problem.
For now, I've turned off server rendering, and the memory issue has pretty much gone away. I know there is / has been some talk of changing the code so that the ClearScript engine is disposed better and not pooled, I think this needs to move up the list a bit ;) I've not tried to port the app to use the "super charged" fork/version, mainly because of time constraints.