十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
这篇文章将为大家详细讲解有关mysql中大连接数、大并发线程数的区别有哪些,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
成都创新互联公司服务项目包括龙安网站建设、龙安网站制作、龙安网页制作以及龙安网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,龙安网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到龙安省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!show variables like 'max_connections'
max_connections:支持的大并发连接数
The maximum permitted number of simultaneous client connections
show variables like 'innodb_thread_concurrency'
innodb_thread_concurrency:支持的大并发执行的线程数
InnoDB tries to keep the number of operating system threads concurrently inside InnoDB less than or equal to the limit given by this variable (InnoDB uses operating system threads to process user transactions). Once the number of threads reaches this limit, additional threads are placed into a wait state within a “First In, First Out” (FIFO) queue for execution. Threads waiting for locks are not counted in the number of concurrently executing threads.
thread_concurrency:支持的大并发执行的线程数
这个变量特定于Solaris 8和更早的系统,允许应用程序向线程系统提示应该同时运行的线程数量。MySQL 5.7.2中删除了这个变量。
This variable is specific to Solaris 8 and earlier systems, for which mysqld invokes the thr_setconcurrency() function with the variable value. This function enables applications to give the threads system a hint about the desired number of threads that should be run at the same time. Current Solaris versions document this as having no effect.This variable was removed in MySQL 5.7.2.
查看服务器的连接次数
show status like 'Connections';
查看曾经的大连接数
show status like 'Max_used_connections';
查看当前连接的线程数
show status like 'Threads_connected';
查看当前正在运行的线程数
show status like 'threads_running';
查看线程缓存中的线程数
show status like 'threads_cached';
关于“mysql中大连接数、大并发线程数的区别有哪些”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。