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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:59:04+00:00 2026-05-29T08:59:04+00:00

I am using mytop, to search for slow queries. And for example I found

  • 0

I am using mytop, to search for slow queries. And for example I found that Thread with ID 110 is slow
enter image description here

But there is now such thread in my system.
ps -AL

enter image description here
enter image description here

What could be wrong? Why I doesn’t see Thread with ID 110? Thanks!

  • 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-29T08:59:05+00:00Added an answer on May 29, 2026 at 8:59 am

    the ID you see in mytop is the mysql connection id, and it is local to mysql. mytop doesn’t show you any process ids (the process could even be running on a remote machine).

    If you want to find the process, you’ll need to use mysqladmin and netstat:

    $ mysqladmin -v pr
    +-----+------+----------------------+-------+---------+------+------------+-----------------------+
    | Id  | User | Host                 | db    | Command | Time | State      | Info                  |
    +-----+------+----------------------+-------+---------+------+------------+-----------------------+
    | 4   | uqos | 192.168.170.66:33912 | us200 | Sleep   | 8    |            |                       |
    | 5   | uqos | 192.168.170.66:33913 | us200 | Sleep   | 8    |            |                       |
    | 6   | uqos | 192.168.170.66:33914 | us200 | Sleep   | 8    |            |                       |
    | 251 | uqos | 192.168.170.66:59161 | us200 | Query   | 2    | User sleep | select sleep(200)     
    | 254 | uqos | localhost            |       | Query   | 0    |            | show full processlist |
    +-----+------+----------------------+-------+---------+------+------------+-----------------------

    So, someone from host 192.168.170.66 is connecting to the mysql db from port 59161. Lets move over to that machine and find that process:

    $ netstat -apn |grep 59161
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    tcp        0      0 192.168.170.66:59161        192.168.170.60:3306         ESTABLISHED 13166/mysql
    $ ps -ef |grep 13166
    uqos     13166  6635  0 14:31 pts/0    00:00:00 mysql -h 192.168.170.60 us200 -p
    

    There we go, it’s the process with pid 13166

    This is not possible atm. if the client connects with unix sockets though, only if they connect with TCP.

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

Sidebar

Related Questions

using chrome 15 on osx 10.6.8 When adding event listeners, I've found that putting
Using Browserlab, it appears that the background image is not centred in Firefox7 for
Using delphi 2010, i am wondering if there someway to escape the following string
I'm building a tree using lists in lists the ordinary way. Now, what I
I'm wanting to make a component that inherits from rotate canvas using a storyboard.
Is there a good way to assign ViewData to nested master pages? For example,
Using online interfaces to a version control system is a nice way to have
I'm using the Python execfile() function as a simple-but-flexible way of handling configuration files
using the jquery ui modal dialog , the background shades grey (i assuming this
Using of mobile dialog authentication is working well for other mobile devices except on

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.