dbTalk Databases Forums  

Trace file size

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Trace file size in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
xo
 
Posts: n/a

Default Trace file size - 08-18-2010 , 01:30 PM






Hello,

Besides the default SQL 2005 trace comes with the box, I enabled SQL
profiler tracing with a stored procedure. And the trace files size
was set to 25GB; however, I noticed the trace has been terminated when
it hit 4GB and shouted out error in sql server log that there is not
enough space on the disk and restart the trace after correcting the
problem. but my drive still have 86GB free space.

Are there something else set the file size limit besides what's the
book online mentioned an upper limit of 1 gigabyte (GB) for the
maximum file size option and default maximum file size is 5 megabytes
(MB)?

Thanks in advance

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Trace file size - 08-18-2010 , 04:25 PM






xo (xo5555ox (AT) gmail (DOT) com) writes:
Quote:
Besides the default SQL 2005 trace comes with the box, I enabled SQL
profiler tracing with a stored procedure. And the trace files size
was set to 25GB; however, I noticed the trace has been terminated when
it hit 4GB and shouted out error in sql server log that there is not
enough space on the disk and restart the trace after correcting the
problem. but my drive still have 86GB free space.

Are there something else set the file size limit besides what's the
book online mentioned an upper limit of 1 gigabyte (GB) for the
maximum file size option and default maximum file size is 5 megabytes
(MB)?
So you started a trace from Profiler, and asked for to be saved to disk?
That's not a good idea. Profiler is good for short monitoring, but longer
traces you should run server-side. These are actually not difficult to
set up. Use Profiler, and you might try for a short while to see that
they look good. Then you can select the Export option from the File menu
to get a script. In the script you can set the maximum file size.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) 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/prodinf...ons/books.mspx

Reply With Quote
  #3  
Old   
xo
 
Posts: n/a

Default Re: Trace file size - 08-18-2010 , 04:46 PM



On Aug 18, 2:25*pm, Erland Sommarskog <esq... (AT) sommarskog (DOT) se> wrote:
Quote:
xo (xo555... (AT) gmail (DOT) com) writes:
Besides the default SQL 2005 trace comes with the box, I enabled SQL
profiler tracing with a stored procedure. *And the trace files size
was set to 25GB; however, I noticed the trace has been terminated when
it hit 4GB and shouted out error in sql server log that there is not
enough space on the disk and restart the trace after correcting the
problem. but my drive still have 86GB free space.

Are there something else set the file size limit besides what's the
book online mentioned an upper limit of 1 gigabyte (GB) for the
maximum file size option and default maximum file size is 5 megabytes
(MB)?

So you started a trace from Profiler, and asked for to be saved to disk?
That's not a good idea. Profiler is good for short monitoring, but longer
traces you should run server-side. These are actually not difficult to
set up. Use Profiler, and you might try for a short while to see that
they look good. Then you can select the Export option from the File menu
to get a script. In the script you can set the maximum file size.

--
Erland Sommarskog, SQL Server MVP, esq... (AT) sommarskog (DOT) 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/prodinf...ons/books.mspx
Hi Erland,

The trace only set to run for a short duration each day. And I did get
a script and changed the max file size and scheduled the trace. But
for some reasons, the trace file still only goes up to 4.2GB.

Reply With Quote
  #4  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Trace file size - 08-19-2010 , 02:14 AM



xo (xo5555ox (AT) gmail (DOT) com) writes:
Quote:
The trace only set to run for a short duration each day. And I did get
a script and changed the max file size and scheduled the trace. But
for some reasons, the trace file still only goes up to 4.2GB.
Could you post the script?

What is the exact size of the file in bytes?



--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #5  
Old   
bob123
 
Posts: n/a

Default Re: Trace file size - 08-20-2010 , 11:52 PM



"xo" <xo5555ox (AT) gmail (DOT) com> a écrit dans le message de news:
01eca383-df41-45b3-b72e-deb2e1371394...oglegroups.com...
On Aug 18, 2:25 pm, Erland Sommarskog <esq... (AT) sommarskog (DOT) se> wrote:
Quote:
xo (xo555... (AT) gmail (DOT) com) writes:
Besides the default SQL 2005 trace comes with the box, I enabled SQL
profiler tracing with a stored procedure. And the trace files size
was set to 25GB; however, I noticed the trace has been terminated when
it hit 4GB and shouted out error in sql server log that there is not
enough space on the disk and restart the trace after correcting the
problem. but my drive still have 86GB free space.

Are there something else set the file size limit besides what's the
book online mentioned an upper limit of 1 gigabyte (GB) for the
maximum file size option and default maximum file size is 5 megabytes
(MB)?

Hi,

Are you on a FAT32 file system
The max file size is 4GB on FAT32

Reply With Quote
  #6  
Old   
xo
 
Posts: n/a

Default Re: Trace file size - 08-23-2010 , 08:27 PM



On Aug 20, 9:52*pm, "bob123" <bob... (AT) gmail (DOT) com> wrote:
Quote:
"xo" <xo555... (AT) gmail (DOT) com> a écrit dans le message de news:
01eca383-df41-45b3-b72e-deb2e1371... (AT) n19g2000prf (DOT) googlegroups.com...
On Aug 18, 2:25 pm, Erland Sommarskog <esq... (AT) sommarskog (DOT) se> wrote:

xo (xo555... (AT) gmail (DOT) com) writes:
Besides the default SQL 2005 trace comes with the box, I enabled SQL
profiler tracing with a stored procedure. And the trace files size
was set to 25GB; however, I noticed the trace has been terminated when
it hit 4GB and shouted out error in sql server log that there is not
enough space on the disk and restart the trace after correcting the
problem. but my drive still have 86GB free space.

Are there something else set the file size limit besides what's the
book online mentioned an upper limit of 1 gigabyte (GB) for the
maximum file size option and default maximum file size is 5 megabytes
(MB)?

Hi,

Are you on a FAT32 file system
The max file size is 4GB on FAT32
Very strangely it works now! Thanks!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.