Questions tagged [cpu]
The cpu tag has no usage guidance.
116
questions
0
votes
1
answer
30
views
cpulimit/iolimit per mysql/mariadb user
I can set cpulimit, iolimit, etc for mysql process by moving its pid into cgroup.procs file of a cgroup.
But single mysql process handles all the queries(threads) and I cant set cpulimit to the entire ...
-1
votes
1
answer
59
views
+50
Huge PREEMPTIVE_OS_GETPROCADDRESS Waits From sp_OAMethod. How to debug?
Some queries are hitting my CPU extremely hard. sp_WhoIsActive reports that sp_OAMethod is the cause (the sql_text column points to it) and that it has of huge waits of the ...
0
votes
0
answers
32
views
How to monitor Postgres workers' utilization?
I have a client who has a legacy application using a Postgres DB. They have SEVERE performance issues, so they figured it might be a good idea to scale their DB server to the GCP's max. Performance ...
0
votes
1
answer
72
views
How do I identify what appears to be a CPU bottleneck within SQL Sever?
I have virtual machines on two different types of hosts (vmware).
Host type A has CPUs with a clock speed of 2.09GHz
Host type B has CPUs with a clock speed of 2.69GHz
All other resources are the same ...
1
vote
2
answers
67
views
When can we downsize Azure Virtual machine for SQL Server?
For now our production SQL Server is Standard_D96ds_v5 Azure VM machine.
We got request to check if we can downsize server to Standard_D48ds_v5.
What measures will take into consideration to have ...
1
vote
3
answers
159
views
Sudden spike in BinLogDiskUsage
Two days ago our MySQL RDS instance saw a sudden spike in BinLogDiskUsage, CPUUtilization, NetworkReceiveThroughput and NetworkTransmitThroughput.
The result was a database that was extremely slow to ...
0
votes
1
answer
32
views
Slow select queries but CPU usage always less than 1%
We recently moved to a bigger server (64G, 16core Amazon EC2) and I was hoping some increased performance.
However, there are plenty of slow queries (some even 50ms) but CPU usage remains very very ...
0
votes
1
answer
373
views
How to Check if SQL Server is Running Out of Memory or CPU Resources RIGHT NOW?
I recently noticed an error message in my SQL Server error log that said "The query processor ran out of internal resources and could not produce a query plan." I suspect that my server ...
-1
votes
1
answer
108
views
Threads_running is always one Mariadb 10.5
Maria DB which is installed on linux server, always shows the Threads_running one , while we have 4 core of cpu .We changed thread_handling to pool of threads , but still no result , while we have ...
0
votes
1
answer
405
views
MySQL | Measure overall query cost (performance, cpu usage, memory usage)
The Problem
You have a MySQL query, let's say a SELECT and you need to identify its overall cost in all aspect (Host Resource Usage, Query speed / performance ...) so that your result can be ...
2
votes
0
answers
895
views
MS SQL Server 2022 High CPU Usage Spikes Every Minute under no Load (Dual Processor)
Brand new MS SQL Server Standard 2022 Installation on a Dual Xeon 3416 system doing nothing and configured to do nothing fancy.
Every minute, on the minute for about 6 seconds there is a massive CPU ...
1
vote
1
answer
248
views
high CPU with high user connection, mysql database
I use a VPS with 56 CPU cores and 64 GB of memory, a with MySQL database, but the CPU usage is always high for my apps - user 10.000.
This is in my mysqld.cnf. What's wrong with my settings?
...
2
votes
2
answers
412
views
SQL Server - performance for certain partition is slow until restart
On production environment, randomly having strange issue.
There are tables with days as partition (1,2..31). There is only last 5 day data in tables, there are also tables which doesn't have ...
2
votes
0
answers
371
views
SQL Server 2019 CPU spikes with no usage
We've configured two SQL Server 2019 VM one it's primary and other secondary, both take part in an Availability Group.
The primary node have CPU spikes every 30 min and there isn't any job, heavy ...
0
votes
2
answers
727
views
Is there any way to find out if SQL Server is using all of CPU cores? [duplicate]
I have SQL server licensed to 16 cores only i have 48 core CPU.
Is there any way to know that SQL is reaching or utilizing its peak 16 cores limit all time? any way to find it out? as i am having ...
0
votes
1
answer
507
views
How to limit CPU by Db2 instance?
On Linux/x86_64 I have several Db2 database instances and most of them have one database per instance.
Today I have had one "run away instance" that consumed most of the CPU resources of ...
0
votes
1
answer
221
views
How does SQL Server's Performance Dashboard categorize a query as "ad-hoc" or otherwise?
I'm looking at the CPU usage in sql server's server performance dashboard report.
I have 10 dbs on the server.
So the pie chart shows me 85% for adhoc queries. Whereas only 15% is split amongst all ...
2
votes
2
answers
185
views
Is it possible to query total CPU load on system that is hosting SQL Server 2014+ Express?
I can get the available memory by querying the [master].[sys].[dm_os_sys_memory] view, but I haven't found anything similar for getting info about the CPU load.
I only find info about querying CPU ...
0
votes
0
answers
74
views
SQL Server - Measuring impact of CTFP change....at server level
I have a SQL Server 2017 server and CTFP has been set to 5 since it was set up. I'm considering changing it.
I'm comfortable in monitoring the impact of this change at the individual query level - ...
-1
votes
2
answers
257
views
How to estimate cpu based on peak rate of query requests?
By default, SQL Server allows a maximum of 32767 concurrent
connections which is the maximum number of users that can
simultaneously log in to the SQL server instance.
I am developing 10 web apis ...
0
votes
1
answer
72
views
How would %privilege time of sqlsvr instance indicate cpu consumption of other processes?
I am looking at msdn doc to monitor cpu.
Link: https://learn.microsoft.com/en-us/troubleshoot/sql/performance/troubleshoot-high-cpu-usage-issues#step-1-verify-that-sql-server-is-causing-high-cpu-usage
...
0
votes
0
answers
174
views
SQL 2019 Std Edition high recompilation and CPU spike [closed]
I am having an issue in SQL 2019 Std edition where I am seeing high compilation across multiple stored procedure. The reason for the recompilation as per the extended event trace is 'temp table ...
0
votes
2
answers
332
views
How to get IP addresses of applications that have consumed most CPU in last 10 minutes in Db2/Linux?
Db2 v11.1 on Linux I would like to get top 5 SQL statements that consumed the most CPU in last 10 minutes and there corresponding IP addresses.
I queried "package cache" table function and I ...
2
votes
1
answer
605
views
MySQL 5.7.37 is consuming CPU and High memory ( 90-95% )
I have a problem with my MySQL database.
RAM usage is too high, CPU too.
Does it come from my configuration ?
Here's my configuration :
auto_generate_certs ON
auto_increment_increment 1
...
0
votes
1
answer
187
views
understanding Azure Sql Databse Billed VCores
trying to migrate from sql server on-prem to azure sql database and i cant understand Duration and CPU Used and Memory Used of Billed vCores
0
votes
0
answers
263
views
SQL Server Connection Reset/sec
I am trying to determine if Connection pooling resets is causing my high cpu. I have a server with 2000 batch/sec which doesn't seem terribly high yet I have 64 CPU at 40% or greater most of the time....
0
votes
1
answer
121
views
Can set command cause more CPU usage?
Im running AWS aurora 5.7. The application stack is PHP. After moving to Aurora, I noticed that the CPU consumption is really high. When I checked the performance insights, its showing the SET command ...
2
votes
2
answers
642
views
CPU near 100% but exec sp_who2 doesn't return anything RUNNABLE
I have seen a Microsoft SQL Server with CPU stuck near 100% (RAM was using 20GB of 32GB). Task Manager showed that the SQL Server process was using the most of the CPU.
The strange thing is exec ...
-1
votes
2
answers
1k
views
Amazon RDS MySQL high CPU issues
I am hoping for a bit of help or direction on how best to troubleshoot this issue. We have recently increased our application load (more processes interacting with the DB) and the DB CPU is constantly ...
0
votes
0
answers
167
views
MSSQL Server Resource Governance alternative
I've been looking into solutions for managing CPU sharing over multiple apps accessing the same SQL server database engine.I found that Resource Governance is one perfect way for me to define those ...
1
vote
0
answers
764
views
high CPU usage of MySQL and recommendation from Mysqltunner [closed]
we have noticed that our database server is getting so high CPU (more than 90 % used by mysqld process), the output of mysqltunner is shown below, can you help me please,
i'm okay about the ...
0
votes
1
answer
3k
views
Almost 100% CPU Postgresql
When I restart Postgresql 11, the CPU shows basically no CPU usage. But after a while the CPU is occupied by "kdevtmpfsi". What is this and how can I fix this?
1275 postgres 99.8 % /...
3
votes
1
answer
24k
views
Mysql showing 100% CPU usage
We are facing problem of high cpu usage for mysql process (almost 100%). Here is the information related to server
Server Infos:
VPS - CENTOS 7.9 kvm - 6 GB RAM - 4 Core CPU - 180 GB SSD - MariaDB
And ...
1
vote
1
answer
266
views
signal_wait_time_ms > wait_time_ms for SOS_SCHEDULER_YIELD in sys.dm_os_wait_stats
Question regarding SOS_SCHEDULER_YIELD when using sys.dm_os_wait_stats:
Should signal_wait_time_ms not be exactly the same as wait_time_ms for the SOS_SCHEDULER_YIELD wait type?
For other wait types ...
0
votes
1
answer
384
views
How to get host server CPU info from SSMS [duplicate]
Help please!
I need to get number of CPU's and cores per cpu for each host server running SQL Server. Querying master.sys.dm_os_sys_info is not producing the same result as what is seen when checked ...
0
votes
0
answers
251
views
CPU Spike 150% on postgresql Google Cloud SQL
I get random spikes running to 150% and it settles down in 2 mins
We have a postgres 9.6 database with 2TB data. Running on 48 cores and 180GB Ram
I have checked database logs,
I have set up cron job ...
0
votes
1
answer
464
views
While testing our workload on SQL Server 2019 we experience much higher CPU utilization compare to the same test on SQL Server 2014
We are getting ready to upgrade our SQL Server 2014 systems to SQL Server 2019. As part of our due diligence we created a workload which we are testing against both systems. What we have observed was ...
2
votes
1
answer
88
views
Do SQL OS Background Tasks Yield to Normal Tasks?
I have a SQL Server 2019 server that is running at about 22% CPU. I look at what's running and I see that about half of that 22% is coming from background tasks (i.e. the status is "background&...
3
votes
1
answer
730
views
SQL Server High CPU usage and RESOURCE_SEMAPHORE waits
Last week had an issue on one of SQL Servers, CPU started burning over 80 % (normal is 10-30 %)
This lasted for about 2 hours until I manually failed over to secondary replica in AG (and this has ...
1
vote
2
answers
230
views
Unable to understand correlation between MaxWorkers created and CPU utilization
I am having a strange issue which i am unable to understand:
On my server with 64 Logical processors having maxworkers 1472, there are peak periods in day where workers created for an hour lets say ...
2
votes
1
answer
575
views
SQL Server 2019 running 100% on only 1-2 cores with MAXDOP 8 to 14
Here is the background on this issue.
I am inserting slightly over 1 million records into a table from within a C++ program using ADO. One row at a time is read in from flat file and converted info a ...
2
votes
2
answers
1k
views
High CPU and plan cache instability
In the past couple of months my SQL Server instance has been experiencing higher than usual CPU usage than before, at times hitting 100% and affecting an application.
There have been no recent changes ...
0
votes
1
answer
496
views
High CPU for SQL server running on VmWare
I am trying to understand the below behavior for one of our SQL server running on VM.
SQL Server version 2017 has 64vCores and Host has 96 cores with base speed 2.1 GHZ
Based on the article from https:...
0
votes
1
answer
64
views
Understanding the load running on my SQL server
We have a project this year to move lot of physical SQL Servers, starting with medium critical servers onto Virtual machines.
Generally on physical boxes we have a large count of logical processors, ...
3
votes
2
answers
2k
views
SQL Server Socket/CPU Configuration [closed]
In your opinion what is the best configuration for optimal SQL Server performance in regards to virtual guest Socket/CPU configuration? I've read numerous articles stating wide socket configuration (1 ...
1
vote
2
answers
651
views
CPU High usage crashing our server
The server where my database is running is suffering from CPU spikes. We're having trouble identifying what is causing these CPU spikes, and consequently how to mitigate them.
I've tried adding some ...
1
vote
1
answer
214
views
How can I provision more CPU from VMware when MAXDOP is set to 1?
We have a BizTalk Server group hosted over seven servers, all hosted in VMware. This group comprises four BizTalk application servers and three SQL Server instances.
As per Microsoft's out of the box ...
2
votes
1
answer
1k
views
CPU for SQL Server
We want to buy a new server for SQL server,
We have around 10 DB, and heavy jobs every 10 minutes to process millions of records,
Also, we have around 20 end users,
We want to know what is the best ...
2
votes
1
answer
2k
views
I have 600% high CPU usage mysqld
I have an insane usage of cpu mysqld +600% here is the file my cnf
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an ...
1
vote
1
answer
252
views
MySQL shows CPU usage over 40% though total CPU usage is less than 30% as per TOP - How to debug this issue?
Not sure if I am reading this incorrectly. In the below screenshot of TOP command, it shows that mysql process CPU usage is 41.2% but at the 4 core CPU shows a total of 26% usage.
is MYSQL not ...