We are getting a strange memory leak on latest version after upgrade #267
Replies: 11 comments 7 replies
-
It's possible that it's related to virus software or a bloated temp directory. You can try changing the web.config compilation tempDirectory to a subdirectory in your www folder which sometimes improves things especially if there is a lot of activity happening in the default temp dir. I've see this improve performance on shared hosting but it may not make any difference in other environments. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, |
Beta Was this translation helpful? Give feedback.
-
I am referring to the asp.net temp directory not the NBSTemp directory. https://docs.microsoft.com/en-us/previous-versions/ms366723(v=vs.140)?redirectedfrom=MSDN |
Beta Was this translation helpful? Give feedback.
-
I have created a different temp folder for IIS and it has not made any difference. I am still getting the issue where the CPU spikes to 100% and stays there for several minutes before the thumbnail images load. |
Beta Was this translation helpful? Give feedback.
-
It will require someone to test and isolate the root cause then. If you're looking at it right now then it would be a great contribution! I am busy on another project but if I get a chance I will take a look, |
Beta Was this translation helpful? Give feedback.
-
I hid the SEO image, because I don't believe it helps SEO and it was creating a BIG folder of multiple copies of images. A client paid for that enhancement, but it caused more problems than it solved. I think it was removed from all new versions after that... is it still there on the latest version? As for the CPU spike... we had a problem with an upgraded site where the data was not correct. The category menu seemed to have a infinite loop. I think we found the problem in the DB and fixed it there. Try removing the category menu and see if you have the same problem. |
Beta Was this translation helpful? Give feedback.
-
Ok so the top 4 longest-running processes during the 100% cpu time were: 36s NBStore trying to read a template file So it looks like the issue is the compiling of NBstore templates using Razor engine. I will try just removing the OS_CategoryMenu from all the pages and advise once I have a result. I can also confirm on the version I used from the download link on the main site is version 4.1.11 which still has this option. |
Beta Was this translation helpful? Give feedback.
-
I have deleted all the categories using the admin option and then deleted all fields in the database with a prefix of cat* from the typecode column. Thanks |
Beta Was this translation helpful? Give feedback.
-
I am not sure reducing the db activity will matter but there is a branch here which may help us in that area: faab48a It needs to be tested by others but the idea is to eliminate the 2 queries per product which is happening presently when the list body template loads. I don't see issues in my local testing but others here may immediately see some problems that need fixing or make this approach unusable. The idea is that we get all the data we need in our original list query GetList sproc so rather than newing up our body template ProductData the standard way (which hits the db) we can introduce a new ctor so we can just pass in our NBrightInfo from collection returned by the previous query. These are all indexed queries and super fast so I'm not sure this will really matter but in general reducing db activity is a positive. |
Beta Was this translation helpful? Give feedback.
-
@Roger, If you copy the website to your local PC, doe sit still have the same problem? |
Beta Was this translation helpful? Give feedback.
-
Morning all, While testing what we found was that by removing the OS_Product View and the OS_Checkout module from all pages the issue went away. For the rebuild, we have created a new install of the latest DNN and OS modules and set up each page, product, and category from the ground up. When we did this from data exported the problem persisted on the new site. One thing which is odd and possibly worth thinking about is the localisation. On the original site and site where we imported the data, we added the UK language, set it as default, and disabled the US language. I am not sure if any of this helps but I am hoping that by the end of the week to have the new build live. I will then let you know if the issue has been resolved. Roger |
Beta Was this translation helpful? Give feedback.
-
Hi,
We have a site that is several years old and gave a facelift and update which took us from DNN 8 and openstore 4.0.1 to latest version.
Since the upgrade, we have had an issue with intermittent CPU spikes to 100% for up to 2 minutes.
On the site, we see where the products are listed the thumbnail images are not all loading during the CPU spike. Once the page finally loads the remaining thumbnails load and it all works quickly again. This typically but not always is something we see if the site has not been visited for several hours even though we have a keep-alive on the home page maintaining the app pool every 5 minutes.
I have also noticed on a fresh install of the latest openstore versus the upgraded version we are having an issue with there is a new option in the admin > settings > store config called SEO Images. This option is not showing on the upgraded version.
We have tried turning off all schedules, custom urls, and removed all modules from the site with the exception of the OS_Product View and OS_CategoryMenu and still get the issue, so believe the issue is associated with one of these.
We have
We are using DNN 9.1-.2 and openstore 4.1.11.
Please let me know how to further troubleshoot the issue?
Regards
Roger
Beta Was this translation helpful? Give feedback.
All reactions