Monday, March 19, 2012
Memory Usage from sql server.
On this server every day runs a process that take about 3 minutes to
finish. But once a month it takes about 30 min. or one hour to finish.
At this moment the only thing that help us to fix the problem is to
restart the server, so we have to restart the server almost once a
month.
Today, we were thinking if maybe the memory of the server is not been
freeing so, it is not enought and it has being free when the server is
restarted.
Do somebody know if sql server has some command that can help us to free
the memory or to check if this is busy and avoid to restart the server.
I'll apreciate a lot your help.
Regards,
*** Sent via Developersdex http://www.codecomments.com ***
My guess would be that you have other apps running onthe server and don't
leave enough for them to operate properly. If so try setting your max
memory setting to a few hundred MB less than the max and see if that helps.
YOU should also check for blocking during that time.
Andrew J. Kelly SQL MVP
"MariaGuzman" <marisa@.devdex.com> wrote in message
news:uJ$rY9MMGHA.2916@.tk2msftngp13.phx.gbl...
> Hi, I have a server that has sql server2000 sp3 on win2000 server sp4.
> On this server every day runs a process that take about 3 minutes to
> finish. But once a month it takes about 30 min. or one hour to finish.
> At this moment the only thing that help us to fix the problem is to
> restart the server, so we have to restart the server almost once a
> month.
> Today, we were thinking if maybe the memory of the server is not been
> freeing so, it is not enought and it has being free when the server is
> restarted.
> Do somebody know if sql server has some command that can help us to free
> the memory or to check if this is busy and avoid to restart the server.
> I'll apreciate a lot your help.
> Regards,
>
> *** Sent via Developersdex http://www.codecomments.com ***
Memory Usage from sql server.
On this server every day runs a process that take about 3 minutes to
finish. But once a month it takes about 30 min. or one hour to finish.
At this moment the only thing that help us to fix the problem is to
restart the server, so we have to restart the server almost once a
month.
Today, we were thinking if maybe the memory of the server is not been
freeing so, it is not enought and it has being free when the server is
restarted.
Do somebody know if sql server has some command that can help us to free
the memory or to check if this is busy and avoid to restart the server.
I'll apreciate a lot your help.
Regards,
*** Sent via Developersdex http://www.codecomments.com ***My guess would be that you have other apps running onthe server and don't
leave enough for them to operate properly. If so try setting your max
memory setting to a few hundred MB less than the max and see if that helps.
YOU should also check for blocking during that time.
Andrew J. Kelly SQL MVP
"MariaGuzman" <marisa@.devdex.com> wrote in message
news:uJ$rY9MMGHA.2916@.tk2msftngp13.phx.gbl...
> Hi, I have a server that has sql server2000 sp3 on win2000 server sp4.
> On this server every day runs a process that take about 3 minutes to
> finish. But once a month it takes about 30 min. or one hour to finish.
> At this moment the only thing that help us to fix the problem is to
> restart the server, so we have to restart the server almost once a
> month.
> Today, we were thinking if maybe the memory of the server is not been
> freeing so, it is not enought and it has being free when the server is
> restarted.
> Do somebody know if sql server has some command that can help us to free
> the memory or to check if this is busy and avoid to restart the server.
> I'll apreciate a lot your help.
> Regards,
>
> *** Sent via Developersdex http://www.codecomments.com ***
Memory Usage from sql server.
On this server every day runs a process that take about 3 minutes to
finish. But once a month it takes about 30 min. or one hour to finish.
At this moment the only thing that help us to fix the problem is to
restart the server, so we have to restart the server almost once a
month.
Today, we were thinking if maybe the memory of the server is not been
freeing so, it is not enought and it has being free when the server is
restarted.
Do somebody know if sql server has some command that can help us to free
the memory or to check if this is busy and avoid to restart the server.
I'll apreciate a lot your help.
Regards,
*** Sent via Developersdex http://www.developersdex.com ***My guess would be that you have other apps running onthe server and don't
leave enough for them to operate properly. If so try setting your max
memory setting to a few hundred MB less than the max and see if that helps.
YOU should also check for blocking during that time.
--
Andrew J. Kelly SQL MVP
"MariaGuzman" <marisa@.devdex.com> wrote in message
news:uJ$rY9MMGHA.2916@.tk2msftngp13.phx.gbl...
> Hi, I have a server that has sql server2000 sp3 on win2000 server sp4.
> On this server every day runs a process that take about 3 minutes to
> finish. But once a month it takes about 30 min. or one hour to finish.
> At this moment the only thing that help us to fix the problem is to
> restart the server, so we have to restart the server almost once a
> month.
> Today, we were thinking if maybe the memory of the server is not been
> freeing so, it is not enought and it has being free when the server is
> restarted.
> Do somebody know if sql server has some command that can help us to free
> the memory or to check if this is busy and avoid to restart the server.
> I'll apreciate a lot your help.
> Regards,
>
> *** Sent via Developersdex http://www.developersdex.com ***
Friday, March 9, 2012
Memory Running Out
We've got an ASP.Net web app that runs off a Microsoft SQL Server
2000 backend. After a few days the SQL server is completely out of
memory and crawls. It looks like there could be some connections that
aren't being closed or something. Is there a good way to figure out
where the problem is. Looking at the current activity in Enterprise
Manager there are a lot of threads sleeping and a few that are
runnable. Any ideas?
Thanksbig DWK (daveGoogle@.davewking.com) writes:
> We've got an ASP.Net web app that runs off a Microsoft SQL Server
> 2000 backend. After a few days the SQL server is completely out of
> memory and crawls. It looks like there could be some connections that
> aren't being closed or something. Is there a good way to figure out
> where the problem is. Looking at the current activity in Enterprise
> Manager there are a lot of threads sleeping and a few that are
> runnable. Any ideas?
Note that it's perfectly normal for SQL Server to grab as much memory
as possible, since it uses it for cache. So high memory consumption is
not a sympton of a problem in itself. But if you feel that you have
poor performance, then obviously you have something that needs fixing.
As for connections not being closed, again, this may be a non-issue.
Recall that ADO .Net uses connection pooling, and when the application
closes the connection, the connection hangs around for some 60 seconds.
If you use sp_who2, there is a LastBatch column, if there are idle
processes whose LastBatch is hours or even days ago, then there is
something that should be addressed. This could indeeed be due to failing
to close the connection in the ASP .Net code. You should always close
your commands and connections explicitly, and not rely on garbage
collection.
However, is SQL Server is "crawling" this may be due to problems with
poorly written queries and that sort of thing. Running the SQL Profiler
is a way to track down long-running queries. I often look at these sort
of problems with my own procedure aba_lockinfo, which gathers both lock
information and current statement in a snapshot. Look at
http://www.sommarskog.se/sqlutil/aba_lockinfo.html.
--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp
Wednesday, March 7, 2012
Memory Problem
Yesterday I went to company of a friend to troubleshoot their SQL Server
2000.
The server has 2GB memory and no other app is using that (dedicated to SQL
Server). The problem is that after restarting the service, it takes about 4
days that users fill the memory by their queries and when 2GB runs out, the
server becomes so slow and even it takes long time to open the task manager.
If you change the maximum memory to 1.8GB, the OS itself will not be slow
when memory runs out, but the users experience serious problems in
performance as before. The database is not too big, only 700MB(data only)
but there are about 40 concurrent users.
I thought it is good to install more memory but what if this job only
increases the life of memory (e.g 8 days to run out!) instead of eliminating
the problem?!
Any help would be greatly appreciated.
LeilaI'd strat tuning queries first , I don;t think that OS or hardware are a
problem.
Run SQL Server Profiler to identify a long running queries and then try to
optimize them.
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>|||Sounds like you have a memory leak somewhere.
Some ideas:
1) Do they have the latest Service Pack installed (SP4)?
2) Are there any third party extended procedures on the machine that might
cause trouble?
3) Are there any connections that are open for a long time with long term
locks?
Jacco Schalkwijk
SQL Server MVP
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>|||If its SQL Standard, more memory will not help the SQL Server.
I find it odd that a 700MB database can take up 1.8 gb memory...
looking forward to input form others.
What version (service pack) of SQL?
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>|||Leila,
1. Ensure the appropriate indexes exist to help minimize physcial I/O
2. Ensure the end-user ad-hoc queries (not really recommended) include
WHERE clauses (that match the indexes)
3. Check for table/clustered index scans for queries
4. Ensure that no CROSS JOINs (or multiple tables withouth WHERE clause -
old syntax) are not occuring
5. Perhaps think about using the Query Governor Cost Limit
HTH
Jerry
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>|||Thanks Uri,
There's no problem with queries. I read the result of profiler and sorted by
duration. There's no bottleneck with queries. Everything is ok when memory
is available. As soon as memory becomes full, the page/sec in performance
monitor goes high!
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:#sYDnSbzFHA.2064@.TK2MSFTNGP09.phx.gbl...
> I'd strat tuning queries first , I don;t think that OS or hardware are a
> problem.
> Run SQL Server Profiler to identify a long running queries and then try to
> optimize them.
>
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL
about
slow
only)
>|||Thanks Jacco,
1) SP3
2) No
3) There is no problem with locks and blocking ( I used performance
monitor). The client app opens about 3 or 4 connections (maybe more!) but
there's another question for me: Can an inactive connection consume a lot of
memory? I mean can it be a serious problem for memory?
"Jacco Schalkwijk" <jacco.please.reply@.to.newsgroups.mvps.org.invalid> wrote
in message news:#RlKqTbzFHA.1168@.TK2MSFTNGP15.phx.gbl...
> Sounds like you have a memory leak somewhere.
> Some ideas:
> 1) Do they have the latest Service Pack installed (SP4)?
> 2) Are there any third party extended procedures on the machine that might
> cause trouble?
> 3) Are there any connections that are open for a long time with long term
> locks?
> --
> Jacco Schalkwijk
> SQL Server MVP
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL
about
slow
only)
>|||Thanks Kevin,
It's Enterprise Edition + SP3
"Kevin3NF" <KHill@.NopeIDontNeedNoSPAM3NF-inc.com> wrote in message
news:e2u$MVbzFHA.1040@.TK2MSFTNGP14.phx.gbl...
> If its SQL Standard, more memory will not help the SQL Server.
> I find it odd that a 700MB database can take up 1.8 gb memory...
> looking forward to input form others.
> What version (service pack) of SQL?
> --
> Kevin Hill
> President
> 3NF Consulting
> www.3nf-inc.com/NewsGroups.htm
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL
about
slow
only)
>|||Leila wrote:
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL
> Server 2000.
> The server has 2GB memory and no other app is using that (dedicated
> to SQL Server). The problem is that after restarting the service, it
> takes about 4 days that users fill the memory by their queries and
> when 2GB runs out, the server becomes so slow and even it takes long
> time to open the task manager. If you change the maximum memory to
> 1.8GB, the OS itself will not be slow when memory runs out, but the
> users experience serious problems in performance as before. The
> database is not too big, only 700MB(data only) but there are about 40
> concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating the problem?!
> Any help would be greatly appreciated.
> Leila
I agree with Uri. Tuning queries is the place to start. Your data is
700MB, but you didn't mention the size of your indexes, the number of
query plans in cache, the type of execution model (stored procedures,
dynamic sql, etc.), or the design of the disk subsystem. See BOL "SQL
Server Memory Pool" for a description of memory use.
Keeping table / index / clustered index scans to a minimum can help
performance a great deal.
I would encourage you to also use Profiler before and after the memory
problem to better compare performance of your queries and see where the
differences are. Are you seeing a difference in duration only? If so, it
could be a overutilized disk subsystem.
David Gugick
Quest Software
www.imceda.com
www.quest.com|||Thanks Jerry,
It doesn't seem to be I/O optimization problem. Whether the query is
optimized by indexes or not, at the end it will consume a particular amount
of memory to stay there.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:e2l$EdbzFHA.3924@.TK2MSFTNGP14.phx.gbl...
> Leila,
> 1. Ensure the appropriate indexes exist to help minimize physcial I/O
> 2. Ensure the end-user ad-hoc queries (not really recommended) include
> WHERE clauses (that match the indexes)
> 3. Check for table/clustered index scans for queries
> 4. Ensure that no CROSS JOINs (or multiple tables withouth WHERE clause -
> old syntax) are not occuring
> 5. Perhaps think about using the Query Governor Cost Limit
> HTH
> Jerry
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL
about
slow
only)
>
Memory Problem
Yesterday I went to company of a friend to troubleshoot their SQL Server
2000.
The server has 2GB memory and no other app is using that (dedicated to SQL
Server). The problem is that after restarting the service, it takes about 4
days that users fill the memory by their queries and when 2GB runs out, the
server becomes so slow and even it takes long time to open the task manager.
If you change the maximum memory to 1.8GB, the OS itself will not be slow
when memory runs out, but the users experience serious problems in
performance as before. The database is not too big, only 700MB(data only)
but there are about 40 concurrent users.
I thought it is good to install more memory but what if this job only
increases the life of memory (e.g 8 days to run out!) instead of eliminating
the problem?!
Any help would be greatly appreciated.
Leila
I'd strat tuning queries first , I don;t think that OS or Hardware are a
problem.
Run SQL Server Profiler to identify a long running queries and then try to
optimize them.
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>
|||Sounds like you have a memory leak somewhere.
Some ideas:
1) Do they have the latest Service Pack installed (SP4)?
2) Are there any third party extended procedures on the machine that might
cause trouble?
3) Are there any connections that are open for a long time with long term
locks?
Jacco Schalkwijk
SQL Server MVP
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>
|||If its SQL Standard, more memory will not help the SQL Server.
I find it odd that a 700MB database can take up 1.8 gb memory...
looking forward to input form others.
What version (service pack) of SQL?
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>
|||Thanks Uri,
There's no problem with queries. I read the result of profiler and sorted by
duration. There's no bottleneck with queries. Everything is ok when memory
is available. As soon as memory becomes full, the page/sec in performance
monitor goes high!
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:#sYDnSbzFHA.2064@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> I'd strat tuning queries first , I don;t think that OS or Hardware are a
> problem.
> Run SQL Server Profiler to identify a long running queries and then try to
> optimize them.
>
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL[vbcol=seagreen]
about[vbcol=seagreen]
slow[vbcol=seagreen]
only)
>
|||Thanks Jacco,
1) SP3
2) No
3) There is no problem with locks and blocking ( I used performance
monitor). The client app opens about 3 or 4 connections (maybe more!) but
there's another question for me: Can an inactive connection consume a lot of
memory? I mean can it be a serious problem for memory?
"Jacco Schalkwijk" <jacco.please.reply@.to.newsgroups.mvps.org.invalid > wrote
in message news:#RlKqTbzFHA.1168@.TK2MSFTNGP15.phx.gbl...[vbcol=seagreen]
> Sounds like you have a memory leak somewhere.
> Some ideas:
> 1) Do they have the latest Service Pack installed (SP4)?
> 2) Are there any third party extended procedures on the machine that might
> cause trouble?
> 3) Are there any connections that are open for a long time with long term
> locks?
> --
> Jacco Schalkwijk
> SQL Server MVP
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL[vbcol=seagreen]
about[vbcol=seagreen]
slow[vbcol=seagreen]
only)
>
|||Thanks Kevin,
It's Enterprise Edition + SP3
"Kevin3NF" <KHill@.NopeIDontNeedNoSPAM3NF-inc.com> wrote in message
news:e2u$MVbzFHA.1040@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> If its SQL Standard, more memory will not help the SQL Server.
> I find it odd that a 700MB database can take up 1.8 gb memory...
> looking forward to input form others.
> What version (service pack) of SQL?
> --
> Kevin Hill
> President
> 3NF Consulting
> www.3nf-inc.com/NewsGroups.htm
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL[vbcol=seagreen]
about[vbcol=seagreen]
slow[vbcol=seagreen]
only)
>
|||Leila wrote:
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL
> Server 2000.
> The server has 2GB memory and no other app is using that (dedicated
> to SQL Server). The problem is that after restarting the service, it
> takes about 4 days that users fill the memory by their queries and
> when 2GB runs out, the server becomes so slow and even it takes long
> time to open the task manager. If you change the maximum memory to
> 1.8GB, the OS itself will not be slow when memory runs out, but the
> users experience serious problems in performance as before. The
> database is not too big, only 700MB(data only) but there are about 40
> concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating the problem?!
> Any help would be greatly appreciated.
> Leila
I agree with Uri. Tuning queries is the place to start. Your data is
700MB, but you didn't mention the size of your indexes, the number of
query plans in cache, the type of execution model (stored procedures,
dynamic sql, etc.), or the design of the disk subsystem. See BOL "SQL
Server Memory Pool" for a description of memory use.
Keeping table / index / clustered index scans to a minimum can help
performance a great deal.
I would encourage you to also use Profiler before and after the memory
problem to better compare performance of your queries and see where the
differences are. Are you seeing a difference in duration only? If so, it
could be a overutilized disk subsystem.
David Gugick
Quest Software
www.imceda.com
www.quest.com
|||Thanks Jerry,
It doesn't seem to be I/O optimization problem. Whether the query is
optimized by indexes or not, at the end it will consume a particular amount
of memory to stay there.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:e2l$EdbzFHA.3924@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> Leila,
> 1. Ensure the appropriate indexes exist to help minimize physcial I/O
> 2. Ensure the end-user ad-hoc queries (not really recommended) include
> WHERE clauses (that match the indexes)
> 3. Check for table/clustered index scans for queries
> 4. Ensure that no CROSS JOINs (or multiple tables withouth WHERE clause -
> old syntax) are not occuring
> 5. Perhaps think about using the Query Governor Cost Limit
> HTH
> Jerry
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL[vbcol=seagreen]
about[vbcol=seagreen]
slow[vbcol=seagreen]
only)
>
|||Leila,
Is the memory configuration for SQL Server set to be dynamic or static?
Have you played around with any advanced memory settings AWE etc...?
Any SQL Server third-party tools/utilities installed?
HTH
Jerry
"Leila" <Leilas@.hotpop.com> wrote in message
news:%2372Q3kbzFHA.3720@.TK2MSFTNGP14.phx.gbl...
> Thanks Jerry,
> It doesn't seem to be I/O optimization problem. Whether the query is
> optimized by indexes or not, at the end it will consume a particular
> amount
> of memory to stay there.
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:e2l$EdbzFHA.3924@.TK2MSFTNGP14.phx.gbl...
> SQL
> about
> slow
> only)
>
Memory Problem
Yesterday I went to company of a friend to troubleshoot their SQL Server
2000.
The server has 2GB memory and no other app is using that (dedicated to SQL
Server). The problem is that after restarting the service, it takes about 4
days that users fill the memory by their queries and when 2GB runs out, the
server becomes so slow and even it takes long time to open the task manager.
If you change the maximum memory to 1.8GB, the OS itself will not be slow
when memory runs out, but the users experience serious problems in
performance as before. The database is not too big, only 700MB(data only)
but there are about 40 concurrent users.
I thought it is good to install more memory but what if this job only
increases the life of memory (e.g 8 days to run out!) instead of eliminating
the problem?!
Any help would be greatly appreciated.
LeilaI'd strat tuning queries first , I don;t think that OS or hardware are a
problem.
Run SQL Server Profiler to identify a long running queries and then try to
optimize them.
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>|||Sounds like you have a memory leak somewhere.
Some ideas:
1) Do they have the latest Service Pack installed (SP4)?
2) Are there any third party extended procedures on the machine that might
cause trouble?
3) Are there any connections that are open for a long time with long term
locks?
Jacco Schalkwijk
SQL Server MVP
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>|||If its SQL Standard, more memory will not help the SQL Server.
I find it odd that a 700MB database can take up 1.8 gb memory...
looking forward to input form others.
What version (service pack) of SQL?
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>|||Leila,
1. Ensure the appropriate indexes exist to help minimize physcial I/O
2. Ensure the end-user ad-hoc queries (not really recommended) include
WHERE clauses (that match the indexes)
3. Check for table/clustered index scans for queries
4. Ensure that no CROSS JOINs (or multiple tables withouth WHERE clause -
old syntax) are not occuring
5. Perhaps think about using the Query Governor Cost Limit
HTH
Jerry
"Leila" <Leilas@.hotpop.com> wrote in message
news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL Server
> 2000.
> The server has 2GB memory and no other app is using that (dedicated to SQL
> Server). The problem is that after restarting the service, it takes about
> 4
> days that users fill the memory by their queries and when 2GB runs out,
> the
> server becomes so slow and even it takes long time to open the task
> manager.
> If you change the maximum memory to 1.8GB, the OS itself will not be slow
> when memory runs out, but the users experience serious problems in
> performance as before. The database is not too big, only 700MB(data only)
> but there are about 40 concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating
> the problem?!
> Any help would be greatly appreciated.
> Leila
>|||Thanks Uri,
There's no problem with queries. I read the result of profiler and sorted by
duration. There's no bottleneck with queries. Everything is ok when memory
is available. As soon as memory becomes full, the page/sec in performance
monitor goes high!
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:#sYDnSbzFHA.2064@.TK2MSFTNGP09.phx.gbl...
> I'd strat tuning queries first , I don;t think that OS or hardware are a
> problem.
> Run SQL Server Profiler to identify a long running queries and then try to
> optimize them.
>
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL[vbcol=seagreen]
about[vbcol=seagreen]
slow[vbcol=seagreen]
only)[vbcol=seagreen]
>|||Thanks Jacco,
1) SP3
2) No
3) There is no problem with locks and blocking ( I used performance
monitor). The client app opens about 3 or 4 connections (maybe more!) but
there's another question for me: Can an inactive connection consume a lot of
memory? I mean can it be a serious problem for memory?
"Jacco Schalkwijk" <jacco.please.reply@.to.newsgroups.mvps.org.invalid> wrote
in message news:#RlKqTbzFHA.1168@.TK2MSFTNGP15.phx.gbl...
> Sounds like you have a memory leak somewhere.
> Some ideas:
> 1) Do they have the latest Service Pack installed (SP4)?
> 2) Are there any third party extended procedures on the machine that might
> cause trouble?
> 3) Are there any connections that are open for a long time with long term
> locks?
> --
> Jacco Schalkwijk
> SQL Server MVP
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL[vbcol=seagreen]
about[vbcol=seagreen]
slow[vbcol=seagreen]
only)[vbcol=seagreen]
>|||Thanks Kevin,
It's Enterprise Edition + SP3
"Kevin3NF" <KHill@.NopeIDontNeedNoSPAM3NF-inc.com> wrote in message
news:e2u$MVbzFHA.1040@.TK2MSFTNGP14.phx.gbl...
> If its SQL Standard, more memory will not help the SQL Server.
> I find it odd that a 700MB database can take up 1.8 gb memory...
> looking forward to input form others.
> What version (service pack) of SQL?
> --
> Kevin Hill
> President
> 3NF Consulting
> www.3nf-inc.com/NewsGroups.htm
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL[vbcol=seagreen]
about[vbcol=seagreen]
slow[vbcol=seagreen]
only)[vbcol=seagreen]
>|||Leila wrote:
> Hi,
> Yesterday I went to company of a friend to troubleshoot their SQL
> Server 2000.
> The server has 2GB memory and no other app is using that (dedicated
> to SQL Server). The problem is that after restarting the service, it
> takes about 4 days that users fill the memory by their queries and
> when 2GB runs out, the server becomes so slow and even it takes long
> time to open the task manager. If you change the maximum memory to
> 1.8GB, the OS itself will not be slow when memory runs out, but the
> users experience serious problems in performance as before. The
> database is not too big, only 700MB(data only) but there are about 40
> concurrent users.
> I thought it is good to install more memory but what if this job only
> increases the life of memory (e.g 8 days to run out!) instead of
> eliminating the problem?!
> Any help would be greatly appreciated.
> Leila
I agree with Uri. Tuning queries is the place to start. Your data is
700MB, but you didn't mention the size of your indexes, the number of
query plans in cache, the type of execution model (stored procedures,
dynamic sql, etc.), or the design of the disk subsystem. See BOL "SQL
Server Memory Pool" for a description of memory use.
Keeping table / index / clustered index scans to a minimum can help
performance a great deal.
I would encourage you to also use Profiler before and after the memory
problem to better compare performance of your queries and see where the
differences are. Are you seeing a difference in duration only? If so, it
could be a overutilized disk subsystem.
David Gugick
Quest Software
www.imceda.com
www.quest.com|||Thanks Jerry,
It doesn't seem to be I/O optimization problem. Whether the query is
optimized by indexes or not, at the end it will consume a particular amount
of memory to stay there.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:e2l$EdbzFHA.3924@.TK2MSFTNGP14.phx.gbl...
> Leila,
> 1. Ensure the appropriate indexes exist to help minimize physcial I/O
> 2. Ensure the end-user ad-hoc queries (not really recommended) include
> WHERE clauses (that match the indexes)
> 3. Check for table/clustered index scans for queries
> 4. Ensure that no CROSS JOINs (or multiple tables withouth WHERE clause -
> old syntax) are not occuring
> 5. Perhaps think about using the Query Governor Cost Limit
> HTH
> Jerry
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:OKrDJNbzFHA.3408@.TK2MSFTNGP09.phx.gbl...
SQL[vbcol=seagreen]
about[vbcol=seagreen]
slow[vbcol=seagreen]
only)[vbcol=seagreen]
>