奇怪的行为 - 应用程序锁定
我在这里遇到了问题...
我有这个应用程序,它创建各种自定义应用程序域,每个应用程序域执行一个程序集及其依赖项,例如插件、单独的程序集,用于操作数据库、自己的资源等...
该应用程序运行良好一段时间,但突然,它锁定了...进程不会死,它只是冻结,我在它上面运行了一个远程调试器,在线程窗口上我可以看到每个线程,它们的状态“运行”(不是“解冻”)但是,在同一个地方,不执行...我可以暂停并运行调试,它仍然在同一个地方。
代码上没有锁、同步锁、监视器,加载应用程序域的代码非常简单,没什么大不了的。
就像我说的,它可以工作,但是过了一段时间,它就锁定了..
对这个环境有什么想法吗?它已经让我发疯了!
如果需要任何代码,我会提供。谢谢。
i got a problem over here...
i have this application, that creates various custom AppDomains, each app domain executes a assembly and its dependencies, like a plugin, a separated assembly, that manipulates database, own resources, etc..
the application runs fine for a while, but suddenly, it locks up... the process does NOT die, it just freezes, i ran a remote debugger on top of it, on the thread window i can see EVERY thread, they are with the status "running" (not "thaw") but, in the same place, not executing... i can pause and run the debug, and it remains in the same place.
there are NO locks, synlocks, monitors, on the code and the code for loading the appdomains is very simple, no big deal on it.
like i said, its working, but after a while, it locks up..
Any ideas on this environment? its already driving me crazy!
If needed any piece of code, i will provide. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果涉及到数据库,那么您肯定有锁。查看线程正在执行的 SQL 语句,您可能会发现出现了死锁。
我不确定 SQL Server 是否可以检测到所有死锁,或者是否可以将其配置为不自行解决死锁。
If there's a database involved, you most certainly have locks. Take a look at the SQL statements the threads are executing, you might find you have a deadlock on your hands.
I'm not sure SQL Server can detect all deadlocks, or if it can be configured not to resolve deadlocks on its own.