Home All Groups Group Topic Archive Search About

sql profiler writing on an unused partition?

Author
26 Jan 2009 9:16 AM
Fritz Theiss
hi,

i am running sql server 2005 profiler on a system, where not much space is
left on c:\. that way i have configured profiler to write all files on d:\,
which is more suitable here. however i clearly can see that c: is somehow
affected as space is getting less and less here. as soon as the profiler is
stopped and restarted - space is facing the same size as in the beginning on
c:\.

i am wondering, why it is like this in order to "disable" it. errorlog is
facing the same size; the same for eventlogs...

--
thanks in advance / danke im voraus, fritz
--
Fritz Theiss

Author
26 Jan 2009 9:54 AM
Carlos Sacristan
Are you sure that the problem is SQL Profiler? How do you create the trace
files (with sp_trace_create or maybe Profiler is running?)


--
--
Un saludo
-------------------------------
www.navento.com
Servicios de Localización GPS


Show quoteHide quote
"Fritz Theiss" wrote:

> hi,
>
> i am running sql server 2005 profiler on a system, where not much space is
> left on c:\. that way i have configured profiler to write all files on d:\,
> which is more suitable here. however i clearly can see that c: is somehow
> affected as space is getting less and less here. as soon as the profiler is
> stopped and restarted - space is facing the same size as in the beginning on
> c:\.
>
> i am wondering, why it is like this in order to "disable" it. errorlog is
> facing the same size; the same for eventlogs...
>
> --
> thanks in advance / danke im voraus, fritz
> --
> Fritz Theiss
>
Are all your drivers up to date? click for free checkup

Author
26 Jan 2009 10:09 AM
Fritz Theiss
thx so far.

to answer the questions:

1) well, i do run sql profiler, nothing with sp_trace_create.
2) yes, i am sure - as soon as profiler is stopped, space on c:\ gets freed.

--
thanks in advance / danke im voraus, fritz
--
Fritz Theiss



Show quoteHide quote
"Carlos Sacristan" wrote:

>
> Are you sure that the problem is SQL Profiler? How do you create the trace
> files (with sp_trace_create or maybe Profiler is running?)
>
>
> --
> --
> Un saludo
> -------------------------------
> www.navento.com
> Servicios de Localización GPS
>
>
> "Fritz Theiss" wrote:
>
> > hi,
> >
> > i am running sql server 2005 profiler on a system, where not much space is
> > left on c:\. that way i have configured profiler to write all files on d:\,
> > which is more suitable here. however i clearly can see that c: is somehow
> > affected as space is getting less and less here. as soon as the profiler is
> > stopped and restarted - space is facing the same size as in the beginning on
> > c:\.
> >
> > i am wondering, why it is like this in order to "disable" it. errorlog is
> > facing the same size; the same for eventlogs...
> >
> > --
> > thanks in advance / danke im voraus, fritz
> > --
> > Fritz Theiss
> >
Author
27 Jan 2009 1:03 PM
Dan Guzman
> 1) well, i do run sql profiler, nothing with sp_trace_create.

OMHO, you *should* use a server side trace and manage with the sp_trace_*
stored procedures if you have a lot of data being traced.  You can use the
Profiler GUI to script the trace and/or to display the trace data afterward.
See
http://weblogs.sqlteam.com/dang/archive/2007/12/16/Avoid-Causing-Problems-with-Profiler.aspx
for more information.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

Show quoteHide quote
"Fritz Theiss" <FritzThe***@discussions.microsoft.com> wrote in message
news:7BAAA31F-54D1-462A-83FA-233D0FC1B1FD@microsoft.com...
> thx so far.
>
> to answer the questions:
>
> 1) well, i do run sql profiler, nothing with sp_trace_create.
> 2) yes, i am sure - as soon as profiler is stopped, space on c:\ gets
> freed.
>
> --
> thanks in advance / danke im voraus, fritz
> --
> Fritz Theiss
>
>
>
> "Carlos Sacristan" wrote:
>
>>
>> Are you sure that the problem is SQL Profiler? How do you create the
>> trace
>> files (with sp_trace_create or maybe Profiler is running?)
>>
>>
>> --
>> --
>> Un saludo
>> -------------------------------
>> www.navento.com
>> Servicios de Localización GPS
>>
>>
>> "Fritz Theiss" wrote:
>>
>> > hi,
>> >
>> > i am running sql server 2005 profiler on a system, where not much space
>> > is
>> > left on c:\. that way i have configured profiler to write all files on
>> > d:\,
>> > which is more suitable here. however i clearly can see that c: is
>> > somehow
>> > affected as space is getting less and less here. as soon as the
>> > profiler is
>> > stopped and restarted - space is facing the same size as in the
>> > beginning on
>> > c:\.
>> >
>> > i am wondering, why it is like this in order to "disable" it. errorlog
>> > is
>> > facing the same size; the same for eventlogs...
>> >
>> > --
>> > thanks in advance / danke im voraus, fritz
>> > --
>> > Fritz Theiss
>> >
Author
26 Jan 2009 10:25 AM
LeoPasta
Have you modified the %TEMP% and %TMP% environment variable to point to D:?
If not, might be worth a try.
Right Click in My Computer -> Properties -> Advanced -> Environment
Variables

Show quoteHide quote
"Fritz Theiss" <FritzThe***@discussions.microsoft.com> wrote in message
news:DC2C67A0-9CFF-4404-8D24-49F019C8D40D@microsoft.com...
> hi,
>
> i am running sql server 2005 profiler on a system, where not much space is
> left on c:\. that way i have configured profiler to write all files on
> d:\,
> which is more suitable here. however i clearly can see that c: is somehow
> affected as space is getting less and less here. as soon as the profiler
> is
> stopped and restarted - space is facing the same size as in the beginning
> on
> c:\.
>
> i am wondering, why it is like this in order to "disable" it. errorlog is
> facing the same size; the same for eventlogs...
>
> --
> thanks in advance / danke im voraus, fritz
> --
> Fritz Theiss
>
Author
26 Jan 2009 10:36 AM
Fritz Theiss
no, i did not as it was not necessary: two files are in %tmp% and %temp%
(both sharing the same physical location), but they are of size 0 bytes.

this does not seem to be the problem...

--
thanks in advance / danke im voraus, fritz
--
Fritz Theiss



Show quoteHide quote
"LeoPasta" wrote:

> Have you modified the %TEMP% and %TMP% environment variable to point to D:?
> If not, might be worth a try.
> Right Click in My Computer -> Properties -> Advanced -> Environment
> Variables
>
> --
> Regards,
> LeoPasta - http://sqlblogcasts.com/blogs/leopasta/default.aspx
>
> "Fritz Theiss" <FritzThe***@discussions.microsoft.com> wrote in message
> news:DC2C67A0-9CFF-4404-8D24-49F019C8D40D@microsoft.com...
> > hi,
> >
> > i am running sql server 2005 profiler on a system, where not much space is
> > left on c:\. that way i have configured profiler to write all files on
> > d:\,
> > which is more suitable here. however i clearly can see that c: is somehow
> > affected as space is getting less and less here. as soon as the profiler
> > is
> > stopped and restarted - space is facing the same size as in the beginning
> > on
> > c:\.
> >
> > i am wondering, why it is like this in order to "disable" it. errorlog is
> > facing the same size; the same for eventlogs...
> >
> > --
> > thanks in advance / danke im voraus, fritz
> > --
> > Fritz Theiss
> >
>
>
>
Author
26 Jan 2009 10:54 PM
Erland Sommarskog
Fritz Theiss (FritzThe***@discussions.microsoft.com) writes:
> no, i did not as it was not necessary: two files are in %tmp% and %temp%
> (both sharing the same physical location), but they are of size 0 bytes.
>
> this does not seem to be the problem...

That may be because they are open for writing, so the real size does not
display.

If you are short on space on C, you should change TEMP and TMP anyway.


--
Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Author
27 Jan 2009 5:04 PM
Fritz Theiss
i figured the problem out:

the environment variables of the user pointed to c:\. here i could find
..tmp-files with a size of more than 4 gb. as soon as profiler was ended these
files passed by.

i now configured these user environment variables to another partition...

--
thanks in advance / danke im voraus, fritz
--
Fritz Theiss



Show quoteHide quote
"Erland Sommarskog" wrote:

> Fritz Theiss (FritzThe***@discussions.microsoft.com) writes:
> > no, i did not as it was not necessary: two files are in %tmp% and %temp%
> > (both sharing the same physical location), but they are of size 0 bytes.
> >
> > this does not seem to be the problem...

> That may be because they are open for writing, so the real size does not
> display.
>
> If you are short on space on C, you should change TEMP and TMP anyway.
>
>
> --
> Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se
>
> Links for SQL Server Books Online:
> SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
> SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
> SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>
>
Author
26 Jan 2009 12:26 PM
Tibor Karaszi
Profiler uses some temp directory. AFAIK, this is the same as where
you point Windows TMP or TEMP to. I strongly encourage you to do
server side tracing instead of profiler.

Show quoteHide quote
"Fritz Theiss" <FritzThe***@discussions.microsoft.com> wrote in
message news:DC2C67A0-9CFF-4404-8D24-49F019C8D40D@microsoft.com...
> hi,
>
> i am running sql server 2005 profiler on a system, where not much
> space is
> left on c:\. that way i have configured profiler to write all files
> on d:\,
> which is more suitable here. however i clearly can see that c: is
> somehow
> affected as space is getting less and less here. as soon as the
> profiler is
> stopped and restarted - space is facing the same size as in the
> beginning on
> c:\.
>
> i am wondering, why it is like this in order to "disable" it.
> errorlog is
> facing the same size; the same for eventlogs...
>
> --
> thanks in advance / danke im voraus, fritz
> --
> Fritz Theiss
>
Author
26 Jan 2009 12:52 PM
Ekrem_Önsoy
Also, running tools such as Profiler and DTA on a remote machine if possible
is a best practice.

--
Ekrem Önsoy



Show quoteHide quote
"Fritz Theiss" <FritzThe***@discussions.microsoft.com> wrote in message
news:DC2C67A0-9CFF-4404-8D24-49F019C8D40D@microsoft.com...
> hi,
>
> i am running sql server 2005 profiler on a system, where not much space is
> left on c:\. that way i have configured profiler to write all files on
> d:\,
> which is more suitable here. however i clearly can see that c: is somehow
> affected as space is getting less and less here. as soon as the profiler
> is
> stopped and restarted - space is facing the same size as in the beginning
> on
> c:\.
>
> i am wondering, why it is like this in order to "disable" it. errorlog is
> facing the same size; the same for eventlogs...
>
> --
> thanks in advance / danke im voraus, fritz
> --
> Fritz Theiss
>

Bookmark and Share