@ MySQL view the maximum number of opened processes @

Source: Internet
Author: User
Tags mysql view

Today, I just learned about the MySQL command in the group to view the maximum number of processes opened. Let's take a look at it ~

CAT/proc/27095/limits | grep "Max open files"

Command to view the maximum number of processes opened in MySQL

How should we know the pornographic process? Remember the command we just learned a few days ago. Right, it's lsof. This command can be used to view the opened file.

[root@sor-sys ~]# lsof |grep mysql|tailmysqld    16089    mysql   38u      REG                8,1     1024    3997735 /var/lib/mysql/mysql/time_zone.MYImysqld    16089    mysql   39u      REG                8,1        0    3997736 /var/lib/mysql/mysql/time_zone.MYDmysqld    16089    mysql   40u      REG                8,1     1024    3997744 /var/lib/mysql/mysql/time_zone_leap_second.MYImysqld    16089     mysql   41u      REG                8,1        0    3997745 /var/lib/mysql/mysql/time_zone_leap_second.MYDmysqld    16089     mysql   42u      REG                8,1     1024    3997732 /var/lib/mysql/mysql/time_zone_name.MYImysqld    16089     mysql   43u      REG                8,1        0    3997733 /var/lib/mysql/mysql/time_zone_name.MYDmysqld    16089     mysql   44u      REG                8,1     1024    3997738 /var/lib/mysql/mysql/time_zone_transition.MYImysqld    16089     mysql   45u      REG                8,1        0    3997739 /var/lib/mysql/mysql/time_zone_transition.MYDmysqld    16089     mysql   46u      REG                8,1     1024    3997741 /var/lib/mysql/mysql/time_zone_transition_type.MYImysqld    16089     mysql   47u      REG                8,1        0    3997742 /var/lib/mysql/mysql/time_zone_transition_type.MYD

See 16089. This is the existing process ~

Or usePS-Ef | grep MySQL Command~

[Root @ sor-sys ~] # Cat/proc/16089/limits | grep files
Max open files 2048 65536 files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.