Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does memory usage, cpu time, data out, and file system storage apply to my website?

Pardon my ignorance but I have a few questions that I can not seem to get the answers by searching here or google. These questions will seem completely dumb but I honestly need help with them.

On my Azure website portal I have a few things I am curious of.

How does CPU-Time apply to my website? I am unaware how I am using CPU unless this applies to hosting some type of application? I am using this "site" as a form to submit data to my database.

What exactly does "data out" mean? I am allowed 165mb per day.

What exactly is file system storage? Is this the actual space available on my Azure server to store my project and any other things I might directly host on it?

Last question is, how does memory usage apply in this scenario as well? I am allowed 1024mb per hour.

I know what CPU-Time is in desktop computing as well as memory usage but I am not exactly sure how this applies to my website. I do not know how I will be able to project if I will go over any of these limits so that I can upgrade my site.

like image 334
Adrian Avatar asked Apr 02 '13 06:04

Adrian


People also ask

What is CPU usage and memory usage?

CPU usage depends on how much processing or work that needs to be done by the app. RAM is how much space/memory it needs to hold the app while it's running. More RAM = you can run more apps concurrently. More CPU = you can run more complex calculations/operations.

Can low storage cause high CPU usage?

So yes, low memory can cause higher CPU usage. The problem is that very low memory can cause memory starvation to the point that the system is paging in and out so much data that disk input and output times dominate over everything else.

How do I check my CPU memory usage?

Press CTRL + Shift + Esc to open Task Manager. Click the Performance tab. This tab displays your system's RAM, CPU, GPU, and disk usage, along with network info. To view RAM usage, select the Memory box.


1 Answers

How does CPU-Time apply to my website? I am unaware how I am using CPU unless this applies to hosting some type of application? I am using this "site" as a form to submit data to my database.

This is CPU time used by your code. If you use a WebSite project (in ASP.NET) you may want to do PreCompilation for your WebSite proejct before deploying to Azure Website (read about PreCompilations here). Compiling your code is one side of the things. Rest is executing your code. Each web request that goes to a server handler/mapper/controller/aspx page/etc. uses some CPU time. Especially writing to database and so on. All these actions count toward CPU time.

But how exactly the CPU time is measured, it is not documented.

What exactly does "data out" mean? I am allowed 165mb per day.

Every single HTTP request to your site generates a response. All the data that goes out from your website is counted as "data out". Basically all and any data that goes out of the Data Center where your WebSite is located counts as data out. This also includes any outgoing HTTP/Web Request your code might be performing against remote sources. This also is the Data that goes out if you are using Azure SQL Database that is not in the same Data Center as your WebSite.

What exactly is file system storage? Is this the actual space available on my Azure server to store my project and any other things I might directly host on it?

Exactly - your project + anything you upload to it (if you allow for example file uploads) + server logs.

Last question is, how does memory usage apply in this scenario as well? I am allowed 1024mb per hour.

Memory is same as CPU cycles. However my guess is that this is much easier to gauge. Your application lives in its own .NET App Domain (check this SO question on AppDomain). It is relatively easy to measure memory usage for the App Domain.

like image 157
astaykov Avatar answered Oct 05 '22 01:10

astaykov