Salta al contenuto

EC2 -SQL Server Slowness

0

We recently migrated our on prem SQL server 2008 R2(8 CPU 16 GB RAM) to EC2 (r5.4xlarge - 16 CPU 128 GB RAM) 2019. The server is very slow, all the queries are slow. We can see CX_PACKET wait being more and PAGELACTCH_SH.

CE is set to LEGACY and Compatibility set to 2008.

Please advice.

posta 2 anni fa978 visualizzazioni

3 Risposte
1

@riku - No we don't have any difference. the settings are identical.

con risposta 2 anni fa

0

Hello.

What is the CPU usage rate and memory usage rate of EC2?
I think the database may use a large amount of memory depending on the processing.
Is it possible that that is slowing down the queries?

I think the following blog will be helpful for tuning.
https://www.sqlshack.com/troubleshooting-the-cxpacket-wait-type-in-sql-server/

Also, what type of EBS are you using?
If you are using gp2, try using a volume type with high iops performance such as gp3 or io2 to see if the query speed improves.
https://docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html
https://docs.aws.amazon.com/ebs/latest/userguide/provisioned-iops.html

ESPERTO

con risposta 2 anni fa

ESPERTO

verificato 2 anni fa

  • Are there any differences in parameters between SQL Server on-premises and EC2?

0

Hi Thanks for your response. CPU is below 20% and Memory i have allocated to SQL Server 100 GB. We run on GP3 4k IOPS and 1k Throughput. Im testing the server with one query at a time. The query completes faster in the onprem version but its slow in EC2.

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.