Ajax Perl Catalyst FastCGI 子进程不会死亡

发布于 2024-12-17 15:28:40 字数 185 浏览 3 评论 0原文

我有一个内置在催化剂中的ajax应用程序,通过fastcgi运行。我注意到我的所有 ajax 请求都会启动另一个进程,并且该进程会无限期地保留。

理想情况下,我希望我的主页保留下来,但 ajax 页面应该根据需要停止并重新启动。

这是一个常见问题吗?如何解决这个问题?

如何告诉服务器更快地关闭不活动的进程?

I have an ajax application built in catalyst running through fastcgi. I am noticing that all of my ajax requests spin up another process and that process sticks around indefinitely.

Ideally I would like to have my main page stick around but the ajax pages should just stop and restart as needed.

Is this a common issue and how does one get around this.

How do I tell the server to shut down inactive processes quicker?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离鸿 2024-12-24 15:28:40

答案是依赖于 Web 服务器(并且依赖于 apache 的 fastcgi 模块 - 因为至少有 2 个不同的 fcgi 模块)。您没有告诉我们哪个网络服务器等,所以我无法真正回答。 (但请参阅您的 Web 服务器/fastcgi 模块的文档)

另一种方法当然是使用外部 fastcgi 运行服务器,而不是在动态模式下,这意味着您预先启动固定数量的进程,但随后永远不要创建多于或少于此数量来服务请求。

The answer is web server dependent (and fastcgi module dependent for apache - as there are at least 2 different fcgi modules). You haven't told us which web server etc, so I can't really answer. (But consult the documentation for your web server / fastcgi module)

An alternative approach would of course be to run the server with external fastcgi, rather than in dynamic mode, which would mean you start a fixed number of processes up-front, but then never create more or less than this number to serve requests..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文