Showing posts with label via. Show all posts
Showing posts with label via. Show all posts

Monday, March 26, 2012

Performance questions

We have a production database that sits on a 4 proc server with 4 GB of memory and SAN disk storage via fiber. There are some stored procedures that run and they take approximately 10 minutes to run. A developer has SQL Server installed on his local pc that has 1 2.5 GHz processor and 2 GB of memory and the stored procedures run in approximately 2 minutes. I have updated statistics and rebuilt indexes to no avail. He is questioning why it runs so much faster on his smaller pc compared to the production environment. I have monitored CPU, Memory, and Disk Queue Length and none of these performance counters look concerning to me while the stored procedures are running.

Can anyone out there give me some input on what I could check to figure out why we are experiencing this performance difference?

Thanks,

Corey

Do both databases have the same volume of data? You did not mention what speed and type of processors were in the server. If it is an older server, with say, 1GHz Pentium 3 based Xeon CPU's, you could easily see much slower query performance than on a developer's workstation, with a single faster CPU.

You should also look at the graphical execution plan for the query on the server, and see whether or not the plan is being parallelized or not. BTW, what version of SQL Server are you running?

|||

The data is the same between the two environments. His pc has a 2.5 GHz Intel processor and our server has 4 2.7 GHz Intel processors. We are running SQL Server 2000 SP3a. I will try to look at the queries but their are hundreds. Should the query plan be the same since I ran update statistics, rebuild indexes, and then the process so that I was comparing as each as close as possible.

|||

Just pick two or three commonly executed queries and run them in Query Analyzer with the graphical execution plan turned on and with SET STATISTICS IO on (just run that statement before you run the queries).

Do you see similar query plans and I/O statistics between the developer's workstation and your server?

Are we comparing a developer's workstation with no load with a production server with a full-work load?

If so, I would start looking at the production server to see if you see signs of CPU pressure, memory pressure, I/O bottlenecks, etc.

|||

I will try to get a couple of queries and compare them as suggested.

The developer's workstation has no load and the production server does have other work going on but this server does have plenty of resources left and it is a much larger box than the developer's workstation. I will go ahead and grab some perfmon counters to verify this too.

sql

Monday, February 20, 2012

performance monitor not able to connect

Hi ,
I have set up SQL server 2000 on this machine COM_A and i am trying to
monitor the performance of the server via performance monitor on my desktop(
i have got MSDE2000 installed locally on my machine)
however, when i enter the server name \\COM_A or it's ip addr to get the
counters from the server it says "Unable to connect to machine"
could anyone advise ?
tks & rdgs
Can you connect though Query Analyzer or OSQL to COM_A?
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
news:7EF07AD4-D19B-4A9E-9DC7-4AFADFA0881A@.microsoft.com...
> Hi ,
> I have set up SQL server 2000 on this machine COM_A and i am trying to
> monitor the performance of the server via performance monitor on my
> desktop(
> i have got MSDE2000 installed locally on my machine)
> however, when i enter the server name \\COM_A or it's ip addr to get the
> counters from the server it says "Unable to connect to machine"
> could anyone advise ?
> tks & rdgs
|||Hi Mike ,
I can access COM_A via Query Analyzer
rdgs
"Mike Epprecht (SQL MVP)" wrote:

> Can you connect though Query Analyzer or OSQL to COM_A?
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> news:7EF07AD4-D19B-4A9E-9DC7-4AFADFA0881A@.microsoft.com...
>
>
|||Hi
You may want to check out
http://support.microsoft.com/default...b;en-us;300702
John
"maxzsim" wrote:
[vbcol=seagreen]
> Hi Mike ,
> I can access COM_A via Query Analyzer
> rdgs
> "Mike Epprecht (SQL MVP)" wrote:
|||tks John , i got it
cheers
"John Bell" wrote:
[vbcol=seagreen]
> Hi
> You may want to check out
> http://support.microsoft.com/default...b;en-us;300702
> John
> "maxzsim" wrote:

performance monitor not able to connect

Hi ,
I have set up SQL server 2000 on this machine COM_A and i am trying to
monitor the performance of the server via performance monitor on my desktop(
i have got MSDE2000 installed locally on my machine)
however, when i enter the server name \\COM_A or it's ip addr to get the
counters from the server it says "Unable to connect to machine"
could anyone advise ?
tks & rdgsCan you connect though Query Analyzer or OSQL to COM_A?
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
news:7EF07AD4-D19B-4A9E-9DC7-4AFADFA0881A@.microsoft.com...
> Hi ,
> I have set up SQL server 2000 on this machine COM_A and i am trying to
> monitor the performance of the server via performance monitor on my
> desktop(
> i have got MSDE2000 installed locally on my machine)
> however, when i enter the server name \\COM_A or it's ip addr to get the
> counters from the server it says "Unable to connect to machine"
> could anyone advise ?
> tks & rdgs|||Hi Mike ,
I can access COM_A via Query Analyzer
rdgs
"Mike Epprecht (SQL MVP)" wrote:

> Can you connect though Query Analyzer or OSQL to COM_A?
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> news:7EF07AD4-D19B-4A9E-9DC7-4AFADFA0881A@.microsoft.com...
>
>|||Hi
You may want to check out
http://support.microsoft.com/defaul...kb;en-us;300702
John
"maxzsim" wrote:
[vbcol=seagreen]
> Hi Mike ,
> I can access COM_A via Query Analyzer
> rdgs
> "Mike Epprecht (SQL MVP)" wrote:
>|||tks John , i got it
cheers
"John Bell" wrote:
[vbcol=seagreen]
> Hi
> You may want to check out
> http://support.microsoft.com/defaul...kb;en-us;300702
> John
> "maxzsim" wrote:
>

performance monitor not able to connect

Hi ,
I have set up SQL server 2000 on this machine COM_A and i am trying to
monitor the performance of the server via performance monitor on my desktop(
i have got MSDE2000 installed locally on my machine)
however, when i enter the server name \\COM_A or it's ip addr to get the
counters from the server it says "Unable to connect to machine"
could anyone advise ?
tks & rdgsCan you connect though Query Analyzer or OSQL to COM_A?
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
news:7EF07AD4-D19B-4A9E-9DC7-4AFADFA0881A@.microsoft.com...
> Hi ,
> I have set up SQL server 2000 on this machine COM_A and i am trying to
> monitor the performance of the server via performance monitor on my
> desktop(
> i have got MSDE2000 installed locally on my machine)
> however, when i enter the server name \\COM_A or it's ip addr to get the
> counters from the server it says "Unable to connect to machine"
> could anyone advise ?
> tks & rdgs|||Hi Mike ,
I can access COM_A via Query Analyzer
rdgs
"Mike Epprecht (SQL MVP)" wrote:
> Can you connect though Query Analyzer or OSQL to COM_A?
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> news:7EF07AD4-D19B-4A9E-9DC7-4AFADFA0881A@.microsoft.com...
> > Hi ,
> >
> > I have set up SQL server 2000 on this machine COM_A and i am trying to
> > monitor the performance of the server via performance monitor on my
> > desktop(
> > i have got MSDE2000 installed locally on my machine)
> > however, when i enter the server name \\COM_A or it's ip addr to get the
> > counters from the server it says "Unable to connect to machine"
> >
> > could anyone advise ?
> >
> > tks & rdgs
>
>|||Hi
You may want to check out
http://support.microsoft.com/default.aspx?scid=kb;en-us;300702
John
"maxzsim" wrote:
> Hi Mike ,
> I can access COM_A via Query Analyzer
> rdgs
> "Mike Epprecht (SQL MVP)" wrote:
> > Can you connect though Query Analyzer or OSQL to COM_A?
> >
> > Regards
> > --
> > Mike Epprecht, Microsoft SQL Server MVP
> > Zurich, Switzerland
> >
> > IM: mike@.epprecht.net
> >
> > MVP Program: http://www.microsoft.com/mvp
> >
> > Blog: http://www.msmvps.com/epprecht/
> >
> > "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> > news:7EF07AD4-D19B-4A9E-9DC7-4AFADFA0881A@.microsoft.com...
> > > Hi ,
> > >
> > > I have set up SQL server 2000 on this machine COM_A and i am trying to
> > > monitor the performance of the server via performance monitor on my
> > > desktop(
> > > i have got MSDE2000 installed locally on my machine)
> > > however, when i enter the server name \\COM_A or it's ip addr to get the
> > > counters from the server it says "Unable to connect to machine"
> > >
> > > could anyone advise ?
> > >
> > > tks & rdgs
> >
> >
> >|||tks John , i got it
cheers
"John Bell" wrote:
> Hi
> You may want to check out
> http://support.microsoft.com/default.aspx?scid=kb;en-us;300702
> John
> "maxzsim" wrote:
> > Hi Mike ,
> >
> > I can access COM_A via Query Analyzer
> >
> > rdgs
> >
> > "Mike Epprecht (SQL MVP)" wrote:
> >
> > > Can you connect though Query Analyzer or OSQL to COM_A?
> > >
> > > Regards
> > > --
> > > Mike Epprecht, Microsoft SQL Server MVP
> > > Zurich, Switzerland
> > >
> > > IM: mike@.epprecht.net
> > >
> > > MVP Program: http://www.microsoft.com/mvp
> > >
> > > Blog: http://www.msmvps.com/epprecht/
> > >
> > > "maxzsim" <maxzsim@.discussions.microsoft.com> wrote in message
> > > news:7EF07AD4-D19B-4A9E-9DC7-4AFADFA0881A@.microsoft.com...
> > > > Hi ,
> > > >
> > > > I have set up SQL server 2000 on this machine COM_A and i am trying to
> > > > monitor the performance of the server via performance monitor on my
> > > > desktop(
> > > > i have got MSDE2000 installed locally on my machine)
> > > > however, when i enter the server name \\COM_A or it's ip addr to get the
> > > > counters from the server it says "Unable to connect to machine"
> > > >
> > > > could anyone advise ?
> > > >
> > > > tks & rdgs
> > >
> > >
> > >