Re: Problem: w3wp is memory bound



Patrice,

This small experiment is to solve a bigger problem - that with Report
Server 2005.

We have a report which sucks huge amount of data from the database.
And in the process of
producing the report, the Report Server crashes with
OutOfMemoryException. .

Its actually the w3wp which terminates when it reaches 1.3GB, and till
now the mystery is
still unsolved, as to why the number 1.3 ? An immediate reaction would
be that its 60% of the
2 GB that you mentioned, but I made sure that machine.config has 100
in the memoryLimit parameter.

And on further investigation, I found that this has nothing to do with
Report Server, as a small web app
like the one i posted shows the same behavior.

The OS boots with the /PAE flag, and we have 32 GB RAM in the machine.
So its frustrating that
the process uses just 1.3 GB

Anand
--

On Sep 22, 4:43 pm, "Patrice" <http://www.chez.com/scribe/> wrote:
AFAIK unless an application is explicitly written to take advantage of it, a
single process can use 2 Gb at best plus you likely need some more memory
during the GC (when it moves something it needs at least the source object
and the copy).

Note that it doesn't mean *all* requests won't use more, it means that
*each* request won't be able to use more memory.

Someone more knowledgable will likely popup but this is my understanding for
now. Also knowing if you are trying to solve something or if this is just to
see how it behaves could perhaps help...

My first thought would be to see if you can go beyond this when issuing
multiple queries at the same time (not sure thought what you are trying to
find out)...

--
Patrice

"Anand Saha" <anands...@xxxxxxxxx> a écrit dans le message de groupe de
discussion :
c048d8f7-12a3-415d-9928-04f89ac5c...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Machine: 32 bit Intel Xeon 2.93 GHz, 16 CPUs, 32 GB RAM
OS: Windows Server 2003 R2 Ent Edition, SP2
Web Server: IIS 6
ASP.NET ver: 2.0

I made a simple ASP.NET application, with only this code in the
Page_Load, to
simulate a condition where huge memory is utilized by the app:

    int i = 0;
           int j = 0;
           StringBuilder[] sb = new StringBuilder[3000];

           while (i < 3000)
           {
               sb[i] = new StringBuilder(9999999);

               j = 0;
               while (j < (9999999))
               {
                   sb[i].Append('a');
                   j++;
               }
               Console.WriteLine(i.ToString());
               i++;
           }

When I invoke Default.aspx from IE, the w3wp process memory use
increases, goes
till around 1.3 GB, and then the app crashes out with
OutOfMemoryException, w3wp
recycles.

In IIS, the 'Max Used memory' value is set at 4 GB, so is the 'Max
Virtual memory',
both for the App Pool. In Machine.Config, memoryLimit is set at 100%.

I am unable to find out why the app is not going beyond 1.3 GB of
memory usage.

Any pointers will be helpful.

Thanks,
Anand
--  

.



Relevant Pages

  • Re: Alocated Memory Error (SQLSERVR)
    ... I had the same problem except, my memory hog was SBSMONITORING. ... critical and you don't want it grabbing all that RAM. ... Server 2000 SP4, ... However my daily status report is sent out ...
    (microsoft.public.windows.server.sbs)
  • Re: High memory usage (*HELP*)
    ... I rebooted the server, I should have just restarted the service for report ... a server with 4 GB RAM, I doubt you need the second page file on D. ... The virtual memory on D: drive is set to: 1550/3075 ...
    (microsoft.public.windows.server.sbs)
  • Re: Print jobs get out of order between workstation and printer
    ... After sending the report to the printer you have no control what windows ... Set the number of copies instead of printing 3 times. ... > We have an app running on WinXP workstations, app is hosted on a Win2003 ... Printer is connected to theWin2003 server. ...
    (microsoft.public.fox.programmer.exchange)
  • RE: Crytical alert in server performance report
    ... Which performace report are you running? ... How much physical memory are you running? ... Windows Small Business Server Team ... | You can disable this alert or change the threshold using the task Change ...
    (microsoft.public.windows.server.sbs)
  • Re: Allocated Memory Alerts & Mem Usage vs. VM Size
    ... You have 4GB of physical memory on the server, but occasionally the Windows ... <I will monitor this over time and report back. ...
    (microsoft.public.windows.server.sbs)