.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

SQL 2005 (32-bit) cluster memory usage

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :Sql Server
We recently did an in-place upgrade of our cluster from SQL 2000 Enterprise to 2005 Enterprise.  We are seeing memory utilization on the server that is not expected and wanted to get an idea from others if this is normal.  Here is our setup:

32-bit Windows Server 2003 SP1
SQL 2005 SP2, 2-node cluster
16 GB memory on each node
/3GB /PAE switches in the boot.ini file
AWE Enabled, min memory=0, max memory=14000

The strange bit is that in the Task Manager the SQL service is showing as only using 205 MB of memory and the pagefile usage is at 13 GB.  This is troublesome since it looks like SQL is using virtual memory instead of physical memory.  We recently upgraded the memory from 4 GB to 16 GB, the sql cluster service account was added to the Lock Pages in Memory policy, the boot.ini switches were set and the AWE enabled/max_server_memory script was run before upgrading to 2005.  Can anyone confirm either 1) this is normal or 2) how to correct the memory usage?

I have also questioned using the /3GB switch; would it be better to remove that and set the max memory for SQL to 12000?

Any help would be greatly appreciated.  If I left off any information that would be helpful, please let me know.


View Complete Post

More Related Resource Links

Configuring AWE and memory usage in SQL Server 2005

Dear Sirs,
I installed SQL Server 2005 Enterprise Edition (with SP3) on a server running Windows Server 2003 Enterprise Editon SP2 with 8GB RAM and with "Physical Address Extension".
I want the SQL Server 2005 makes use of memory that is in excess of 4 GB and will perform the following steps to accomplish this:

1) I'll add the SQL service account to the
policy "lock his pages in memory"

2) I'll include the /PAE switch in Boot.ini

3) I'll change the "awe enabled" with the following commands:

sp_configure 'show advanced options', 1
sp_configure 'awe enabled', 1

4) I'll change "min server memory" and "max server memory" with the following commands:

sp_configure 'min server memory', 1024
sp_configure 'max server memory', 8192

CLR Inside Out: Memory Usage Auditing For .NET Applications


Memory usage can have a direct impact on how fast an application executes and thus is important to optimize. In this article we discuss the basics of memory optimization for .NET programs.

Subramanian Ramaswamy and Vance Morrison

MSDN Magazine June 2009

Design: Inspect and Optimize Your Program's Memory Usage with the .NET Profiler API


Developers using .NET often make memory leak tracking a low priority because the common language runtime takes care of garbage collection. What few developers realize, however, is that their objects' lifespans, along with their size and what other objects have been instantiated, all affect how they are cleaned up. Depending on the particular circumstances, these combinations can negatively affect performance, especially over the lifetime of an application. This article presents a way for developers to see memory usage and understand garbage collection using the .NET Profiler API. Along the way, a sample application to demonstrate these principles is built.

Jay Hilyard

MSDN Magazine January 2003

SQLServer 2008 Tools and SQL 2005 Cluster

I recently built a SQL Server 2005 cluster on the o/s Windows Server 2008 R2.  I have been attempting to connect to the cluster from my Windows 7 dekstop with my SQL Server 2008 Tool set.  I have been unable to attach to this cluster since its creation. The firewall is temp off, remote connections in the surface area configuration is set to pipes and tcp/ip and the Browser surface is up and running. I ran Wireshark against the cluster and I could see that there was UDP conversations for ms-sql-m (SQL Port) but that was as far as it would get.  I am using a named instance so not using 1433, but I do see the cluster offering up high RPC ports but the client never responds after the initial UDP response. When I noticed that there was a two way conversation taking place, I went to a seperate machine and fired up SQL Server 2005 Tools and I was easily able to attach to the cluster.  So my question is - Are there any known incompatibilities between SQL Server 2005 cluster services and SQL Server 2008 Tool set?  I can use my 2008 tools to attach to a non-clustered SQL Server 2005 w/o issue.   Error when attempting to connect: A network-related or instance-specific error occured while establishing a connection to sql server.  The server was not found or was not accessible.  Verify that the instance name is correct and the SQL Server is con

sql 2005 sp2 memory error FAIL_VIRTUAL_RESERVE

We're running SQL Server 2005 SP (9.00.4035.00) 32 bit on Windows Server 2008 SP2 Enterprise.   The server has 8gb of RAM and is only used for SQL Server.  Since Windows 2008 SP2 was installed on 8/23/2009, once every week or so the server has become unresponsive.  Early in in the course of the problem I notice the following error in the SQL Server error log:  Failed Virtual Allocate Bytes: FAIL_VIRTUAL_RESERVE 1048576 That's followed by the output of DBCC MEMORYSTATUS, which I'll include at the end of this post. After that, things work normally for several hours, except for some occurences of Downgrading backup log buffers from 1024K to 64K That appear in the SQL Server error log when our transaction log backups occur.  Some time after that, we begin to receive Event ID: 701 There is insufficient system memory to run this query. In the event logs of our server. At that point, the server becomes unresponsive.  Restarting the SQL Server Service resolves the issue. Is anyone else experiencing this? It's only been happening 1 time per week (not consistently the same time) and has only occurred since Windows Server 2008 SP2 was installed.  I don't know if that's related, but it's the only real change to that server.  Workload has been consistent on that server for months. Can someone please help? Thanks. Here's the DBCC output. Memory Manager     VM Reserved =

SQL Server 2005 - Installation in Cluster Environment - "Service SQL Server Browser (SQLBrowser) fai

Windows Server 2003 R2 Enterprise Edition SP2 32-bit All updates and patches installed Two-node cluster environment configured. Cluster functions perfectly. Trying to install SQL Server 2005 Enterprise Edition (32-bit) as a clustered application. Installation proceeds fine until it begins to install the SQL Server Database Services product. Status window says "Starting Services. Service: SQL Server Browser". Error message is presented: "Service 'SQL Server Browser' (SQLBrowser) failed to start. Verify that you have sufficient privileges to start system services". SQL Server Service Account is in the Administrators group on both local systems, and is a domain account. Account used for the installation is in the Administrators group on both local systems, and is a domain account. Have cancelled out of the install and rebooted both servers numerous times. Exact same error continues to occur. Cluster is active and all resources are owned by node #1 - the node where SQL Server Installation is being run. In the event viewer, I see: Event ID: 10 Description: The SQLBrowser service was unable to establish SQL instance and connectivity discovery". I am also seeing errors like: Source: SQLBrowser. The SQL configuration for SQL is inaccessible or invalid. Source: SQLBrowser. The Configuration of the AdminConnection\TCP protocol in the SQL instance xxxxxx i

Reinstalled SQL 2005 on cluster won't start.

OS: Windows Server 2003 32-bit. Cluster: 2-node Active/Passive We're working on upgrading from SQL 2005 to SQL 2008, and we're using this cluster to test the cluster upgrade/install procedures. So, updated the existing SQL 2005 instance to SQL 2008. This went fine. Added an additional SQL 2008 instance. This went fine. Uninstalled SQL 2008 (both instances) from both nodes. This went fine. Installed SQL 2005 (clustered setup). At the end of the install process, received a message about unable to do (something). However, the install reported successful. In the SQL0001_<computername>_Core(local) are these messages: Running: OpenPipeAction at: 2010/7/24 10:20:31 Complete: OpenPipeAction at: 2010/7/24 10:20:31, returned false Error: Action "OpenPipeAction" failed during execution. and much later: Error: Action "UninstallForRS2000Action" failed during execution.  Error information reported during run: Action: "UninstallForRS2000Action" will be marked as failed due to the following condition: In the SQL0001_<computername>_Core.log: Running: LaunchLocalBootstrapAction at: 2010/7/24 10:11:30 Error: Action "LaunchLocalBootstrapAction" threw an exception during execution.  Error information reported during run: "C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe" finished and returned: 0 Aborting que

Sql Server 2005 Cluster on EXS 4.0 VMWARE

Hi, I have this problem, i have sql server on Cluster with two nodes, the nodes are machine vmware, i was exs 3.5 and in december the esx was upgrade to version 4.  Of January the nodes present this problem:The node lost communication with cluster node 'SVRSQLN02' on network 'Servidores'.The node lost communication with cluster node 'SVRSQLN02' on network 'HeartBeat'.What can i do?

Configuring AWE and SQL 2005 Memory ! Is this right ??

Hi All     I would appreciate any help from you all with regards to this:   I have a SQL 2005 standard installation with windows server 2003 enterprise Operating system The server has 7GB of memory available to it, but as I know SQL 2003 standard edition would make use of the total server memory available to it.   Here are the changes that I have made. (I have converted it all to GB for easy reading)   I added the 3GB switch to the boot.ini file I enabled AWE I set mini server memory to 5GB I set max server memory to 6GB I turned on Performance monitor and the Target server memory counter  = 6GB, the total server memory is also set to 6GB.   Now after all the changes above, the server seems to run slower and looking at task manager, the PF usage is around 6GB. If I change the max server memory, the PF usage shoots up again, it MAX server memory is set to 5GB, PF usage jumps to 5GB as well..   Can anyone please confirm that the changes I made were indeed correct and possibly educate me on the configuration and how to make the best use of server memory etc.   I look forward to hearing from you all.   Thanks

"None of the selected features can be installed" error on SQL 2005 Cluster

Hey All, I installed SQL 2005 on a cluster.  Everything on the primary node works fine.  However, as the documentation suggests, the SQL Management Studio (and other tools) are not installed on the standby node by default.  However, when I go to try and install on the 2nd node I get the following error: TITLE: Microsoft SQL Server Setup------------------------------ None of the selected features can be installed or upgraded. Setup cannot proceed since no effective change is being made to the machine. To continue, click Back and then select features to install. To exit SQL Server Setup, click Cancel. For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=SQLSetup90&EvtType=28108 ------------------------------The link is referencing something about requiring a complex SA password.   I can verify that the directory structure on node 1 where the management studio and client tools exist does not exist on node 2.   I'm at wits end here, I've tried uninstalling/reinstalling/everything. Anyone have any ideas? thanks!

Applying windows patches to a SQL 2005 2Node Cluster

Can anyone advise the correct procedure for applying windows patches on a two node active / passive SQL 2005 cluster We have disagreements whether the node being patched is active or it should be passive, would appreciate any comments   Thanks

Form background images and memory usage

Hello everyone, please forgive me if this is the wrong forum for this post. I have written a Windows App in C#. It's a real small application (something like a widget) that stays on your desktop and shows pictures of a folder in a random sequence. Before showing another picture i use : this.BackgroundImage.Dispose(); so that i keep memory usage low. If i won't do that i can see memory rising (depends on the image size). Now the code i use to change the picture is : this.BackgroundImage = Image.FromFile(path, true); So my question is about this last line of code. Is this a good approach of changing the picture after a while? (this code runs in a loop) Should i care about memory usage? The form is a small one for this kind of app, so loading big and large pictures can have some issues i guess. I have been monitoring my app for some time , memory and cpu usage were really low but i would like to know another and better approach on this one if somoeone knows.  de_Stan

SQL 2005 Cluster SP3 installation

I have been reading up on installing sp3 on a 2005 cluster and I keep seeing • Run the SP3 Setup program on the primary node of the failover cluster instance. Does this mean log into the Virtual machine name which of course is attached to the active node and then run the setup. Or do I log directly into the primary node (NODE A) and execute Setup?Question 2.  after setup is completed and ther server is required to restart.  Do I need to run the same setup on (NODE B) which is now the primary node?

Max Memory w/ SQL 2005 and SQL 2008 on same box

We found we have a small need for a SQL 2005 instance and so it was placed on the same server as SQL 2008.  Any suggestions on how max memory settings should be configured with both versions on the same server?Lossless Audio Addict

Sql server 2005 - rename cluster to an old cluster name

We have a sql 2005 cluster on W2K8 cluster. It is a named instance say SRV1\A. Then I built a new W2K8 (with a diff cluster service name) but the same service account. Then I installed a new sql 2005 cluster say SRV2\A. Now when I bring down the sql server resources on SRV1 and try to rename SRV2\A to SRV1\A through the cluster admin, I get the error the network name already exists. I have tried bringing an old cluster and installing a new cluster with the same name and it works. Why am I not able to rename the name? Any advice would very helpful.Paul - SQL DBA

Considerations with 2005 Cluster when removing 'BUILTIN\Administrators'

I have taken the descision to remove 'BUILTIN\Administrators' group from my clustered instances. This is not done before I inherited this environment and some violation in my oppinion is happening on the SQL Servers. To do this Im asked to generate a risk assesment report. I have a couple of questions, but first my intended aproach. Today SA pwd is unknown to everyone, even me. If it's needed pwd is reset to something temporary, and a job resetting the pwd is created. To secure access I will create a AD group, add this group to the sql server and grant this domain group the sysadmin server role. I will also generate a new SA pwd and redesign the temporary SA pwd solution to reset the pwd back to whatever I generate. This pwd will go into a safe. I know how to fix it if I loose all access to SQL Server, by using a startup flag and then adding another domain group, should some clumsy admin drop the one I created. To my question, does the cluster service account need to be a member in this SQL access account? The SQL Service account, and SQL Agent is to be incorporated into this new domain group. My account and some other DBA will have their accounts added. No accidental DBA's will then have access from this point forward. What kind of application errors can I expect? The cluster hosts the databases for about 60 different applications. Can I Trace who logs on with the '
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend