Wednesday, March 28, 2012
performance for Replication and trigger
I have issue related transaction replication and trigger. In my company, we
have transaction replication and then there are some triggers in the tables
in subscriber server. When the data replicated into table, then fired the
trigger. Recently, it causes performance issue when data become bigger.
Somebody told me that microsoft doesn't recommand to use replication and
trigger together. Is that true? How can I work around? Thanks.
You can define the trigger with the NOT FOR REPLICATION attribute to prevent
it firing on synchronization.
HTH,
Paul Ibison
Wednesday, March 21, 2012
Performance Counter
Is there a way to access non Sql Server related performance counters from
Sql Server.
Like % Processor time or % Disk Time?
I'm trying to build a table to establish trends and would like to collect
all the data from via a sp.
Thx
You could try
DBCC sqlperf(THREADS)
Tobes
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>
|||Non- SQL Server perf counters are NOT stored in SQL the same way that the
SQL Counters are..
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>
|||You can write Windows performance counters to SQL Server database tables
using the Windows 2003 server or XP performance monitor tool. Create a ODBC
system DSN for your database repository and specify the DSN under log
settings. The account used for the 'Performance logs and alerts' service
needs to be granted full access to the database.
Hope this helps.
Dan Guzman
SQL Server MVP
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>
|||Thx,
I've tried this and have tested the ODBC connection which is successfull.
However when I go to start the counter log it fails and the application
event viewer has the following message:
Description:
18456 :
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
I then went and added a local group on the server and added 'NT
AUTHORITY\NETWORK SERVICE' to the group. I then granted login access for this
local group to Sql server and added it as a user to a repository db with full
permissions on the db... get the same error.
Thx again.
"Dan Guzman" wrote:
> You can write Windows performance counters to SQL Server database tables
> using the Windows 2003 server or XP performance monitor tool. Create a ODBC
> system DSN for your database repository and specify the DSN under log
> settings. The account used for the 'Performance logs and alerts' service
> needs to be granted full access to the database.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "ap001" <ap001@.discussions.microsoft.com> wrote in message
> news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
>
>
|||You might try using a domain account for the 'Performance logs and alerts'
service. This has always worked for me.
Hope this helps.
Dan Guzman
SQL Server MVP
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:2D40BCD1-40C4-4F34-B6E5-6FDDABE109FC@.microsoft.com...[vbcol=seagreen]
> Thx,
> I've tried this and have tested the ODBC connection which is successfull.
> However when I go to start the counter log it fails and the application
> event viewer has the following message:
> Description:
> 18456 :
> Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
> I then went and added a local group on the server and added 'NT
> AUTHORITY\NETWORK SERVICE' to the group. I then granted login access for
> this
> local group to Sql server and added it as a user to a repository db with
> full
> permissions on the db... get the same error.
> Thx again.
>
>
> "Dan Guzman" wrote:
|||Thx, that worked.
"Dan Guzman" wrote:
> You might try using a domain account for the 'Performance logs and alerts'
> service. This has always worked for me.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "ap001" <ap001@.discussions.microsoft.com> wrote in message
> news:2D40BCD1-40C4-4F34-B6E5-6FDDABE109FC@.microsoft.com...
>
>
Performance Counter
Is there a way to access non Sql Server related performance counters from
Sql Server.
Like % Processor time or % Disk Time?
I'm trying to build a table to establish trends and would like to collect
all the data from via a sp.
ThxYou could try
DBCC sqlperf(THREADS)
Tobes
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>|||Non- SQL Server perf counters are NOT stored in SQL the same way that the
SQL Counters are..
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>|||You can write Windows performance counters to SQL Server database tables
using the Windows 2003 server or XP performance monitor tool. Create a ODBC
system DSN for your database repository and specify the DSN under log
settings. The account used for the 'Performance logs and alerts' service
needs to be granted full access to the database.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>|||Thx,
I've tried this and have tested the ODBC connection which is successfull.
However when I go to start the counter log it fails and the application
event viewer has the following message:
Description:
18456 :
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
I then went and added a local group on the server and added 'NT
AUTHORITY\NETWORK SERVICE' to the group. I then granted login access for this
local group to Sql server and added it as a user to a repository db with full
permissions on the db... get the same error.
Thx again.
"Dan Guzman" wrote:
> You can write Windows performance counters to SQL Server database tables
> using the Windows 2003 server or XP performance monitor tool. Create a ODBC
> system DSN for your database repository and specify the DSN under log
> settings. The account used for the 'Performance logs and alerts' service
> needs to be granted full access to the database.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "ap001" <ap001@.discussions.microsoft.com> wrote in message
> news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> > Hi,
> >
> > Is there a way to access non Sql Server related performance counters from
> > Sql Server.
> > Like % Processor time or % Disk Time?
> >
> > I'm trying to build a table to establish trends and would like to collect
> > all the data from via a sp.
> >
> > Thx
> >
> >
>
>|||You might try using a domain account for the 'Performance logs and alerts'
service. This has always worked for me.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:2D40BCD1-40C4-4F34-B6E5-6FDDABE109FC@.microsoft.com...
> Thx,
> I've tried this and have tested the ODBC connection which is successfull.
> However when I go to start the counter log it fails and the application
> event viewer has the following message:
> Description:
> 18456 :
> Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
> I then went and added a local group on the server and added 'NT
> AUTHORITY\NETWORK SERVICE' to the group. I then granted login access for
> this
> local group to Sql server and added it as a user to a repository db with
> full
> permissions on the db... get the same error.
> Thx again.
>
>
> "Dan Guzman" wrote:
>> You can write Windows performance counters to SQL Server database tables
>> using the Windows 2003 server or XP performance monitor tool. Create a
>> ODBC
>> system DSN for your database repository and specify the DSN under log
>> settings. The account used for the 'Performance logs and alerts' service
>> needs to be granted full access to the database.
>> --
>> Hope this helps.
>> Dan Guzman
>> SQL Server MVP
>> "ap001" <ap001@.discussions.microsoft.com> wrote in message
>> news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
>> > Hi,
>> >
>> > Is there a way to access non Sql Server related performance counters
>> > from
>> > Sql Server.
>> > Like % Processor time or % Disk Time?
>> >
>> > I'm trying to build a table to establish trends and would like to
>> > collect
>> > all the data from via a sp.
>> >
>> > Thx
>> >
>> >
>>|||Thx, that worked.
"Dan Guzman" wrote:
> You might try using a domain account for the 'Performance logs and alerts'
> service. This has always worked for me.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "ap001" <ap001@.discussions.microsoft.com> wrote in message
> news:2D40BCD1-40C4-4F34-B6E5-6FDDABE109FC@.microsoft.com...
> > Thx,
> >
> > I've tried this and have tested the ODBC connection which is successfull.
> > However when I go to start the counter log it fails and the application
> > event viewer has the following message:
> > Description:
> > 18456 :
> > Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
> >
> > I then went and added a local group on the server and added 'NT
> > AUTHORITY\NETWORK SERVICE' to the group. I then granted login access for
> > this
> > local group to Sql server and added it as a user to a repository db with
> > full
> > permissions on the db... get the same error.
> >
> > Thx again.
> >
> >
> >
> >
> > "Dan Guzman" wrote:
> >
> >> You can write Windows performance counters to SQL Server database tables
> >> using the Windows 2003 server or XP performance monitor tool. Create a
> >> ODBC
> >> system DSN for your database repository and specify the DSN under log
> >> settings. The account used for the 'Performance logs and alerts' service
> >> needs to be granted full access to the database.
> >>
> >> --
> >> Hope this helps.
> >>
> >> Dan Guzman
> >> SQL Server MVP
> >>
> >> "ap001" <ap001@.discussions.microsoft.com> wrote in message
> >> news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> >> > Hi,
> >> >
> >> > Is there a way to access non Sql Server related performance counters
> >> > from
> >> > Sql Server.
> >> > Like % Processor time or % Disk Time?
> >> >
> >> > I'm trying to build a table to establish trends and would like to
> >> > collect
> >> > all the data from via a sp.
> >> >
> >> > Thx
> >> >
> >> >
> >>
> >>
> >>
>
>sql
Performance Counter
Is there a way to access non Sql Server related performance counters from
Sql Server.
Like % Processor time or % Disk Time?
I'm trying to build a table to establish trends and would like to collect
all the data from via a sp.
ThxYou could try
DBCC sqlperf(THREADS)
Tobes
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>|||Non- SQL Server perf counters are NOT stored in SQL the same way that the
SQL Counters are..
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>|||You can write Windows performance counters to SQL Server database tables
using the Windows 2003 server or XP performance monitor tool. Create a ODBC
system DSN for your database repository and specify the DSN under log
settings. The account used for the 'Performance logs and alerts' service
needs to be granted full access to the database.
Hope this helps.
Dan Guzman
SQL Server MVP
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
> Hi,
> Is there a way to access non Sql Server related performance counters from
> Sql Server.
> Like % Processor time or % Disk Time?
> I'm trying to build a table to establish trends and would like to collect
> all the data from via a sp.
> Thx
>|||Thx,
I've tried this and have tested the ODBC connection which is successfull.
However when I go to start the counter log it fails and the application
event viewer has the following message:
Description:
18456 :
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
I then went and added a local group on the server and added 'NT
AUTHORITY\NETWORK SERVICE' to the group. I then granted login access for thi
s
local group to Sql server and added it as a user to a repository db with ful
l
permissions on the db... get the same error.
Thx again.
"Dan Guzman" wrote:
> You can write Windows performance counters to SQL Server database tables
> using the Windows 2003 server or XP performance monitor tool. Create a OD
BC
> system DSN for your database repository and specify the DSN under log
> settings. The account used for the 'Performance logs and alerts' service
> needs to be granted full access to the database.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "ap001" <ap001@.discussions.microsoft.com> wrote in message
> news:469B9D70-D7E3-452C-BAE3-2D5E0320909C@.microsoft.com...
>
>|||You might try using a domain account for the 'Performance logs and alerts'
service. This has always worked for me.
Hope this helps.
Dan Guzman
SQL Server MVP
"ap001" <ap001@.discussions.microsoft.com> wrote in message
news:2D40BCD1-40C4-4F34-B6E5-6FDDABE109FC@.microsoft.com...[vbcol=seagreen]
> Thx,
> I've tried this and have tested the ODBC connection which is successfull.
> However when I go to start the counter log it fails and the application
> event viewer has the following message:
> Description:
> 18456 :
> Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
> I then went and added a local group on the server and added 'NT
> AUTHORITY\NETWORK SERVICE' to the group. I then granted login access for
> this
> local group to Sql server and added it as a user to a repository db with
> full
> permissions on the db... get the same error.
> Thx again.
>
>
> "Dan Guzman" wrote:
>|||Thx, that worked.
"Dan Guzman" wrote:
> You might try using a domain account for the 'Performance logs and alerts'
> service. This has always worked for me.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "ap001" <ap001@.discussions.microsoft.com> wrote in message
> news:2D40BCD1-40C4-4F34-B6E5-6FDDABE109FC@.microsoft.com...
>
>
Friday, March 9, 2012
Performance - Best Practices
Hello,
I am having some pretty major performance issues with a cube I've built. My goal for this post is to give specifics related to the data and Analysis Services hardware to try and get some feedback from the community on whether or not I am having valid expectations performance-wise.
Hardware:
-Two dual-core Xeon 2.8GHz processors
-3GB RAM
Data:
The data is retail transaction data which is at the line item level. The most recent years have 50-60 million rows and I am partitioning by year. In addition, each transaction has related discount and tender (payment) data. The tender data has approximately 15-20 million rows per year while the discount data has approximately 10-15 million rows per year.
In my cube, each of these tables have their own separate fact group. I am pulling data from all three fact groups to create quite a few calculated members which build on each other to finally arrive at calculations such as GAAP Sales, sales for a particular product type, etc.
I believe I have my hierarchies and relationships set up correctly in my dimensions. In addition I have aggregations designed on each partition at about the 40% level.
Am I having reasonable expectations that data should be able to come back fairly quickly? I have some reports which take 10-15 minutes that bring back quite a lot of data for the whole company across the last two years. However, even some simple slicing and dicing in the cube browser can be slow. What is interesting to me is that even if I drop my time dimension on the rows axis before adding any measures or other dimensions, it can take 20 seconds or more to respond. All the while when reports are running or when I am browsing the cube myself, the CPU (all 8 in Task Manager [dual dual-core processors]) are spiking at 100%.
While I believe I can get some good responses from MS folks and MVPs for my own benefit, I think any thoughtful posts will benefit the community as a whole by setting performance expectations and pointing out potential pitfalls. I have found that there are not a ton of good resources out there on performance, so I appreciate any tips anyone can offer.
Thanks!
Todd
May be you can find useful information from this blog:
http://cwebbbi.spaces.live.com/blog/cns!7B84B0F2C239489A!907.entry
For best practices in SSAS 2005, you can find it in presentation from TechEd 2006 (BIN 316):
http://cwebbbi.spaces.live.com/blog/cns!7B84B0F2C239489A!906.entry
Best Regards,
|||
Hello. You have some good links to information posted here already regarding aggregations. I would only advice you to start with checking your attribute relations in your user hierarchies. This is mentioned in Chris Webbs blog.
Mosha has a good post here regarding MDX and performance: http://www.sqljunkies.com/WebLog/mosha/archive/2006/11/05/non_empty_behavior.aspx
You should also be aware of performance issues with using several measure groups in a cube. Here is a good blog post about this: http://prologika.com/CS/blogs/blog/archive/2006/06/28/1331.aspx
HTH
Thomas Ivarsson
Performance - Best Practices
Hello,
I am having some pretty major performance issues with a cube I've built. My goal for this post is to give specifics related to the data and Analysis Services hardware to try and get some feedback from the community on whether or not I am having valid expectations performance-wise.
Hardware:
-Two dual-core Xeon 2.8GHz processors
-3GB RAM
Data:
The data is retail transaction data which is at the line item level. The most recent years have 50-60 million rows and I am partitioning by year. In addition, each transaction has related discount and tender (payment) data. The tender data has approximately 15-20 million rows per year while the discount data has approximately 10-15 million rows per year.
In my cube, each of these tables have their own separate fact group. I am pulling data from all three fact groups to create quite a few calculated members which build on each other to finally arrive at calculations such as GAAP Sales, sales for a particular product type, etc.
I believe I have my hierarchies and relationships set up correctly in my dimensions. In addition I have aggregations designed on each partition at about the 40% level.
Am I having reasonable expectations that data should be able to come back fairly quickly? I have some reports which take 10-15 minutes that bring back quite a lot of data for the whole company across the last two years. However, even some simple slicing and dicing in the cube browser can be slow. What is interesting to me is that even if I drop my time dimension on the rows axis before adding any measures or other dimensions, it can take 20 seconds or more to respond. All the while when reports are running or when I am browsing the cube myself, the CPU (all 8 in Task Manager [dual dual-core processors]) are spiking at 100%.
While I believe I can get some good responses from MS folks and MVPs for my own benefit, I think any thoughtful posts will benefit the community as a whole by setting performance expectations and pointing out potential pitfalls. I have found that there are not a ton of good resources out there on performance, so I appreciate any tips anyone can offer.
Thanks!
Todd
May be you can find useful information from this blog:
http://cwebbbi.spaces.live.com/blog/cns!7B84B0F2C239489A!907.entry
For best practices in SSAS 2005, you can find it in presentation from TechEd 2006 (BIN 316):
http://cwebbbi.spaces.live.com/blog/cns!7B84B0F2C239489A!906.entry
Best Regards,
|||
Hello. You have some good links to information posted here already regarding aggregations. I would only advice you to start with checking your attribute relations in your user hierarchies. This is mentioned in Chris Webbs blog.
Mosha has a good post here regarding MDX and performance: http://www.sqljunkies.com/WebLog/mosha/archive/2006/11/05/non_empty_behavior.aspx
You should also be aware of performance issues with using several measure groups in a cube. Here is a good blog post about this: http://prologika.com/CS/blogs/blog/archive/2006/06/28/1331.aspx
HTH
Thomas Ivarsson
Wednesday, March 7, 2012
Performance
I am currently evaluating RS for one of our projects. I have a question
related to performance. I noticed that it takes between 2 and 5 seconds for
a report to get processed. I am talking about a very simple 'prototype'
report, with just a small table (less than 20 rows). I have profiled the
stored procedure that returns the data, it takes less than 100 ms to run,
and RS runs on the same machine as SQL Server. So it's report generation
itself that takes so long. My application is supposed to deliver on-demand,
real-time Web reports, so 5 seconds for a report is not quite acceptable (I
am currently using a reporting engine that I've developed over a couple of
weeks, and it renders the same report in less than 10 ms, but I want
something more sophisticated). I am pretty sure this is some
installation/configuration setting that I'm missing. Could anybody help?
Thanks a lot,
MikeThis does not seem right. I get a lag if I have not accessed report server
for awhile (or really, if no one has, not just me). I now keep a simple
report that I have set to autorefresh every minute so that I don't get this
lag. But assuming that is not what you are seeing, then something else is
going on. Most of my reports are subsecond to 1 to 2 seconds. And my 2
second ones are going against 1 - 10 million row tables. The data returned
is usually between 50 rows to at the most 2,000 rows. So I can say it would
surprise me if you couldn't get this as a subsecond report. In my case I am
going against Sybase but I have tested against SQL Server as well and SQL
Server screams compared to Sybase so if anything your performance should be
better than what I am seeing.
Where does the data for your report reside? Is it on SQL Server on the same
server you have RS installed on or is it somewhere else? What is the server
hardware like, how much RAM in particular?
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Mike Sarbu" <m_sarbu@.yahoo.com> wrote in message
news:uyqYq1T8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I am currently evaluating RS for one of our projects. I have a question
> related to performance. I noticed that it takes between 2 and 5 seconds
> for a report to get processed. I am talking about a very simple
> 'prototype' report, with just a small table (less than 20 rows). I have
> profiled the stored procedure that returns the data, it takes less than
> 100 ms to run, and RS runs on the same machine as SQL Server. So it's
> report generation itself that takes so long. My application is supposed to
> deliver on-demand, real-time Web reports, so 5 seconds for a report is not
> quite acceptable (I am currently using a reporting engine that I've
> developed over a couple of weeks, and it renders the same report in less
> than 10 ms, but I want something more sophisticated). I am pretty sure
> this is some installation/configuration setting that I'm missing. Could
> anybody help?
> Thanks a lot,
> Mike
>|||Hi Bruce,
And thank you for your response.
The data for my report resides in SQL Server, on the same machine as the RS.
The server is a dual P4 Xeon 3.0 GHz with 2 GB of RAM running Windows 2003.
Only SQL and RS run on this machine, and for now it's a development server
and no one else besides me touches it.
After reading your post I have copied the data on my workstation (dual Xeon
2.8GHz, 1GB RAM, Windows XP) and I get the same results. I really don't
think it's the hardware...
Mike
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:OlnSkbU8EHA.1404@.TK2MSFTNGP11.phx.gbl...
> This does not seem right. I get a lag if I have not accessed report server
> for awhile (or really, if no one has, not just me). I now keep a simple
> report that I have set to autorefresh every minute so that I don't get
> this lag. But assuming that is not what you are seeing, then something
> else is going on. Most of my reports are subsecond to 1 to 2 seconds. And
> my 2 second ones are going against 1 - 10 million row tables. The data
> returned is usually between 50 rows to at the most 2,000 rows. So I can
> say it would surprise me if you couldn't get this as a subsecond report.
> In my case I am going against Sybase but I have tested against SQL Server
> as well and SQL Server screams compared to Sybase so if anything your
> performance should be better than what I am seeing.
> Where does the data for your report reside? Is it on SQL Server on the
> same server you have RS installed on or is it somewhere else? What is the
> server hardware like, how much RAM in particular?
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Mike Sarbu" <m_sarbu@.yahoo.com> wrote in message
> news:uyqYq1T8EHA.3828@.TK2MSFTNGP09.phx.gbl...
>> Hello,
>> I am currently evaluating RS for one of our projects. I have a question
>> related to performance. I noticed that it takes between 2 and 5 seconds
>> for a report to get processed. I am talking about a very simple
>> 'prototype' report, with just a small table (less than 20 rows). I have
>> profiled the stored procedure that returns the data, it takes less than
>> 100 ms to run, and RS runs on the same machine as SQL Server. So it's
>> report generation itself that takes so long. My application is supposed
>> to deliver on-demand, real-time Web reports, so 5 seconds for a report is
>> not quite acceptable (I am currently using a reporting engine that I've
>> developed over a couple of weeks, and it renders the same report in less
>> than 10 ms, but I want something more sophisticated). I am pretty sure
>> this is some installation/configuration setting that I'm missing. Could
>> anybody help?
>> Thanks a lot,
>> Mike
>|||One of my development servers is almost exactly what you have here. It
should be screaming for you. If you have a report against either pubs,
northwind, or adventureworks2000 that is slow for you then post the report
RDL and I'll check it out. You really should be seeing subsecond response
for simple report that you have described.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Mike Sarbu" <m_sarbu@.yahoo.com> wrote in message
news:uk3iGyo8EHA.2276@.TK2MSFTNGP09.phx.gbl...
> Hi Bruce,
> And thank you for your response.
> The data for my report resides in SQL Server, on the same machine as the
RS.
> The server is a dual P4 Xeon 3.0 GHz with 2 GB of RAM running Windows
2003.
> Only SQL and RS run on this machine, and for now it's a development server
> and no one else besides me touches it.
> After reading your post I have copied the data on my workstation (dual
Xeon
> 2.8GHz, 1GB RAM, Windows XP) and I get the same results. I really don't
> think it's the hardware...
> Mike
>
> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> news:OlnSkbU8EHA.1404@.TK2MSFTNGP11.phx.gbl...
> > This does not seem right. I get a lag if I have not accessed report
server
> > for awhile (or really, if no one has, not just me). I now keep a simple
> > report that I have set to autorefresh every minute so that I don't get
> > this lag. But assuming that is not what you are seeing, then something
> > else is going on. Most of my reports are subsecond to 1 to 2 seconds.
And
> > my 2 second ones are going against 1 - 10 million row tables. The data
> > returned is usually between 50 rows to at the most 2,000 rows. So I can
> > say it would surprise me if you couldn't get this as a subsecond report.
> > In my case I am going against Sybase but I have tested against SQL
Server
> > as well and SQL Server screams compared to Sybase so if anything your
> > performance should be better than what I am seeing.
> >
> > Where does the data for your report reside? Is it on SQL Server on the
> > same server you have RS installed on or is it somewhere else? What is
the
> > server hardware like, how much RAM in particular?
> >
> >
> > --
> > Bruce Loehle-Conger
> > MVP SQL Server Reporting Services
> >
> > "Mike Sarbu" <m_sarbu@.yahoo.com> wrote in message
> > news:uyqYq1T8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> >> Hello,
> >>
> >> I am currently evaluating RS for one of our projects. I have a question
> >> related to performance. I noticed that it takes between 2 and 5 seconds
> >> for a report to get processed. I am talking about a very simple
> >> 'prototype' report, with just a small table (less than 20 rows). I have
> >> profiled the stored procedure that returns the data, it takes less than
> >> 100 ms to run, and RS runs on the same machine as SQL Server. So it's
> >> report generation itself that takes so long. My application is supposed
> >> to deliver on-demand, real-time Web reports, so 5 seconds for a report
is
> >> not quite acceptable (I am currently using a reporting engine that I've
> >> developed over a couple of weeks, and it renders the same report in
less
> >> than 10 ms, but I want something more sophisticated). I am pretty sure
> >> this is some installation/configuration setting that I'm missing. Could
> >> anybody help?
> >>
> >> Thanks a lot,
> >>
> >> Mike
> >>
> >
> >
>|||Could there be some network, firewall, or DNS settings that need to be
resolved? There may be a dependency on something external that is hindering
performance. I know it's all on the same machine, but sometimes even
internal traffic tries to use the network connection.
--
Cheers,
'(' Jeff A. Stucker
\
Business Intelligence
www.criadvantage.com
---
"Mike Sarbu" <m_sarbu@.yahoo.com> wrote in message
news:uk3iGyo8EHA.2276@.TK2MSFTNGP09.phx.gbl...
> Hi Bruce,
> And thank you for your response.
> The data for my report resides in SQL Server, on the same machine as the
> RS. The server is a dual P4 Xeon 3.0 GHz with 2 GB of RAM running Windows
> 2003. Only SQL and RS run on this machine, and for now it's a development
> server and no one else besides me touches it.
> After reading your post I have copied the data on my workstation (dual
> Xeon 2.8GHz, 1GB RAM, Windows XP) and I get the same results. I really
> don't think it's the hardware...
> Mike
>
> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> news:OlnSkbU8EHA.1404@.TK2MSFTNGP11.phx.gbl...
>> This does not seem right. I get a lag if I have not accessed report
>> server for awhile (or really, if no one has, not just me). I now keep a
>> simple report that I have set to autorefresh every minute so that I don't
>> get this lag. But assuming that is not what you are seeing, then
>> something else is going on. Most of my reports are subsecond to 1 to 2
>> seconds. And my 2 second ones are going against 1 - 10 million row
>> tables. The data returned is usually between 50 rows to at the most 2,000
>> rows. So I can say it would surprise me if you couldn't get this as a
>> subsecond report. In my case I am going against Sybase but I have tested
>> against SQL Server as well and SQL Server screams compared to Sybase so
>> if anything your performance should be better than what I am seeing.
>> Where does the data for your report reside? Is it on SQL Server on the
>> same server you have RS installed on or is it somewhere else? What is the
>> server hardware like, how much RAM in particular?
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "Mike Sarbu" <m_sarbu@.yahoo.com> wrote in message
>> news:uyqYq1T8EHA.3828@.TK2MSFTNGP09.phx.gbl...
>> Hello,
>> I am currently evaluating RS for one of our projects. I have a question
>> related to performance. I noticed that it takes between 2 and 5 seconds
>> for a report to get processed. I am talking about a very simple
>> 'prototype' report, with just a small table (less than 20 rows). I have
>> profiled the stored procedure that returns the data, it takes less than
>> 100 ms to run, and RS runs on the same machine as SQL Server. So it's
>> report generation itself that takes so long. My application is supposed
>> to deliver on-demand, real-time Web reports, so 5 seconds for a report
>> is not quite acceptable (I am currently using a reporting engine that
>> I've developed over a couple of weeks, and it renders the same report in
>> less than 10 ms, but I want something more sophisticated). I am pretty
>> sure this is some installation/configuration setting that I'm missing.
>> Could anybody help?
>> Thanks a lot,
>> Mike
>>
>|||I came across this in a blog by a MS RS developer. It mentions a problem
with anti-virus software that can slow things down
http://blogs.msdn.com/tudortr
He mentions a variety of things for performance so I suggest checking it out
but one thing stood out that I wondered might be going on for you:
"Mike Sarbu" <m_sarbu@.yahoo.com> wrote in message
news:uyqYq1T8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I am currently evaluating RS for one of our projects. I have a question
> related to performance. I noticed that it takes between 2 and 5 seconds
for
> a report to get processed. I am talking about a very simple 'prototype'
> report, with just a small table (less than 20 rows). I have profiled the
> stored procedure that returns the data, it takes less than 100 ms to run,
> and RS runs on the same machine as SQL Server. So it's report generation
> itself that takes so long. My application is supposed to deliver
on-demand,
> real-time Web reports, so 5 seconds for a report is not quite acceptable
(I
> am currently using a reporting engine that I've developed over a couple of
> weeks, and it renders the same report in less than 10 ms, but I want
> something more sophisticated). I am pretty sure this is some
> installation/configuration setting that I'm missing. Could anybody help?
> Thanks a lot,
> Mike
>|||I came across some performance info on a blog from a developer. Lots of good
stuff but one thing in particular stood out that I wondered might be
happening to you.
>>>>>>>snip>>>>>>>
If performance is extremely bad even for single users, check the Application
Restarts counter in the ASP.NET category; some antivirus software is known
to "touch" configuration files, thus causing expansive Application Domain
restarts in the report server web service. For more information, search
http://support.microsoft.com/ for articles relating to "antivirus and
ASP.NET".
>>>>>>>snip>>>>>>>
Here is his blog:
http://blogs.msdn.com/tudortr
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Mike Sarbu" <m_sarbu@.yahoo.com> wrote in message
news:uyqYq1T8EHA.3828@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I am currently evaluating RS for one of our projects. I have a question
> related to performance. I noticed that it takes between 2 and 5 seconds
for
> a report to get processed. I am talking about a very simple 'prototype'
> report, with just a small table (less than 20 rows). I have profiled the
> stored procedure that returns the data, it takes less than 100 ms to run,
> and RS runs on the same machine as SQL Server. So it's report generation
> itself that takes so long. My application is supposed to deliver
on-demand,
> real-time Web reports, so 5 seconds for a report is not quite acceptable
(I
> am currently using a reporting engine that I've developed over a couple of
> weeks, and it renders the same report in less than 10 ms, but I want
> something more sophisticated). I am pretty sure this is some
> installation/configuration setting that I'm missing. Could anybody help?
> Thanks a lot,
> Mike
>
Performance
Does it make any difference in performance, if 2 related
tables A & B are placed in filegroups X & Y and both
filegroups residing in same physical disk?
Thanks,
HariHari
It does not make a diffrence in performance .
In order to gain a performance benefit separete them in two diff. PHYSICAL
disks.
"Hari" <anonymous@.discussions.microsoft.com> wrote in message
news:2896901c46404$6824de70$a301280a@.phx.gbl...
> Hi All,
> Does it make any difference in performance, if 2 related
> tables A & B are placed in filegroups X & Y and both
> filegroups residing in same physical disk?
> Thanks,
> Hari
Saturday, February 25, 2012
perfomance related questions
although %processor time doesnt seem to be pegged ( 30%), %disk time is
around 10% and pages/sec is 0. It takes around 10 secs to run everytime on
an average but runs faster on development boxes like around 1 sec. It has
the same exact execution plan on both environments. My question is what else
do i need to look into since it doesnt seem to be hardware bound here. Using
SQL 2000. CPU and reads in trace are also higher than in our dev
environment. but the perfmon for h/w looks decent or atleast not that bad .
Any other counters to look at or suggestionsDo you have the same amount of data on both servers? For example if you
have a cursor that runs through all the records in one table and in the
development database you have only 100 records but in the production server
you have 100000 records, then I'd exepect that the stored procedure would
take longer to run on the production server. Also if you have lots of
users that are working with the database in the production, you might have
locking problems, that slow the execution.
Adi
"Hassan" <fatima_ja@.hotmail.com> wrote in message
news:eY8NNr7YDHA.2524@.TK2MSFTNGP09.phx.gbl...
> Why would a stored procedure take longer to run on an OLTP environment
> although %processor time doesnt seem to be pegged ( 30%), %disk time is
> around 10% and pages/sec is 0. It takes around 10 secs to run everytime on
> an average but runs faster on development boxes like around 1 sec. It has
> the same exact execution plan on both environments. My question is what
else
> do i need to look into since it doesnt seem to be hardware bound here.
Using
> SQL 2000. CPU and reads in trace are also higher than in our dev
> environment. but the perfmon for h/w looks decent or atleast not that bad
.
> Any other counters to look at or suggestions
>
>|||perfmon cpu is the instantaneous cpu usage, profiler cpu
is the cumulative cpu for the query, regardless of how
long it took,
unless a query takes several cpu secs, and the difference
between profiler duration and cpu is not larger, you may
not even notice the cpu in perfmon
>--Original Message--
>Assuming the stored procedure was only selecting , why
would the CPU from
>perfmon do not show it as busy yet consume more time in
CPU in profiler to
>execute the sproc. There is no parallelism. There are
some temp tables
>..There are some nested joins.
>"joe chang" <jchang6@.yahoo.com> wrote in message
>news:000d01c36401$27d19f60$a101280a@.phx.gbl...
>> what specifically are the production and development
>> systems?
>> processor, frequency, cache, #of cpu, memory, # of
disks,
>> status of hyper-threading?
>> what is in the execution plan of your stored proc ?
>> joins - what type, loop, hash, merge, row count for each
>> table, is there a temp table involved? is a parallel
plan
>> involved? if so, disabled HT or try OPTION (MAXDOP 1)
>> sometimes the dev env is JBOD (no raid) the prod env is
>> raid5, with absolutely horrible write performance, so
>> anything that involves writes will performance much
worse
>> on the $40k production system than the $1k dev system
>> >--Original Message--
>> >Why would a stored procedure take longer to run on an
>> OLTP environment
>> >although %processor time doesnt seem to be pegged (
30%),
>> %disk time is
>> >around 10% and pages/sec is 0. It takes around 10 secs
to
>> run everytime on
>> >an average but runs faster on development boxes like
>> around 1 sec. It has
>> >the same exact execution plan on both environments. My
>> question is what else
>> >do i need to look into since it doesnt seem to be
>> hardware bound here. Using
>> >SQL 2000. CPU and reads in trace are also higher than
in
>> our dev
>> >environment. but the perfmon for h/w looks decent or
>> atleast not that bad .
>> >Any other counters to look at or suggestions
>> >
>> >
>> >
>> >.
>> >
>
>.
>
perfmon tools
I want to use perfmon.exe tools provided by win2000 to monitor performance
of SQL server, but it is strange, i cannot find SQL related counter from
drop-down performance object list. it is used to be there, but i can't find
it anymore, does someone know the reason?
I know I probably post this msg on Windows newsgroup, but i use it to
monitor SQL and I do SQL related jobs.
Thanks for your help in advance.
Jack
The following issue may apply to what you are seeing:
FIX: "Performance monitor shared memory setup failed: -1"
error message when you start SQL Server
http://support.microsoft.com/?id=812915
-Sue
On Mon, 6 Dec 2004 16:29:00 +0800, "Jack Hwang"
<jack_hc@.hotmail.com> wrote:
>Hi,
>I want to use perfmon.exe tools provided by win2000 to monitor performance
>of SQL server, but it is strange, i cannot find SQL related counter from
>drop-down performance object list. it is used to be there, but i can't find
>it anymore, does someone know the reason?
>I know I probably post this msg on Windows newsgroup, but i use it to
>monitor SQL and I do SQL related jobs.
>Thanks for your help in advance.
>Jack
>
perfmon tools
I want to use perfmon.exe tools provided by win2000 to monitor performance
of SQL server, but it is strange, i cannot find SQL related counter from
drop-down performance object list. it is used to be there, but i can't find
it anymore, does someone know the reason?
I know I probably post this msg on Windows newsgroup, but i use it to
monitor SQL and I do SQL related jobs.
Thanks for your help in advance.
JackThe following issue may apply to what you are seeing:
FIX: "Performance monitor shared memory setup failed: -1"
error message when you start SQL Server
http://support.microsoft.com/?id=812915
-Sue
On Mon, 6 Dec 2004 16:29:00 +0800, "Jack Hwang"
<jack_hc@.hotmail.com> wrote:
>Hi,
>I want to use perfmon.exe tools provided by win2000 to monitor performance
>of SQL server, but it is strange, i cannot find SQL related counter from
>drop-down performance object list. it is used to be there, but i can't find
>it anymore, does someone know the reason?
>I know I probably post this msg on Windows newsgroup, but i use it to
>monitor SQL and I do SQL related jobs.
>Thanks for your help in advance.
>Jack
>