最近网站总是报数据库连接数不够,我查看了下数据库的一些数据
max_connections = 800
max_used_connections = 15
Treads_created=15目前网站使用人数肯定有好几百个,我想知道为什么后面两个值只有15呢?这两个值受哪个控制呢?
max_connections = 800
max_used_connections = 15
Treads_created=15目前网站使用人数肯定有好几百个,我想知道为什么后面两个值只有15呢?这两个值受哪个控制呢?
解决方案 »
- mysql 修改变量值操作无效
- 如何修改MySQL的数据路径?
- 新手实践Mysql,帮忙更正存储过程
- 求助,MYSQL分组统计的问题
- mysql的问题
- 新手提问:mysql function,求一个最简单的例子.
- 请教一个大数据量查询得问题
- 如何改变MYSQL的默认端品3306?
- mysql 5.6.22.0 安装
- Access denied for user 'root'@'localhost' (using password: YES)
- MySQL数据库InnoDB存储引擎源代码调试跟踪分析
- 求助,数据表显示“#1033 - Incorrect information in file” 状态为“使用中”
从MYSQL本次开机以来,历史数据中的最大同时的并发联接数。Treads_created
同时打开的表数
The maximum number of connections that have been in use simultaneously since the server started.
MySQL服务器过去的最大连接数
并发不高
Treads_created=15
建立 的线程
Threads_created 是当前MYSQL系统打开的用于用户连接的线程数总体来说,你的MYSQL的并发访问程序并不高。 你是怎么得到 "最近网站总是报数据库连接数不够" 这个信息的?
Max_used_connections The maximum number of connections that have been in use simultaneously since the server started.
Threads_created
The number of threads created to handle connections. If Threads_created is big, you may want to increase the thread_cache_size value. The cache miss rate can be calculated as Threads_created/Connections.
打开数据库错1:The driver was unable to create a connection due to an inability to establish the client portion of a socket.
This is usually caused by a limit on the number of sockets imposed by the operating system. This limit is usually configurable.
操作系统上的问题你的操作系统同时可以支持多少 tcp/ip socket
检查一下你的操作系统的手册。
目前看来你的设置是 15
必须写代码关闭.