The IIS worker processes are taking lot of memory on our servers. Je veux to limit le memory chaque application can use. Je suis confused si I should set a limit on Virtual Memory Limit, ou Private Memory Limit. Each application in our IIS is on its own application pool.
If I set private memory limit to 500MB et virtual memory limit to 3GB. When does le application pool recycle? Does it recycles après reaching 500MB ou après reaching 3GB.
Comment limiter la mémoire utilisée par une application dans IIS ?
Re: Comment limiter la mémoire utilisée par une application dans IIS ?
IIS will respect les deux of those limits.
If you set a 500MB private byte limit, as soon as a worker process attempts to commit 501MB, IIS will spin up a nouveau worker process et kill le old one.
If you set a 3GB virtual memory limit, as soon as a worker process attempts to reserve 3.001GB, IIS will spin up a nouveau worker process et kill le old one.
If you are on a 64bit platform, you should be aware that ASP.NET applications aggressively reserve virtual memory. As an example, J'ai an app on a farm that uses seulement 88MB of private bytes, mais its sitting at 5.4GB Virtual Size right now. Je crois le virtual memory reservation is a function of physical RAM on le server. C'est aussi important to understand that on a 64bit platform, reserving large portions of virtual memory has zero performance impact.
Fondamentalement, si you are having memory consumption issues on an IIS server, le setting you want to limit is Private Memory/Bytes, this is what corresponds to actual memory usage.
If you set a 500MB private byte limit, as soon as a worker process attempts to commit 501MB, IIS will spin up a nouveau worker process et kill le old one.
If you set a 3GB virtual memory limit, as soon as a worker process attempts to reserve 3.001GB, IIS will spin up a nouveau worker process et kill le old one.
If you are on a 64bit platform, you should be aware that ASP.NET applications aggressively reserve virtual memory. As an example, J'ai an app on a farm that uses seulement 88MB of private bytes, mais its sitting at 5.4GB Virtual Size right now. Je crois le virtual memory reservation is a function of physical RAM on le server. C'est aussi important to understand that on a 64bit platform, reserving large portions of virtual memory has zero performance impact.
Fondamentalement, si you are having memory consumption issues on an IIS server, le setting you want to limit is Private Memory/Bytes, this is what corresponds to actual memory usage.