Re: Killer scripts

From: JohnnyAppleseed (someone_at_microsoft.com)
Date: 02/09/05


Date: Wed, 9 Feb 2005 13:35:18 -0500

The 'min server memory' and 'max server memory' configuration settings can
be used to restrict the amount of RAM available to SQL Server. Bumping this
down to 50 - 100mb or so would not only impact memory, but could affect disk
I/O and CPU due to disk swapping.

set transaction isolation level SERIALIZABLE or specifying the HOLDLOCK
option on a query will cuase a dataset to be exclusively locked.

The WAITFOR DELAY 'hh:mm:ss' statement can be used to pause processing in
the middle of a transaction, thus holding a lock on resources.

"DBA72" <DBA72@discussions.microsoft.com> wrote in message
news:35D5D71C-688D-4EBA-A3B5-0C9B8117F01C@microsoft.com...
> I am trying to understand how to monitor SQL Server for various
performance
> problems and would like to find some scripts to cause performance
problems.
> For example:
>
> A script causing high CPU usage
> A script causing high memory usage
> A script causing intensive IO
>
> Can anyone point me in the right direction or give me an idea of what kind
> of sql I could write to produce the above effects.



Relevant Pages

  • Re: A significant part of sql server process memory has been paged ou
    ... I spoke with the correct people at Microsoft about this at the PASS Summit a few weeks ago. ... No guarantees they will move the feature to Standard Edition, but they are now treating it as a stability issue rather than an scalability issue. ... We have just configured SQL Server 2005 64-bit two node active/passive ... Total Server Memory shows value 16MB at the moment. ...
    (microsoft.public.sqlserver.setup)
  • Re: Increasing Max Memory on second node of failover clusterring
    ... SQL Server Buffer Manager:Target Pages ... SQL Server Memory Manager:Target Server Memory ... On Windows Server 2003, this happens automatically whenever more than 4 ...
    (microsoft.public.sqlserver.clustering)
  • Re: (Target Server Memory)Perf. Monitor Counters
    ... What is the Total Server Memory counter value? ... I support the Professional Association for SQL Server ... > the SQL Server Memory Manager (Target Server Memory) value. ... > RECONFIGURE ...
    (microsoft.public.sqlserver.server)
  • RE: Memory problem
    ... I guess that the SQL Server is configured to use Dynamic Memory ... SQL Server memory will continue to grow as long as there is no RAM pressure ... start to release memory for other applications use or to avoid swapping. ...
    (microsoft.public.sqlserver.msde)

Loading