惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
GbyAI
GbyAI
L
LINUX DO - 最新话题
A
Arctic Wolf
T
Tor Project blog
G
GRAHAM CLULEY
I
InfoQ
博客园_首页
IT之家
IT之家
The Register - Security
The Register - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
K
Kaspersky official blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
U
Unit 42
PCI Perspectives
PCI Perspectives
量子位
P
Palo Alto Networks Blog
S
Securelist
T
Troy Hunt's Blog
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
罗磊的独立博客
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
NISL@THU
NISL@THU
C
Cisco Blogs
T
Threatpost
有赞技术团队
有赞技术团队
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - 蔡春升

Oracle 取余取整函数 生活永远这样,在自己放松自己的时候,会让你摔个跟头,忍耐生老练,老练生盼望 IE里Iframe的Cookie问题解决办法总结(转) js 代码分析工具 QR code 二维条码 再读王永庆卖米的故事 彼得林奇 投资方法 如何访问google docs js 获取request的方法 社会化网络观后感 互联网广告形式 概念过滤 用PDCA培养数据收集整理分析能力 韩寒:请放过我们的食油 精准化技术在互动营销中的应用 oracle 统计某个表的列数 IComparer<T> 安装WAMP怎么测试shopex 常见的WAMP集成环境
mysql ExecuteReader问题
蔡春升 · 2011-05-08 · via 博客园 - 蔡春升

今天遇到一棘手问题,在调用ExecuteReader时,出现如下异常信息:

The timeout period elapsed prior to obtaining a connection from the pool ...

通过调用show processlist查看链接数,原来挂了几百个链接,没有及时释放。

代码在调用Reader之后,系统没有关闭Connection,结果导致Connection不够用。

ps:

命令: show processlist;
如果是root帐号,你能看到所有用户的当前连接。如果是其它普通帐号,只能看到自己占用的连接。
show processlist;只列出前100条,如果想全列出请使用show full processlist;

set global wait_timeout=100

设置连接等待时间为100毫秒。