5
votes

I have an Orchard CMS website currently hosted on Windows Azure Websites.

Its a pretty standard blog where images are hosted via skydrive and linked, so the blog itself only serves html.

I've set it in Shared mode, running 1 instance.

But I keep getting quota reached. and it seems like my site is always maxing out the memory (max is 512mb per hour) and I can't understand why?

I've tried increasing to 3 instances, but it doesn't increase the maximum memory I can use.

Update:

The maximum usage for websites under Shared mode are:
CPU Time: 4 hours per day, 2.5minutes per 5 minute
File System: 1024mb
Memory usage: 512mb per hour
Database: 1024mb (web instance)

Update2:

I've tried re-creating my website in different zones. Currently my site is hosted in US West, which has the above limits, but other zones have slightly different limits, such as East Asia has 1024mb per hour memory usage limit! I haven't been able to dig up any documentation on this, which is puzzling.

Update3:

In Update2 I mentioned that different regions have different "memory usage per hour limit". This is actually not true. I had set up a new site under the "Free" setting with 1024mb per hour, but when I switched this to "Shared" the memory usage limit came down to 512mb per hour.


I have not been able to reproduce this issue in any of my other sites despite being the same source code, which leads me to believe its something weird with my particular azure website set up. Possibly something to do with the dashboard as mentioned by @Vinblad.

I'm planning to set up a new azure website in a different region, and while I'm at it, upgrade to Orchard 1.6

3
Can you clarify what "memory" means here? Maybe you can point us to where you found the limit. I ask because it's strange to have a limit of "memory per hour."user94559
if you look under the dashboard for Azure Websites hosted in Shared mode, you will see usage metrics and quotas, such as CPU Time, Data in, Data out, Data Storage, and "Memory"EdmundYeung99
We're Having the same problem and it seems to occur when the Admin dashboard is used. Hopefully some one can give a pointer as how to solve this!Vinblad
are you saying that looking at the dashboard is causing the memory usage to increase? sounds crazy and somewhat plausableEdmundYeung99
@Vinblad are you hosing an Orchard CMS site? or another website?EdmundYeung99

3 Answers

2
votes

Had a similar issue on Azure with Orchard. It was due to the error log files continually increasing and taking up space. Manually deleting files at the moment but have to look into a more automated solution.

1
votes

512MB / hour doesn't make any sense at all, I agree with Steve. 512MB (not per hour) is more than enough to host Orchard however. Try to measure memory on your local copy of the site. If you do get abnormal memory consumption, try to profile it and find the module that's responsible for it. If not, then contact Azure support and ask them why the same application would take more memory on Azure than on your local machine.

Another thing to investigate would be caching: do you have output caching enabled?

0
votes

I saw this post on the Azure forums where they recommend disabling the dynamic module loader. We gave this a try but this gave us problems with the images so we had to revert back.