经典asp中应用程序对象的大小限制是多少?

时间:2022-08-29 01:55:19

I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know?

我正在创建一个ASP脚本,它使用应用程序对象来存储页面。我想到的问题是这个对象是否有大小限制。谁知道?

3 个解决方案

#1


3  

An application pool may specifiy the Maximum virtual memory size that a worker process can allocate. This is setting will affect the maximum size of data that the application object can hold.

应用程序池可以指定工作进程可以分配的最大虚拟内存大小。这种设置将影响应用程序对象可以容纳的最大数据大小。

If this setting is not specified (or is larger than 2GB) then another factor will be whether the process is running in 32 Bit mode. If so then you could only expect to get a maximum of 1.5GB (if that) in the application object regardless of how much memory is present on the server.

如果未指定此设置(或大于2GB),则另一个因素是进程是否以32位模式运行。如果是这样,那么无论服务器上有多少内存,您都只能在应用程序对象中获得最大1.5GB(如果有)。

On 64 bit server running the worker process as a 64 bit process it would be able to consume as much RAM and pagefile that it can get.

在作为64位进程运行工作进程的64位服务器上,它将能够消耗尽可能多的RAM和页面文件。

#2


0  

I'm fairly sure there's no explicit limit - but of course at some point you will use up so much memory that you'll see other effects - e.g. your application being recycled because it has exceeded its memory limit, or your application grinding to a halt as the server runs out of memory.

我很确定没有明确的限制 - 当然在某些时候你会耗尽这么多的记忆,你会看到其他影响 - 例如您的应用程序正在被回收,因为它已超出其内存限制,或者您的应用程序因服务器内存不足而停止运行。

#3


0  

I am pretty sure the limit is really the RAM of the hosting server. If you have a very large number of pages, using a database or files for less frequently accessed pages may be helpful, but i have never seen any specific issues with a hard limit.

我很确定这个限制实际上是托管服务器的RAM。如果您有非常多的页面,使用数据库或文件来访问频率较低的页面可能会有所帮助,但我从未见过任何具有硬限制的特定问题。

#1


3  

An application pool may specifiy the Maximum virtual memory size that a worker process can allocate. This is setting will affect the maximum size of data that the application object can hold.

应用程序池可以指定工作进程可以分配的最大虚拟内存大小。这种设置将影响应用程序对象可以容纳的最大数据大小。

If this setting is not specified (or is larger than 2GB) then another factor will be whether the process is running in 32 Bit mode. If so then you could only expect to get a maximum of 1.5GB (if that) in the application object regardless of how much memory is present on the server.

如果未指定此设置(或大于2GB),则另一个因素是进程是否以32位模式运行。如果是这样,那么无论服务器上有多少内存,您都只能在应用程序对象中获得最大1.5GB(如果有)。

On 64 bit server running the worker process as a 64 bit process it would be able to consume as much RAM and pagefile that it can get.

在作为64位进程运行工作进程的64位服务器上,它将能够消耗尽可能多的RAM和页面文件。

#2


0  

I'm fairly sure there's no explicit limit - but of course at some point you will use up so much memory that you'll see other effects - e.g. your application being recycled because it has exceeded its memory limit, or your application grinding to a halt as the server runs out of memory.

我很确定没有明确的限制 - 当然在某些时候你会耗尽这么多的记忆,你会看到其他影响 - 例如您的应用程序正在被回收,因为它已超出其内存限制,或者您的应用程序因服务器内存不足而停止运行。

#3


0  

I am pretty sure the limit is really the RAM of the hosting server. If you have a very large number of pages, using a database or files for less frequently accessed pages may be helpful, but i have never seen any specific issues with a hard limit.

我很确定这个限制实际上是托管服务器的RAM。如果您有非常多的页面,使用数据库或文件来访问频率较低的页面可能会有所帮助,但我从未见过任何具有硬限制的特定问题。