Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS (W3WP,EXE)

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  IIS 6 Site Hang after IdleTimeout Shutdown  
Author Message
anonymous130

External


Since: Oct 17, 2003
Posts: 10



(Msg. 1) Posted: Sat May 22, 2004 1:28 am
Post subject: IIS (W3WP,EXE)
Archived from groups: microsoft>public>inetserver>iis (more info?)

I'm running Windows Server 2003 - .NET HTTP Handler
Application.

I need to increase the working set size of the W3WP
process that this application is running in - does
anybody know how to do this?

Thanks for your help.

 >> Stay informed about: IIS (W3WP,EXE) 
Back to top
Login to vote
patfilot

External


Since: Aug 24, 2003
Posts: 1478



(Msg. 2) Posted: Sun May 23, 2004 12:42 pm
Post subject: Re: IIS (W3WP,EXE) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You don't. Working set is a function of memory that has been demanded by
the application and is managed by the OS. If the app requires more memory,
it will ask for it (creating a larger working set) directly. What problem
are you trying to solve?

Pat

"Greg" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in message
news:107c001c43fbd$9f12ba30$a001280a@phx.gbl...
 > I'm running Windows Server 2003 - .NET HTTP Handler
 > Application.
 >
 > I need to increase the working set size of the W3WP
 > process that this application is running in - does
 > anybody know how to do this?
 >
 > Thanks for your help.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS (W3WP,EXE) 
Back to top
Login to vote
anonymous130

External


Since: Oct 17, 2003
Posts: 10



(Msg. 3) Posted: Sun May 23, 2004 7:56 pm
Post subject: Re: IIS (W3WP,EXE) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I've built a web application to display very large images that experiences heavy load. It is a .NET application the calls a c++ layer to talk to our image sdk's. I VirtualAlloc (& lock) 500MB in the c++ dll and reuse this memory over and over. Each of our Webservers has 2GIG of memory and the WebApplication is the only program of merit that would be running. Generally, the virtual memory (of W3WP) stays aroung 1GIG; however, the working set of W3WP always seems to stay around 100MB and we are experiencing high page faults - I'm calling SetProcessWorkingSetSize in the c++ dll on initializaion and setting a minimum of 500MB and a max of 1GIG, but these values never take (perhaps the call is failing with security problems).

I'd appreciate any help you can offer.
 >> Stay informed about: IIS (W3WP,EXE) 
Back to top
Login to vote
patfilot

External


Since: Aug 24, 2003
Posts: 1478



(Msg. 4) Posted: Mon May 24, 2004 1:52 am
Post subject: Re: IIS (W3WP,EXE) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Are you specifying MEM_COMMIT in the VirtualAlloc call or just MEM_RESERVE?

Are you experiencing Hard or Soft page faults? A soft page fault is the OS
pulling from the lookaside lists (i.e. memory that the Memory Manager has
marked as available, but has not yet released to the system, so they are
relatively cheap). Obviously, not incurring a page fault at all would be
better.

The SetProcessWorkingSetSize requires either Admin or Power Users ACLs (See
MSDN for specific privileges). I don't believe that W3WP.exe will (by
default) fall into one of those categories. You should call GetLastError()
and see if the call succeeded. Also, so long as there is little or no other
pressure on the system, the OS will allow the Working Set to grow. If the
system comes under pressure, then trimming will begin (this API just
attempts to limit the trimming).

Finally, you might also want to check into creating a
CreateMemoryResourceNotification event. It basically allows for your
process to listen for notifications that the OS will send out when resources
get low so that you can release some back for system health.


Pat


When you virtual alloc (even when you lock), the OS does not immediately
back all of the memory (this is for perf reasons). What you would need to
do is 'touch' every page at least once, which will get the memory to be
backed by the OS.
"Greg" <anonymous.DeleteThis@discussions.microsoft.com> wrote in message
news:5D5A1CD5-A355-4780-90A8-3974EFCC9D11@microsoft.com...
 > I've built a web application to display very large images that experiences
heavy load. It is a .NET application the calls a c++ layer to talk to our
image sdk's. I VirtualAlloc (& lock) 500MB in the c++ dll and reuse this
memory over and over. Each of our Webservers has 2GIG of memory and the
WebApplication is the only program of merit that would be running.
Generally, the virtual memory (of W3WP) stays aroung 1GIG; however, the
working set of W3WP always seems to stay around 100MB and we are
experiencing high page faults - I'm calling SetProcessWorkingSetSize in the
c++ dll on initializaion and setting a minimum of 500MB and a max of 1GIG,
but these values never take (perhaps the call is failing with security
problems).
 >
 > I'd appreciate any help you can offer.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS (W3WP,EXE) 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
w3wp.exe - Hi! Many times when users publish to our webserver via frontpage (win2003 server, IIS 6.0, FPex 2002) the cpu utilization goes up to 50% and the connection is lost. Then i kill the w3wp.exe prosess and try again, it works. But the next hour the same..

about w3wp.exe - Hi All, I'm using w2k3 and IIS6, is it true that when I start the .net web application, there will be a process w3wp.exe? As my application is using asp.net, but when I start the web site, there is no w3wp.exe in task manager. And a process..

iis 6 and the w3wp.exe service ! - i got a service called w3wp.exe. when i launch the application that uses this services, it starts but shoots the processsors to a 100% cpu usage ! and more, the memory allocated to this proces goes higher and higher ... and stays blocked... does anyon...

Issue with W3wp.exe - This w3wp.exe is using all my cpu? and it's preventing some of my web pages from rendering . Any ideas. What is this process.

IIS 6 and W3wp.exe why does it hang up??? - Hello, I did a search and found a couple post about the issue, but cannot find a fix. Any ideas?? My iis6 will run fine then out of no where it locks op and I have to end the process W3wp.exe, which is at 99%. Please help I need to fix this..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]