• Sign In
 
  • MSDN Blogs
  • Microsoft Blog Images
  • More ...
Common Tasks
  • Blog Home
  • Email Blog Author
  • RSS for comments
  • RSS for posts
Search
  • Advanced search options...
Tags
  • .NET Framewor
  • .NET Framework
  • Ajax/Javascript
  • ASP.NET
  • CLR
  • Cool stuff
  • DataAccess
  • Debugging/Windbg
  • Hotfix/Service Pack
  • IDEVDataCollector
  • IIS
  • Internet Explorer
  • Italian techs
  • LogParser
  • OT
  • Personal
  • Productivity
  • Random
  • Scripting/ASP
  • Security
  • Technology
  • Tools
  • Troubleshooting
  • Vista/Longhorn
  • Visual Studio
Archives
Archives
  • November 2010 (1)
  • October 2010 (1)
  • July 2010 (2)
  • April 2010 (1)
  • March 2010 (2)
  • February 2010 (2)
  • January 2010 (1)
  • October 2009 (2)
  • September 2009 (2)
  • August 2009 (1)
  • July 2009 (5)
  • June 2009 (1)
  • May 2009 (1)
  • April 2009 (3)
  • March 2009 (3)
  • February 2009 (5)
  • January 2009 (3)
  • December 2008 (5)
  • November 2008 (3)
  • October 2008 (2)
  • September 2008 (3)
  • August 2008 (3)
  • July 2008 (3)
  • June 2008 (5)
  • May 2008 (4)
  • April 2008 (8)
  • March 2008 (4)
  • February 2008 (5)
  • January 2008 (2)
  • December 2007 (4)
  • November 2007 (6)
  • October 2007 (6)
  • September 2007 (8)
  • August 2007 (6)
  • July 2007 (7)
  • June 2007 (10)
  • May 2007 (9)
  • April 2007 (12)
  • March 2007 (8)
  • February 2007 (5)
  • January 2007 (3)
  • December 2006 (1)
  • November 2006 (4)
  • October 2006 (2)
  • September 2006 (9)
  • August 2006 (2)
  • July 2006 (1)

Unable to get the private bytes memory limit for the w3wp process

MSDN Blogs > Never doubt thy debugger > Unable to get the private bytes memory limit for the w3wp process

Unable to get the private bytes memory limit for the w3wp process

Carlo Cardella
20 Sep 2006 2:30 PM
  • Comments 11

PROBLEM DESCRIPTION
===================
I can run ASP.NET applications on the server, however I have noticed that when I do there is an asp error entry in the event log: "Unable to get the private bytes memory limit for the W3WP process. The ASP.NET cache will be unable to limit its memory use, which may lead to a process restart. Error 0x80070005".

 

ENVIRONMENT
===========
- Windows Server 2003
- .NET Framework 1.1

 

SUMMARY of TROUBLESHOOTING
==========================
This error is caused by a known issue with insufficient permissions in your IIS metabase. The metabase ACL's on the target server did not include the IIS_WPG group on the following two nodes of the metabase (IIS_WPG is in both ACL's on a clean install):
- W3SVC/AppPools
- W3SVC/Filters

You can download the MetaACL utility from http://support.microsoft.com/?id=267904. After you have installed the program, open a command prompt and navigate to the directory where you installed it. Then type the following:

- cscript metaacl.vbs IIS://Localhost/W3SVC/AppPools IIS_WPG RE
- cscript metaacl.vbs IIS://Localhost/W3SVC/Filters IIS_WPG RE

Warning: 
The path is case sensitive - type exactly as above; after you run this command restart the IIS services and see if this corrects the problem.

 

Update: here is an update on this matter: http://blogs.msdn.com/carloc/archive/2009/01/27/unable-to-get-the-private-bytes-memory-limit-for-the-w3wp-process-reloaded.aspx

 

Carlo

  • 11 Comments
IIS
Leave a Comment
  • Please add 7 and 2 and type the answer here:
  • Post
Comments
  • Ady
    6 Dec 2006 5:49 AM

    Hi Carlo,

    There's bits of information around pointing this error to a metabase permissions problem, but no-one has given a soloution... until now.

    This solution works great.

    Thanks,

    Ady

  • shoo
    28 Feb 2007 12:15 PM

    Worked like a charm!

    Thanks.

  • Kris
    28 Jun 2007 12:28 PM

    I still run into this problem on ASP.NET 2.0 even though I have used the following command to give the domain account access to metabase.

    aspnet_regiis –ga <WindowsUserAccount>

  • Carlo Cardella
    28 Jun 2007 4:29 PM

    Kris, you probably are still missing something, try the following:

    - aspnet_regiis -ga <account>

    - cscript metaacl.vbs IIS://Localhost/W3SVC/AppPools IIS_WPG RE

    - add the account specified in the “Connect As” dialog to the IIS_WPG group

    - grant the account specified in the “Connect As” dialog the "Logon as a service" right

    If this still does not help you may consider opening a support call online from http://msdn2.microsoft.com/en-gb/aa570318.aspx (this is the UK page, chose your locale through the language dropdown at the top of the page.

    HTH

  • Patrick
    6 Nov 2007 2:13 PM

    I get this error on IIS 6.0 with a domain account that controls the pool.

    The MSDN documentation says that MetaACL should not be used in this case and to run aspnet_regiis –ga <WindowsUserAccount> which was done from the start on this server. Any toughts?

  • Carlo Cardella
    6 Nov 2007 3:18 PM

    Hi Patrick, if "aspnet_regiis -ga" does not help I would try metaacl anyway (of course backup your metabase first); if this still does not help I guess you'll need deeper troubleshooting with CSS help if you like...

  • Owen
    29 Sep 2008 7:21 AM

    Besides throwing the error, does anyone know what the symptoms of this problem (if any) are?

    The fix did the trick for us (thank you) and I am wondering if we will see any performance improvement from our web servers.

  • René Titulaer
    13 Aug 2009 3:18 AM

    We had this problem too. I didn't feel comfortable to run a script without knowing if that really was my problem. Also Microsoft says that if you run asp.net 2.0 you shouldn't run this script but you should aspnet_regiis -ga for the user which runs the application pool.

    That's why I wanted know if the error was really security related in my case. The strange thing was that I couldn't find anything about metabase security. I found some Microsoft articles which say that the metabase security is implemented on file level but I couldn't find anyting about security on metabase nodes.

    If you want to know the current permissions on a metabase node you have two options:

    1.  run metaacl.vbs on a specific node , for example: metaacl.vbs IIS://Localhost/W3SVC/AppPools this command doesn't make any modifications but only shows you the current permissions.

    2. use metabase explorer (download: http://support.microsoft.com/kb/840671).

    With these tools you can view the current permissions. You can also use this tools too change permissions.

    To solve the problem described in this forum you should give IIS_WPG permissions as described above.

  • Paulo Hirata
    23 Feb 2010 12:58 PM

    I had this in the following scenario:

    - Windows Server 2k8 Standard

    - IIS 7.0

    - ASP.NET 2.0 (native)

    - ASP.NET 1.1 (installed)

    When I try to run an app based on ASP.NET 1.1 the message is logged in application log.

    I followed the solution described above but it didn't work.

    Any toughts?

    Tks

  • Carlo Cardella
    11 Mar 2010 2:31 AM

    Hello Paulo, sorry for my late reply.

    The command cannot work on IIS7 because we do not have the metabase anymore but rather a completely different configuration storage (xml based as it happens with ASP.NET), so in IIS7 the error may have a different cause and for sure a different solution.

    Honestly I have not see it yet reported into CSS so I unfortunately I cannot give some "ready to use" advice at the moment, we would need to investigate the problem deeply and cannot be done through a blog... my suggestion is to open a Support Call with us (http://support.microsoft.com) and an Engineer will assist you on this matter.

    HTH

  • cmk
    30 May 2010 12:35 AM

    Gr8 post

    its works perfect

    Thqu soo much

Page 1 of 1 (11 items)
  • © 2012 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy Statement
  • Report Abuse
  • 5.6.402.223