mod_mono 上的 Appdomain 回收设置阿帕奇
如何控制在 mod_mono 和 mod_mono 上运行的 ASP.NET 应用程序的应用程序回收设置?阿帕奇?
在 IIS6 和7 有一个选项可以指定 AppDomain 被回收的时间段、请求数量等,并且应用程序基本上会执行 Application_End() / Application_Start()。
我在 mod_mono & 上看到了相同的行为Apache,但我找不到在哪里更改设置。
How does one control the application recycle settings for an ASP.NET application runnin on mod_mono & Apache ?
On IIS6 & 7 there was an option to specify either a time period, a number of requests, etc. when the AppDomain would be recycled and the application would basically do an Application_End() / Application_Start().
I am seeing the same behaviour on mod_mono & Apache ,but I can't find where to change the settings.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这里,来自 http://www.mono-project.com/Mod_mono# Automatic_restart_of_the_mod-mono-server_backend
SO 格式有点不对,但基本上你可以使用此配置按时间或请求重新启动 mod-mono-server 进程(在 apache 下运行)。
Here it is, from http://www.mono-project.com/Mod_mono#Automatic_restart_of_the_mod-mono-server_backend
SO formatting is a little off, but basically you can restart mod-mono-server process ( running under apache ) by time or requests using this configuration.
从这个解释 Fast CGI 模块的链接来看,我猜需要有一个由 cron 作业定期运行的脚本来终止进程并重新启动它...我不知道这对您是否有任何帮助。你没有说明什么操作系统,我假设这是在 Win 平台上?如果您使用的是 Windows 平台,那么很容易安排一个脚本来重新启动 Mod_Mono 扩展,从而实现“回收”...
Judging by this link that explains the Fast CGI module, I would guess there would need to be a script that is run periodically by the cron job to kill the process and restart it... I do not know if this would be of any help to you. You did not state what OS, I am making an assumption that this is on a Win Platform? If you are on a Windows platform, then it would be easy enough to schedule a script to restart the Mod_Mono extension in effect "recycling"...