List:General Discussion« Previous MessageNext Message »
From:Michael Dykman Date:July 12 2010 4:04pm
Subject:Re: finding exact query being run
View as plain text  
What are they running on those web servers?  PHP?  if so, which is of the
several PHP interfaces to MySQL are they using? (Zend Enterprise does some
smart connection pooling).  Java-based applications tend to use connection
polling more often than not.

You should find out to determine if those sleeping connections are a good
sign or a bad one.

On Mon, Jul 12, 2010 at 11:51 AM, machiel.richards <
machiel.richards@stripped> wrote:

>  mmm... I am not sure about the connection pooling... Fairly new to the
> site.
>
>
>
> What I do know is that they run a couple of web servers that connect to the
> MySQL database and are currently experiencing some performance and
> connection problems.
>
>
>
> There are a lot of processes that have been running for more than 25000
> seconds and all of them seem to be coming from the web server / host.
>
>
>
> I am trying to find out whether this can be the cause of the problem and if
> o if we can simply kill these processes.
>
>
>
>
>
>
>
> *Machiel Richards*
>
> [image: herbalife_logo]
>
>
>
> *From:* Michael Dykman [mailto:mdykman@stripped]
> *Sent:* 12 July 2010 5:47 PM
>
> *To:* Machiel Richards
> *Cc:* mysql@stripped
> *Subject:* Re: finding exact query being run
>
>
>
> Am I correct in assuming that your application does connection pooling?  If
> so, then these long lasting, idle threads are normal.
>
>
>
> If there is no connection pooling, then this might be a symptom of a
> problem with your application server not letting go of processes properly.
>
>
>
>  - md
>
> On Mon, Jul 12, 2010 at 11:44 AM, Machiel Richards <machielr@stripped>
> wrote:
>
> I had a look and all of these just say sleep as the command.
>
>
>
> Machiel Richards
>
> MySQL DBA
>
> Relational Database Consulting
>
>
>
> [image: RDC_Logo]
>
>
>
> *From:* Michael Dykman [mailto:mdykman@stripped]
> *Sent:* 12 July 2010 5:43 PM
> *To:* Machiel Richards
> *Cc:* mysql@stripped
> *Subject:* Re: finding exact query being run
>
>
>
> SHOW FULL RPOCESSLIST
>
>
>
> will show you the full text of the running queries.
>
>
>  - md
>
>
>
> On Mon, Jul 12, 2010 at 11:39 AM, Machiel Richards <machielr@stripped>
> wrote:
>
> Hi All
>
>
>
>                 I am trying to find out how to see the exact query being
> run.
>
>
>
>                 When running show processlit, I get a lot of processes that
> have been running for a VERY long time.
>
>
>
>                 I a trying to find out exactly what query it is that is
> being run , any ideas?
>
>
>
>                 I tried the slow query log but it is not showing up in
> there.
>
>
>
>                 All the queries are showing “sleep”
>
>
>
>                 Not sure if this means anything....
>
>
>
> Machiel Richards
>
> MySQL DBA
>
> Relational Database Consulting
>
>
>
> *Error! Filename not specified.*
>
>
>
>
>
>
> --
>  - michael dykman
>  - mdykman@stripped
>
>  May the Source be with you.
>
>
>
>
> --
>  - michael dykman
>  - mdykman@stripped
>
>  May the Source be with you.
>



-- 
 - michael dykman
 - mdykman@stripped

 May the Source be with you.

Attachment: [text/html]
Thread
finding exact query being runMachiel Richards12 Jul
  • Re: finding exact query being runMichael Dykman12 Jul
    • RE: finding exact query being runMachiel Richards12 Jul
      • Re: finding exact query being runMichael Dykman12 Jul
        • RE: finding exact query being runmachiel.richards12 Jul
          • Re: finding exact query being runMichael Dykman12 Jul
  • Re: finding exact query being runJohn Daisley12 Jul
    • Re: finding exact query being runPrabhat Kumar12 Jul
  • RE: finding exact query being runDaevid Vincent13 Jul
    • Re: finding exact query being runJohan De Meersman13 Jul
      • RE: finding exact query being runDaevid Vincent13 Jul