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 6743057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:54:59+00:00 2026-05-26T11:54:59+00:00

I have a strange problem. I’m running a MySQL query against a very large

  • 0

I have a strange problem. I’m running a MySQL query against a very large table from PHP. The query time is over a minute, but that’s not my problem. It looks like PHP is resending the query every 66 seconds.

show processlist;
+--------+---------+-------------------+----------+---------+------+---------------+--------------------------------------------------------
| Id     | User    | Host              | db       | Command | Time | State         | Info                                                   
+--------+---------+-------------------+----------+---------+------+---------------+--------------------------------------------------------
| 150018 | root    | localhost         | amrs     | Query   |   32 | Sending data  | /*DEREK*/select ctlno, count(*) AS count from (omitted)

A few minutes later, I checked again:

+--------+---------+-------------------+----------+---------+------+---------------+--------------------------------------------------------
| Id     | User    | Host              | db       | Command | Time | State         | Info                                                   
+--------+---------+-------------------+----------+---------+------+---------------+--------------------------------------------------------
| 150018 | root    | localhost         | amrs     | Query   |  188 | Sending data  | /*DEREK*/select ctlno, count(*) AS count from (omitted)
| 150021 | root    | localhost         | amrs     | Query   |  122 | Sending data  | /*DEREK*/select ctlno, count(*) AS count from (omitted)
| 150023 | root    | localhost         | amrs     | Query   |   56 | Sending data  | /*DEREK*/select ctlno, count(*) AS count from (omitted)

I have not reloaded the page or anything. set_time_limit(0) is called near the beginning of the script. The annoying part is, the page seems to be linked to the most recently run one. So if I kill 150018, nothing bad happens, but if I kill 150023 before another one is spawned, the page comes up with a “Query execution interrupted” error. 150018 will eventually finish running on its own but it doesn’t do any good because the script/page won’t receive it.

Anyone have any ideas?

EDIT: show full processlist gives the following (with some lines removed for brevity and confidentiality):

+--------+---------+-------------------+----------+---------+-------+--------------+-----------------------------------------------------
| Id     | User    | Host              | db       | Command | Time  | State        | Info 
+--------+---------+-------------------+----------+---------+-------+--------------+-----------------------------------------------------
| 147385 | root    | localhost:44560   | amrs     | Sleep   | 14021 |              | NULL
| 150248 | root    | localhost         | NULL     | Query   |     0 | NULL         | show full processlist
| 150251 | root    | localhost         | amrs     | Query   |     1 | statistics   | /*DEREK*/select ctlno, count(*) AS count from (snip)
+--------+---------+-------------------+----------+---------+-------+--------------+-----------------------------------------------------
  • 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-26T11:54:59+00:00Added an answer on May 26, 2026 at 11:54 am

    I have seen a similar problem a few times before, and your problems sound very similar to what I was experiencing working with a previous web site.

    Are you going through a proxy server when going to the web site?

    What was happening with my site, was that the queries from a particular set of users within the same company were being directed through their proxy server, which was deciding for itself that if no response was received within 60 seconds, then it would just issue the web request again, without informing the client browser that this was happening!

    So, with certain long running queries taking over a minute to execute, I’d see the queries start to compound on each other, and I’d end up looking at a process-list with loads of identical queries running, each separated by almost exactly 60 seconds!

    The resolution to this was to get the client to by-pass their proxy server for our site.

    A second instance of this exact same problem was resolved when the client upgraded their proxy server to the latest version.

    I’m sorry, but I can’t remember what proxy server was in use in either case, as it was quite a few months ago, and I have slept since then :-/

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

Sidebar

Related Questions

We have very strange problem, one of our applications is continually querying server by
I have very strange problem specific to IE (confirmed in v8 and v9). When
I have strange problem on my pc/server. I run query such as Select field1,
I have a strange problem. I have created a simple function to convert from
I have a strange problem with a method is called each time a button
I have a strange problem with opencv running on an Ubuntu. I installed OpenCV
I have some strange problem with PIL not resizing the image. from PIL import
I have a strange problem where a for loop in PHP only returns the
I have a strange problem while trying to start JBoss from Eclipse. After starting,
I have a strange problem. I read text from a text file replace all

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.