0

I have my IIS 6 running my website. It is on a Windows Server 2003 which has 4GB of RAM. I run SQL intensive code after the user submits a form (math statistics stuff). This process is not threaded (should it be, especially if 2 or more users run the same thing?). But my process seems to consume only a couple of GBs of memory and the server crawls. How do I get my IIS process to use nearly all the memory?

I see on other sites that its 2GB or 3GB allocated using boot.ini. But is there another way for the process to use memory? If I make it multithreaded, will there be a process for each thread?

Bryan Roth
  • 181
  • 2
  • 4
  • 15
cdub
  • 189
  • 2
  • 12

1 Answers1

1

Memory doesn't work the way I think you think it does. While it's quite possible that you are running into a physical memory bottleneck, the server would be paging like mad. The pagefile is where pages that are not currently active are stored. See How do I tell if my Windows server is swapping? for details about how memory is used. As far as the multithreaded question, no you would not allocate an additional memory space per thread. Memory space is allocated per process (either 2userpace +2 system or 8Tb userspace and 128GB system)

Jim B
  • 23,938
  • 4
  • 35
  • 58