Re: large SP performance difference between identical servers



On Jan 26, 9:35 pm, Ed Murphy <emurph...@xxxxxxxxxxxx> wrote:
Bob Speaking wrote:
I have 2 sql server installed on 2 identical machines (same cpu, same disk
and ram).
The first is the production database server and the second is for tests and
development.

On development server there is one stored procedure that is extremely slower
than the twin stored procedure on the other machine.
The table referred is the same, same data. (about 20000 records with 1 inner
join).

I've checked out indexes (I've also rebuilt indexes) and sql server
configuration but I don't find any differences.
Why one is faster than the second? (the "good" SP twin takes about 5 seconds
to run..and the second takes about 1 minute)

Where I must focalize my attention? Where can be the problem?
(the development server is more "stressed"...I restore and backup database
very often)

Perhaps the production server has the data already cached in RAM. Try
running the SP on the development server twice in a row - is the second
run a lot faster than the first?- Hide quoted text -

- Show quoted text -

Hi,

Maybe, you could do the following two things

1. running DBCC FREEPROCCACHE
2. running the proc with recompile

and i feel everything will be clear.

Regards,
Sriram

.



Relevant Pages

  • Re: Alocated Memory Error (SQLSERVR)
    ... but my understanding is that the MSDE instances are designed to ... and you don't want it grabbing all that RAM. ... running but non ever going about 200mb of memory usage. ... Server 2000 SP4, ...
    (microsoft.public.windows.server.sbs)
  • Re: High memory usage (*HELP*)
    ... you can use Computer Management MMC to view the server logs. ... a server with 4 GB RAM, I doubt you need the second page file on D. So ... The virtual memory on D: drive is set to: 1550/3075 ... throttled ISA and Monitoring. ...
    (microsoft.public.windows.server.sbs)
  • Re: High memory usage (*HELP*)
    ... I rebooted the server, I should have just restarted the service for report ... a server with 4 GB RAM, I doubt you need the second page file on D. ... The virtual memory on D: drive is set to: 1550/3075 ...
    (microsoft.public.windows.server.sbs)
  • Re: Alocated Memory Error (SQLSERVR)
    ... FWIW I am not using sbs 2003 premium, ... non ever going about 200mb of memory usage. ... on what you should throttle the RAM to. ... Server 2000 SP4, ...
    (microsoft.public.windows.server.sbs)
  • Re: Windows 2000 Server StandardEdition /PAE Question
    ... specifically the SQL Server 2000 Standard Edition on that server. ... His point is that applications can only use up to 2 GB or RAM on ... a process running under Windows 2000 or Windows Server 2003 can ... used) with some of the memory being physical memory and some being virtual ...
    (microsoft.public.win2000.general)

Loading