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

推荐订阅源

月光博客
月光博客
T
Troy Hunt's Blog
P
Proofpoint News Feed
H
Help Net Security
博客园 - 叶小钗
N
Netflix TechBlog - Medium
F
Full Disclosure
Vercel News
Vercel News
C
Cyber Attacks, Cyber Crime and Cyber Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
V
V2EX
Latest news
Latest news
L
LangChain Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Schneier on Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
News and Events Feed by Topic
M
MIT News - Artificial intelligence
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
The Exploit Database - CXSecurity.com
Microsoft Security Blog
Microsoft Security Blog
S
Secure Thoughts
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Spread Privacy
Spread Privacy
S
Securelist
Forbes - Security
Forbes - Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
V
Vulnerabilities – Threatpost
MyScale Blog
MyScale Blog
G
Google Developers Blog
L
Lohrmann on Cybersecurity
博客园 - Franky
T
Tor Project blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
V
Visual Studio Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
Y
Y Combinator Blog

博客园 - 大坏蛋

struts 2.1配置 腾讯,你是怎么知道我机器上装了360的 程序.NET Framework版本升级,重签名,重链接,批量签名工具 .NET 平台优秀控件及源代码介绍(一) 灯神 终于轻松下来了 如何扮演另一个帐号(C#实现) Friend Assemblies(.NET FrameWork 2.0新特性) .NET Remoting的新特性-IpcChannel(.NET Framework 2.0) 我的GMAIL开始使用 关于委派的返回值 .NET Remoting中的事件处理(.NET Framework 2.0) 关于MyIE2中博客园页面自动跳转的问题回答 Thread.Abort终止一个线程 今天统计了一下我们项目的代码 Friend Assembly 忘记交手机费,招商银行的自助缴费不错! 六一快到了,祝所有小朋友节日快乐 系统消息框居然是可以复制的
COM+连接池的问题
大坏蛋 · 2004-05-28 · via 博客园 - 大坏蛋

按以前的知识,连接一旦close,会立即被释放到连接池,但昨天我们测试组测试发现,事实没有我们测试结果那样理想,由于我们只使用一个数据库,按道理一个事务,如果能够保证连接重用的情况下,最多时候只应该是一个连接,但测试发现,一个事务,连接数目在2-5之间?why? 跟踪调试:结果有时是符合理论结果的1,有时则是2....即,速度慢,连接完全共用 总结:跟速度有关,决定加Trace,而不是使用调试环境 Trace结果:连接释放到池是个异步的过程,连接一旦close,紧接着创建相同连接,可能会去到返回池的上一个连接,也可能因为连接还没能返回而重新建立一个连接,导致连接数目上涨. 经微软高级顾问确认,以下方法可以解决池回收速度的问题 APPID里面找 MSDAINITIALIZE {2206CDB0-19C1-11D1-89E0-00C04FD7A829} 再在CLSID里面找{2206CDB0-19C1-11D1-89E0-00C04FD7A829} 添加一个DWORD,名字为[Queue Size],中间有空格,不包含括号,保留缺省值即可 这样,一旦连接关闭,改连接就被返回到池中,一个事务中能确保只用一个真实连接.