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

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
D
Docker
Vercel News
Vercel News
IT之家
IT之家
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
腾讯CDC
Google DeepMind News
Google DeepMind News
I
InfoQ
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
博客园 - Franky
The Cloudflare Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
T
Tenable Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
Security Latest
Security Latest
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google Online Security Blog
Google Online Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
U
Unit 42
The Hacker News
The Hacker News
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
F
Full Disclosure
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
Project Zero
Project Zero

博客园 - coollzh

关于.NET VS JavaEE平台争论的沉思录 不要使用Microsoft Project的理由 Using distributed transactions in .Net 1.x without deriving from ServicedComponent .NET下的开发者们正在继承计算机早期时代伟大的黑客精神 上海著名网络公司招聘高级软件工程师 即将过的2004 URLRewriting的问题 谁知道c++中的char ** 在C#中一般用什么类型 Indigo Untyped Channel VC#2005 最新技术预览版下周发布 上海某著名互联网公司招聘asp.net/.net开发工程师 Coming soon: “Enterprise Library” .net framework1.1到2.0的重大变化 动态Validator的奇怪问题 一件及其汗的事! sql server2000 在windows2003的默认安装客户端无法连接 msn”给你一个惊喜“的病毒 DataReader的问题 35岁前应该做好的十件事
Windows 2003 中DTC的怪事情
coollzh · 2004-06-26 · via 博客园 - coollzh

最近在做一个asp.net应用需要分布式事务,我选择了COM+ 1.5,利用DTC进行分布式事务协调
可是当我的asp.net应用程序如果在几十分钟内没有人访问(调用分布式事务),这时如果再去调用就会失败,
一般情况下 Exception message是:MSDTC 事务的导入失败: Result Code = 0x8004d00e。
Method: Void OnError(System.Data.SqlClient.SqlException, System.Data.SqlClient.TdsParserState)
这时如果还不死心再去调用一次,就发现:发生在该数据库上的不要分布式事务的调用也有问题
具体异常是:Message: 当前命令发生了严重错误。应放弃任何可能产生的结果
Type: System.Data.SqlClient.SqlException

没有办法我更新web.config文件,导致应用程序重起,分布式事务就好了!!
可是如果再过几十分钟,同样的事情还会发生,真不知道,那里出问题了
如果这时,我不修改web.config,而是就等待30分钟(大约),分布式事务又可以跑起来了
感觉好像和ConnectionPool有某种关系


另外一个比较疑问的是,在perfomance monitor中看到的:
SqlClient: Current # connection pools 139
SqlClient: Current # pooled connections 72
SqlClient: Current # pooled and nonpooled connections 72

当我把w3wp重起,这些connection并不会丢失,如果这时再访问数据源,连接数就在原来的基础上增加 ,SqlClient: Current # connection pools数字也会增加。我就纳闷,这些连接是保存在那里的,CLR runtime中吗?如果是,那w3wp是Runtime的host,host都没有了,连接怎么还能存在呢?
我知道这些连接是物理的连接,可是也要进程保持这些连接才行,难道还有别的进程在保存这些连接吗?

如果重起启动物w3wp进程,连接不会断掉,那我的应用程序还能继续使用这些pooled的连接吗?感觉好像不能,如果不能,如何把他们断掉?

刚才看了一下msdn上的文章,说connection pooling 是和Appdomain相关的,如果appdomain退出了,则connectionpool也就不存在了,那我的connection pooling怎么这么大?我已经重起好几次w3wp进程了