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

  • SEARCH
  • Home
  • 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 428037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:38:09+00:00 2026-05-12T19:38:09+00:00

first of all, my main question: What are some good troubleshooting techniques when you

  • 0

first of all, my main question:

What are some good troubleshooting techniques when you run into a variable problem regarding slow database access.

Background:
I have a system that is handling multiple db connections so that I may use unbuffered queries on the main table select. I have an issue where I see a pause on a very simple query (select id,name,title,etc from working where non-unique-indexed-id limit 1) the system then either inserts if no record found or overwrites as an update.

I am seeing multi second pauses on these queries with no pauses on processing the same query in between.

Indexes, could be getting corrupt or taking too long to update (char(13)), unbuffered or buffered makes little difference on this point query.

This is happening on multiple tables (they are built and thrown away after a run has processed them, there is around 30 different copies that have slightly different processes involved but the data stored is the same) at different times on different consecutive runs, time intervals on the wait is differing too.

Also, I am looking at the mysql processlist and not seeing this query waiting, this is making me believe its a transfer issue between php cli and mysql (same box)

Sorry if this makes little sense – my brain is absolutely fried and exhausted right now.

Has anyone come across anything like this before, if so, how did you track down the root cause?

  • 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-12T19:38:09+00:00Added an answer on May 12, 2026 at 7:38 pm

    I only recently noticed that mytop will poll at sub-second intervals, which can be rather revealing.

    To me this sounds merely like table locking on MyISAM engine tables. You don’t mention what engine your tables are running, though. Also what is your insert/update/select ratio? If you have a high rate of updates, using MySQLs query cache might be little little improvement.

    What does an EXPLAIN tell you about the more expensive queries? You might need to adjust the way you’ve designed your indexes, or re-order your where clause in your query. If EXPLAIN gives you a full table scan or very high row count, you’re probably not using your indexes as best you can.

    Can you explain more about your non-unique-indexed-id? A SHOW CREATE TABLE might be helpful.

    EDIT

    If you’ve reduced your buffer size and seen improvement, that tells me that the time it takes to allocate memory in your case could be significant. If query performance is under 1 second, I would start to examine system performance, especially memory. I suggest starting with top, sorting by memory, and displaying swap space and number of page faults. Or running vmstat, and keep an eye out for swap activity. If you see high wait times, you might be waiting on disk throughput. (A switch to innodb without a performance change is interesting. If you were low on ram, I would think that a low memory situation would expose itself more rapidly.)

    Is this a web application? If so, is there a correlation between the number of connections/threads, httpd connections and query latency? I’ve seen php baloon apache processes from 35MB to 512MB and larger, and subsequently the machine would grind into swap-land.

    There is a possibility that you have a hardware issue, too. It’s always worth the time to check dmesg to see if there are any kernel reports of memory or disk problems. Is there something else running on the system? Would you have any cron jobs that might be competing for disk or memory?

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

Sidebar

Related Questions

first of all some details: I configured security as below in web.xml view plaincopy
First of all there is probably a question like this already but i couldn't
First of all, apologize because I have seen some posts about this, but I
First of all, Merry Christmas to everyone! Now to my question: Let's say I
OK! First of all this question comes from a man who digs too deep
First of all, this isn't for a keylogger, it's for an input in a
First of all, I'm quite new to the Android and JAVA world (coming from
first of all i would like to say i know its probably an easy
First of all I want to mention two things, One: My code isn't perfect
First of all I've gone through dozens of posting here on SO and google

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.