Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Performance Tuning
»
sql server memory
12 posts, Page 1 of 2
1
2
»»
sql server memory
Rate Topic
Display Mode
Topic Options
Author
Message
Oracle_91
Oracle_91
Posted Monday, January 07, 2013 12:28 PM
Say Hey Kid
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:46 PM
Points: 675,
Visits: 1,559
Hi All,
I am not sure if this is a fair ask or no but this is something i want to learn much internals about sql server memory and how sql server responds to memory pressure and i wanted to see that practically.
Environment : windows 2003, 4 GB physical RAM, SQL server 2005 sp4.
Checking in if someone has some demo tsql scripts which can blow up memory so that i can setup the memory counters and monitor sql server memory usage.
Did anyone has done this earlier?
Thanks in advance.
Post #1403810
GSquared
GSquared
Posted Monday, January 07, 2013 1:12 PM
SSCoach
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 1:55 PM
Points: 15,442,
Visits: 9,571
I'm not entirely clear on what you're asking.
Do you need a way to monitor SQL Server memory use?
Or
Do you need a T-SQL script that will consume a huge amount of memory so you can test a monitor?
If you need a way to monitor memory use, you have a number of options. Partially, it depends on budget. RedGate (owners of this site) have a monitoring tool. So do SolarWinds, and several other companies. Search for "monitor server memory use" online and you'll find plenty of solutions for this.
If you need a script that will use a ton of memory, that's pretty easy to do. Open a connection, start a transaction, update a single row in a table, but don't commit the transaction or close the connection. Repeat this till the memory is as loaded up as you like. Make sure you aren't using SSMS on the server to do this, because you'll get SSMS eating more memory for the connections than you will get SQL Server eating memory for the transactions. Should use a ton of RAM in a sort of DDOS manner.
Alternatively, create a few varchar(max) datatype variables, and load strings into them till SQL Server dies, or you get the RAM load you're looking for.
Lots of ways to eat up a lot of RAM.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Post #1403841
Oracle_91
Oracle_91
Posted Monday, January 07, 2013 8:19 PM
Say Hey Kid
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:46 PM
Points: 675,
Visits: 1,559
Hi Thank you.
I am looking for T-sql script which will use up memory so that i can monitor which process is eating up most of memory.
Post #1403949
Oracle_91
Oracle_91
Posted Monday, January 07, 2013 11:03 PM
Say Hey Kid
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:46 PM
Points: 675,
Visits: 1,559
Hi Gus,
I wanted to reproduce the below errormsg. I was able to inflate the sql memory. But i need someother process or exe which blot the memory and results in below error message. how to do it?
“A significant part of SQL Server process memory has been paged out. This may result in performance degradation".
Post #1403975
SQLRNNR
SQLRNNR
Posted Monday, January 07, 2013 11:08 PM
SSCoach
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:07 PM
Points: 18,733,
Visits: 12,332
I have had Apache cause that several times for me. I have even had malware scanners cause it.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1403976
Bhuvnesh
Bhuvnesh
Posted Monday, January 07, 2013 11:34 PM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
Oracle_91 (1/7/2013)
“A significant part of SQL Server process memory has been paged out. This may result in performance degradation".
ANy reason why you ONLY need this particular error msg?
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1403982
Oracle_91
Oracle_91
Posted Tuesday, January 08, 2013 12:52 AM
Say Hey Kid
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:46 PM
Points: 675,
Visits: 1,559
Nothing. Just wanted to reproduce the issue and see the performance counters. Doing some reading Memory....
Do you have any steps to reproducing the error?
Post #1404008
Bhuvnesh
Bhuvnesh
Posted Tuesday, January 08, 2013 2:12 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
Oracle_91 (1/8/2013)
Do you have any steps to reproducing the error?
NO.
but see if these link can help you
http://blogs.msdn.com/b/karthick_pk/archive/2012/06/22/a-significant-part-of-sql-server-process-memory-has-been-paged-out.aspx
http://support.microsoft.com/kb/918483
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1404061
GSquared
GSquared
Posted Tuesday, January 08, 2013 6:56 AM
SSCoach
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 1:55 PM
Points: 15,442,
Visits: 9,571
Oracle_91 (1/7/2013)
Hi Thank you.
I am looking for T-sql script which will use up memory so that i can monitor which process is eating up most of memory.
Whichever part your script targets.
I guess I'm a bit lost here. If you deliberately overload memory, what you'll see eating up memory is the thing you used to overload it.
Bend your finger backwards till it hurts (a little bit). If you then look at your hand to figure out what's causing the pain, it'll be you bending your finger backwards. In other words, you already know the cause, because you deliberately picked it and implemented it.
I'm not seeing the benefit to this, unless what you're doing is testing some sort of monitoring tool to see if it correctly identifies the problem and says (metaphorically), "Hey, check it out, you're bending your finger backwards! You should stop doing that." On the other hand, if the monitoring software says, "Possible stubbed toe detected. Suggested handling: Amputate at hip", then you've found out something useful, and know that you can dispense with using that monitoring software.
But that doesn't seem to be what you're doing here.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Post #1404218
Oracle_91
Oracle_91
Posted Tuesday, January 08, 2013 9:53 AM
Say Hey Kid
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:46 PM
Points: 675,
Visits: 1,559
Hi Gus,
I am just testing/learning memory concepts over here. not to throttle any productions systems
Post #1404356
« Prev Topic
|
Next Topic »
12 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.