com+ 中的内存限制

发布于 2024-09-01 10:05:26 字数 164 浏览 7 评论 0原文

我们有几个带有 com+ 的 win 2000 机器,我们偶尔会在 dtsearch.dtengine dll 中遇到“内存不足,无法执行该操作”的错误。由于它是在 com+ 中注册的,我希望有一种方法可以限制它使用的内存量,然后在达到该内存量后回收它,但我似乎找不到一种方法来做到这一点。有人知道怎么做吗?谢谢。

We have a couple of win 2000 boxes with com+ and we're occasionally getting "insufficient memory to perform that operation" errors with the dtsearch.dtengine dll. Since it's registered in com+ I was hoping there was a way to limit the amount of memory it used and then recycle it once it hits that but I can't seem to find a way to do that. Anyone know how? Thanks.

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

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

发布评论

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

评论(1

雪花飘飘的天空 2024-09-08 10:05:26

要为 COM+ 应用程序配置应用程序回收,请使用以下步骤:

在组件服务管理工具的控制台树中,右键单击要回收的 COM+ 服务器应用程序,然后单击“属性”。

关于池化和池化在“回收”选项卡中,输入“生命周期限制(分钟)”、“内存限制(KB)”、“过期超时(分钟)”、“调用限制”和“激活限制”的值,具体取决于您要使用的条件。

生命周期限制表示进程在被回收之前可以运行的最大分钟数。有效范围为 0 到 30,240 分钟(21 天)。默认分钟数为 0。Memory

Limit 表示回收进程之前进程内存使用的最大量(以千字节为单位)。如果进程的内存使用量超过指定数量超过一分钟,则进程被回收。有效范围为 0 到 1,048,576 KB,默认内存使用量为 0 KB。

过期超时指示在强制关闭之前要等待的分钟数,以释放对进程中对象的所有外部引用。有效范围为 1 到 1440 分钟(24 小时),默认过期超时为 15 分钟。仅当已经根据其他标准确定进程将被回收时才使用该值。

调用限制表示应用程序对象在回收进程之前可以接受的最大调用次数。有效范围是 0 到 1,048,576 次调用,默认调用次数为 0。

激活限制指示在回收进程之前接受的应用程序对象激活的最大数量。有效范围为 0 到 1,048,576 次激活,默认激活次数为 0。

注意 当生命周期限制、内存限制、调用限制或激活限制值设置为 0(默认值)时,该条件的应用程序回收为禁用。当所有四个条件都设置为 0 时,将禁用所选应用程序的应用程序回收。

To configure application recycling for a COM+ application, use the following steps:

In the console tree of the Component Services administrative tool, right-click the COM+ server application you want to be recycled and then click Properties.

On the Pooling & Recycling tab, enter values for Lifetime Limit (minutes), Memory Limit (KB), Expiration Timeout (minutes), Call Limit, and Activation Limit, depending on the criteria you want to use.

Lifetime Limit indicates the maximum number of minutes a process can run before it's recycled. The valid range is 0 through 30,240 minutes (21 days). The default number of minutes is 0.

Memory Limit indicates the maximum amount of process memory usage (in kilobytes) before recycling the process. If the process's memory usage exceeds the specified number for longer than one minute, the process is recycled. The valid range is 0 through 1,048,576 KB, and the default amount of memory usage is 0 KB.

Expiration Timeout indicates the number of minutes to wait, before being forcibly shut down, for the release of all external references to objects in the process. The valid range is 1 through 1440 minutes (24 hours), and the default expiration time-out is 15 minutes. This value is used only when it is already determined that a process will be recycled based on the other criteria.

Call Limit indicates the maximum number of calls that application objects can accept before recycling the process. The valid range is 0 through 1,048,576 calls, and the default number of calls is 0.

Activation Limit indicates the maximum number of application object activations to accept before recycling the process. The valid range is 0 through 1,048,576 activations, and the default number of activations is 0.

Note When the Lifetime Limit, Memory Limit, Call Limit, or Activation Limit value is set to 0 (the default value), application recycling for that criterion is disabled. When all four of these criteria are set to 0, application recycling is disabled for the selected application.

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