UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  eUKhost's Official Web Hosting Forum > Technical Support > Windows Dedicated Server

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 28-10-2008, 08:44
new member
 
Join Date: Oct 2008
Posts: 2
Default Memory usage

I am currently have a windows dedicated server with 1GB of memory.

I have one website running on this server which received around 1,500 visitors per day (7500 page views per day).

This website is a asp.NET website with a MS SQL database.

I have notices that the memory usage displayed on the dashboard, keeps increasing until it reaches around 98%, which in turn slows the website right down.

When the momery usage gets this high, if I restart IIS, the memory usage will drop down to around 40-50%.

What is the best way to actually determine what is actually using this memory?

Any help would be much appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 28-10-2008, 17:16
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 628
Default

Hello,

The Application Pool of the website must be adding memory with the increasing number of hits. You can limit the memory of a pool from its properties in IIS. However if the limit is not set correctly it will cause the Pool to get crashed.

This normally happens if you have long ASP .NET or SQL queries running on your site.
__________________
Martin
Chief R & D Officer.

Windows 100% Uptime Hosting - Windows Dedicated Server - Web Hosting Tutorials
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 28-10-2008, 19:08
new member
 
Join Date: Oct 2008
Posts: 2
Default

I have have a long SQL query being executed.

I can see in the task manager, its the following two processes that is taking up the majority of the memoery (1GB):

sqlservr.exe - 280KB (MS SQL Server)
w3wp.exe - 182KB (Application Pool)

If I create a seperate Application Pool for this website, the task manager will create seperate rows of sqlservr.exe and w3wp.exe just for this website. Would you recommend doing this? if so what would you recommend setting the memory usage of the application pool to be?

I read this post today, that explains why exactly the MS Sql server is using up so much memory:

"So what is the average row size of this table? Say that is 300 bytes,
then that is 300 MB of data to read. That is not very likely to be done
instantly.

SQL Server's memory consumption will increase, as it will read the entire
table into cache, and the table will stay in the cache as long as no
other data competes about the space. This means that if you resubmit the
query, the response time will be significantly shorter.

SQL Server is designed to grab as much memory it can, as the more data
in can have in cache, the better the response times. If there are other
applications competing for memory on the machine, SQL Server will yield,
but in this case it may be better to configure how much memory you want
SQL Server to use."

Would it be best to set the application pool to be a large percentage of the memory so that it can cache a large percentage of the datbase and therefore speed up the website significantly.

Please let me know if I have the wrong end of the stick here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 14-10-2009, 20:35
new member
 
Join Date: Oct 2009
Posts: 9
Default

Hi !

The problem you are facing can really give one a headache.
It is obvious if you reset the IIS.
You can set the flags by using Adsutil.vbs.
To set the AppPoolRecycleMemory flag to false for the default Application Pool.

Try if it helps and keep sharing here.

Regards
Walter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 16-10-2009, 06:14
System Administrator (eUKhost.com)
 
Join Date: Nov 2007
Posts: 308
Default

Hello,

memory/cpu usage depends on the need of your application, which includes background processes executed by your application, database used and queries it execute, number of hits to web site etc.
Increase in memory/cpu with application access shows that application is resource hungry
There are several factors responsible for this like -
code/script of web site may have many loops that may result into long execution time and in turn session time.
Loops are nothing but the condition checks depending on which it perform a specific action. For. e.g.-
1]
For i = 1 to 100
{
do this code
}
this loop will execute the mentioned code for 100 times.

2]
if (condition)
{
code to be executed if condition is true
}
else
{
code to be executed if condition is not true
}
etc.

The database may be very large in size hence it may take long time to search the records from database, process them, show it on your web page etc.
In case of database driven web sites, whenever a user browse it/give a hit to it, first the request would be sent to server, server will locate the web site with the help of host header, once the site is located it will start processing its code which may contain a database connection string, on establishing a successful connection with the help of DB details mentioned in connection string, it will fetch the records in memory(called as Record Sets) depending on SQL queries it process/sort them and then displays on the web site. Obviously if the database contain several tables and thousands of records in each table then it will take longer time to process them. This overall process involves memory and cpu as Record Sets are virtually created in memory itself.
Database and code optimization is the technique widely used by web developers for performance tuning for such heavy sites.
Indexing and Normalization are some other techniques used by Database Administrators to improve performance of a large database.
__________________

Gabriel S
Windows Hosting || Windows Reseller Hosting
Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
MSN: gabriel @ eukhost.com || SKYPE: Gabriel.Sandler
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 21:08.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
UK Web Hosting by eUKHosting 3.1.0
UK Web Hosting by eUKHosting 3.1.0
Copyright © 2001-2012, eUKhost LTD. All rights reserved.

 


UK VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

VoIP Dedicated Servers
Asterisk, Trixbox Dedicated Servers

Business Web Hosting
100% uptime Hosting

UK Cpanel Hosting
cPanel Shared Hosting

Domain Hosting
Cheap Domains & Hosting Plans

UK Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting
 
 

Android and Apple App


knowledgebase articles
eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting

 

Web Hosting Affiliate Program
 

popular blog categories

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles