Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6340841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:54:45+00:00 2026-05-24T19:54:45+00:00

I am having very high CPU spikes on mysqld process (greater than 100%, and

  • 0

I am having very high CPU spikes on mysqld process (greater than 100%, and even saw a 300% at one point). My load average is around: .25, .34, .28.

I read this great post about this issue: MySQL high CPU usage

One of the main things to do is disable persistent connections. So I checked my php.ini and mysql.allow_persistent = on and mysql.max_persistent = -1 — which means no limit.

This raises a few questions for me before changing anything just to be sure:

  1. If my mysqld process is spiking over 100% every couple seconds shouldn’t my load average be higher then they are?
  2. What will disabling persistent links do – will my scripts continue to function as is?
  3. If I turn this off and reload php what does this mean for my current users as there will be many active users.

EDIT:

CPU Info: Core2Quad q9400 2.6 Ghz

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:54:46+00:00Added an answer on May 24, 2026 at 7:54 pm

    Persistent connections won’t use any CPU by themselves – if nothing’s using a connection, it’s just sitting idle and only consumes a bit of memory and occupies a socket.

    Load averages are just that – averages. If you have a process that alternates between 0% and 100% 10 times a second, you’d get a load average of 0.5. They’re good for figuring out long-term persistent high cpu, but by their nature hide/obliterate signs of spikes.

    Persistent connections with mysql are usually not needed. MySQL has a relatively fast connection protocol and any time savings from using persistent connections is fairly minimal. The downside is that once a connection goes persistent, it can be left in an inconsistent state. e.g. If an app using the connection dies unexpectedly, MySQL will not see that and start cleaning up. This means that any server-side variables created by the app, any locks, any transactions, etc… will be left at the state they were in when the app crashed.

    When the connection gets re-used by another app, you’ll start out with what amounts to dirty dishes in the sink and an unflushed toilet. It can quite easily cause deadlocks because of the dangling transactions/locks – the new app won’t know about them, and the old app is no longer around to relinquish those.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My server is having unusually high CPU usage, and I can see Apache is
I having a very weird problem for my asp project. My project can run
Im having a very strange problem, i have a complicated view that returns incorrect
Im having a very odd problem. Im trying to install a Python program. Im
Im having a very sneaky issue in Xcode and its Log Navigator. I've recreated
I'm having a very simple problem. I'm new to WordPress and I'm trying to
I'm having a very big struct in an existing program. This struct includes a
I'm having a very confusing error between SharePoint and SQL Server 2k5. My SQL
I'm having a very strange issue with Python's subprocess.Popen. I'm using it to call
I am having a very strange problem with pound signs displaying incorrectly (or not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.