Re: Pagefile use increase when repeatedly executing programs



Yep, that was helpful. Now I know that it is the csrss.exe which is absorbing
all the memory. There even is a knowledge base article on that problem
related to cmd windows that are opened repeatedly:
http://support.microsoft.com/kb/903722. Now I can contact microsoft to find
out whether they have a hotfix as well for XP.

Bas

"John John" wrote:

Maybe this can help:

Using Performance Monitor to Identify a Pool Leak
http://support.microsoft.com/kb/130926/EN-US/

John


Bas wrote:
Hi John, thanks for your help. I analysed the developments using perfmon (and
memtriage) which give some insight in the numbers. It makes clear that system
resources disappear when repeadetly executing a program, but I cannot find a
specific process responsible. There are quite some changes in the kernel
level as well, but that too deep in computer stuff for me.

The problem is not related to a specific software (altough I discovered it
using matlab) so contacting a verdor is rather useless, unfortunately. If a
run a batch file for xcopy.exe it also leads to the same problems.

Bas

"John John" wrote:


John John wrote:


Bas wrote:


I’m doing some modeling analysis and use a batch file that executes a
program for an enormous amount of times (> 10000). I came in trouble
as my pagefile use steadily increases, until the system resources
become scarce at a pagefile use of about 600MB and the system
basically crashes. Each program that I want to execute after that
gives the message "The application failed to initialize properly
(0xc0000142). Click on OK to terminate the application."

Testing lead me to the conclusion that the problem was related to
repeatedly executing a program, as repeating an xcopy operation (which
has nothing to do with the modeling languages I use) for many times
also lead to rapidly increasing pagefile use and a system crash.
I have tried many solutions: I’ve got all updates, increased the
pagefile size, moved it to another disk partition, switched of virus
scanner, updated my computer bios, defragmented memory and pagefile,
but still I’m in trouble.
Has any of you ever heard of a problem in XP Professional with rapidly
increasing pagefile use when repeatedly executing a program? I would
be very happy to find a solution.

Bas


Contact the application vendor. By the looks of it I would say that
their application is not releasing memory from the non paged pool, that
creates a pool leak, aka a memory leak. That causes a memory shortage
because space occupied by the pool is not available for other
applications when they start, it causes them to rely on an increasingly
smaller amount of available memory from the finite non paged pool and
forces them to make extensive use of the page file.

You could confirm that by doing a perfmon on the Nonpaged Pool objects
and monitor what happens when you start and shutdown the application,
from there you will see if the Nonpaged Pool Bytes keep on increasing.
The Nonpaged Pool size should increase when the application is started,
when you exit the application the nonpaged pool should return to its
original size.

John

PS. I think I might have been half asleep when I thought this out this
morning. If you see nothing amiss in the Nonpaged Pool then monitor the
Paged Pool bytes.

John




.



Relevant Pages

  • Re: Help!!! Memory allocation!!!
    ... I'm trying to map the continuous memory to user space address. ... dont know if the MmAllocateContiguousMemory didnt allocate the continuous ... memory from non-paged pool but from paged pool or some other places, ... Lock it first whatever it is allocated from nonpaged pool or not ...
    (microsoft.public.development.device.drivers)
  • Re: Pagefile use increase when repeatedly executing programs
    ... I came in trouble as my pagefile use steadily increases, until the system resources become scarce at a pagefile use of about 600MB and the system basically crashes. ... Testing lead me to the conclusion that the problem was related to repeatedly executing a program, as repeating an xcopy operation for many times also lead to rapidly increasing pagefile use and a system crash. ... By the looks of it I would say that their application is not releasing memory from the non paged pool, that creates a pool leak, aka a memory leak. ... You could confirm that by doing a perfmon on the Nonpaged Pool objects and monitor what happens when you start and shutdown the application, from there you will see if the Nonpaged Pool Bytes keep on increasing. ...
    (microsoft.public.windowsxp.general)
  • Re: Pagefile use increase when repeatedly executing programs
    ... I came in trouble as my pagefile use steadily increases, until the system resources become scarce at a pagefile use of about 600MB and the system basically crashes. ... Testing lead me to the conclusion that the problem was related to repeatedly executing a program, as repeating an xcopy operation for many times also lead to rapidly increasing pagefile use and a system crash. ... By the looks of it I would say that their application is not releasing memory from the non paged pool, that creates a pool leak, aka a memory leak. ... You could confirm that by doing a perfmon on the Nonpaged Pool objects and monitor what happens when you start and shutdown the application, from there you will see if the Nonpaged Pool Bytes keep on increasing. ...
    (microsoft.public.windowsxp.general)
  • Re: Pagefile use increase when repeatedly executing programs
    ... Hi John, thanks for your help. ... as my pagefile use steadily increases, ... scanner, updated my computer bios, defragmented memory and pagefile, ... You could confirm that by doing a perfmon on the Nonpaged Pool objects ...
    (microsoft.public.windowsxp.general)
  • Re: Pagefile use increase when repeatedly executing programs
    ... I came in trouble as my pagefile use steadily increases, until the system resources become scarce at a pagefile use of about 600MB and the system basically crashes. ... By the looks of it I would say that their application is not releasing memory from the non paged pool, that creates a pool leak, aka a memory leak. ... You could confirm that by doing a perfmon on the Nonpaged Pool objects and monitor what happens when you start and shutdown the application, from there you will see if the Nonpaged Pool Bytes keep on increasing. ...
    (microsoft.public.windowsxp.general)