all groups > sql server msde > september 2005 >
You're in the

sql server msde

group:

sqlservr.exe doesn't relase the memory


Re: sqlservr.exe doesn't relase the memory Andrea Montanari
9/8/2005 12:00:00 AM
sql server msde:
hi Sreedhar,
[quoted text, click to view]

you cant... SQL Server is not dependent on your application behavior... it's
a separate application/service running on it's own, eventually serving your
application as well, among others, if any...
what is the problem of SQL Server not releasing it's memory?
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtm http://italy.mvps.org
DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
--------- remove DMO to reply

sqlservr.exe doesn't relase the memory Sreedhar
9/8/2005 12:02:01 AM
Hello,

We are using MSDE for our application. The service MSSQL$App will start
automatically or when the application is started. While using the
application, the memory usage by sqlservr.exe will be increasing and when the
application is closed, the sqlservr.exe is not releasing the memory or
atleast the memory usage is not coming down. Can any one help on this? Is
this a MSDE bug or our application should manually release the memory used by
Re: sqlservr.exe doesn't relase the memory Sreedhar
9/8/2005 3:55:03 AM
Hi Gijs,

Thanks for the response. If this is the case that SqlServr.exe uses the
memory and is a normal behaviour, then how can i minimize it "on exit of the
application". I have already saw the solution saying to set min and max
memory. But, can't I minimize on exit? Pls help me.

-Sreedhar

[quoted text, click to view]
Re: sqlservr.exe doesn't relase the memory Gijs Beukenoot
9/8/2005 9:32:08 AM
From Sreedhar :
[quoted text, click to view]

That is 'normal' behaviour of SQL, see
http://support.microsoft.com/default.aspx?scid=kb;en-us;321363

Re: sqlservr.exe doesn't relase the memory Sreedhar
9/8/2005 9:19:02 PM
Hello Experts,

Your information was very useful. But, still i have some problem. My
application runs on MSDE and not the SQLServer. And it is the only
application that runs on this instance (MSSQL$APPNAME). I checked out an
article at http://support.microsoft.com/default.aspx?scid=kb;en-us;321363 .
This article applies to SQL 7.0 and SQL 2000. It does not mention MSDE. Is
this applicable to MSDE also? If so, where can I find some thing more
specific to MSDE. Please help me.

-Sreedhar

[quoted text, click to view]
Re: sqlservr.exe doesn't relase the memory Hugo Kornelis
9/8/2005 10:24:46 PM
[quoted text, click to view]

Hi Sreedhar,

If your application is the only application taht requires the instance
of MSDE to be running, then you can modify the application to issue a
shutdown command on exit. But beware: there are several pitfalls:

1. If some other application unexpectedly also relies on the SQL Server
service being up and running, shutting it down won't make you many new
friends :-)

2. The SHUTDOWN command can only be issued by members of the sysadmin or
serveradmin fixed server roles. Having your application running with
that level of authority is a tremendous risk.

I'd say, as Andrea also writes, that it's much better to just leave the
server running. If you're left with too little memory for your other
applications, get some extra memory or buy an extra machine to serve as
a dedicated database server. Hardware is cheap nowadays.

Or you can just terminate the SQL Server service manually if you need to
free the memory occasionally.

Best, Hugo
--

Re: sqlservr.exe doesn't relase the memory Gijs Beukenoot
9/9/2005 12:00:00 AM
From Hugo Kornelis :
[quoted text, click to view]

You could check the number of users, if you're the only active user,
shutdown it down and start it again. That way, SQL willl start again at
'minimun' memory usage.

Re: sqlservr.exe doesn't relase the memory Andrea Montanari
9/9/2005 12:00:00 AM
hi Sreedhar,
[quoted text, click to view]

MSDE "IS" SQL Server... it's one of the available editions, with some
limitations and without standard SQL Server Client Tools...
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtm http://italy.mvps.org
DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
--------- remove DMO to reply

Re: sqlservr.exe doesn't relase the memory Hugo Kornelis
9/9/2005 10:02:45 PM
On Fri, 09 Sep 2005 07:47:52 +0200, "Gijs Beukenoot"
[quoted text, click to view]

Hi Gijs,

There are a few reasons why I would definitely NOT do it this way:

- The number of active users (by which I presume you mean: connections)
is a dangerous indication of (lack of) activity, to say the least. Many
client programs are progrmmed to drop a connection when it's no longer
used, reconnecting when they need to send data or execute a query.

- If you MUST shutdown MSDE to reclaim the memory (and as I already
stated in my previous message, that would NOT be my first choice - nor
my second or third), then don't do it when you start the application,
but when you terminate it. Doing it at start means that the time to
start the application will rise (shutdown and startup of MSDE cost quite
some time). Plus all data that might have bene in cache wil be flushed
from memory, all memory will have to be allocated again, etc etc. Don't
release the resources just before you're gooing to use it - release them
when you're done using them.

Best, Hugo
--

Re: sqlservr.exe doesn't relase the memory Gijs Beukenoot
9/10/2005 11:32:43 AM
From Hugo Kornelis :
[quoted text, click to view]
<snap

[quoted text, click to view]

I absolutely agree, it would be sort of a last resort... More memory in
the machine would be my first and second choice, followed by a more
dedicated server (running less other applications).

AddThis Social Bookmark Button