Re: ANY Win32_Printer query leaks ~500kbytes in wmiprvse.exe



I can't repro this problem you are describe below is all, not saying it
isn't happening in your scenario.

All the script does below is put the remote server into a loop and does what
you specify to do to repro the problem you have described. I tried again to
reproduce with a few different printers installed and failed to see this
large leak that you described. Do you have SP1 installed on your Win2k3
boxes? Perhaps you can see if the script below reproduces the problem? If
it doesn't we can explore some different settings in the script to obtain
the repro.

Note that you will have to change the line given here:
set svc = getobject("winmgmts:\\Win2k3SP2Server\Root\cimv2")
to reflect the name of your remote WMI server. Say it is "YourServer", the
line would look like this:
set svc = getobject("winmgmts:\\YourServer\Root\cimv2")

I was using TaskMgr.exe to monitor the "Network Service" user context owned
wmiprvse.exe process on the server.

Thanks,

--
Scott McNairy
Microsoft MVP - Windows Server Management Infrastructure


"Jeremy Weatherford" <JeremyWeatherford@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:96B64D8D-2AF0-4019-B5D4-23930BEC0DAA@xxxxxxxxxxxxxxxx
> Regardless of how complex it is, process size increases by 500kb per query
> until it reaches ~130MB, and WMI queries fail with an error about the
> paging
> file being too small. I would call this incontrovertible evidence of a
> memory leak... do you disagree?
>
> I'm afraid I don't know a Scott -- would you like to elaborate on his
> sample
> diagnostic techniques?
>
> Thanks,
> Jeremy
>
>
> "Sam Hobbs" wrote:
>
>> Use of memory by Windows is much more complex than most of us know about.
>> If
>> you need to investigate use of memory in your system, then there are many
>> useful resources provided by Microsoft for that purpose; especially
>> articles
>> and other documentation. Scott has provided a sample of the type of
>> diagnostic techniques that can be useful.
>>
>>
>> "Jeremy Weatherford" <Jeremy Weatherford@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
>> in
>> message news:098B2DA0-B4D9-497D-960F-82B155FA2DC6@xxxxxxxxxxxxxxxx
>> > Hello,
>> >
>> > I'd like to use WMI to monitor printer status via Win32_Printer, but
>> > I've
>> > discovered that, at least in our environment, ANY query from
>> > Win32_Printer
>> > class causes the process size of the associated wmiprvse.exe provider
>> > to
>> > jump
>> > by 500k -- and not go down. Repeat the query, leak another 500k.
>> > Obviously,
>> > this is not going to work very well.
>> >
>> > The same problem occurs with:
>> > 1) any query: SELECT *, SELECT Caption, etc.
>> > 2) vbscript and CIM Studio
>> > 3) Both Server 2003 boxes with network printers and my XP box
>> >
>> > What's going on here? Nothing interesting shows up in wbemcore.log
>> > with
>> > Logging=2. I don't know which provider to enable debug logging for to
>> > troubleshoot it further. Any suggestions?
>> >
>> > Thanks,
>> > Jeremy Weatherford
>> > Grace International School
>> > Chiang mai, Thailand
>>
>>
>>


.



Relevant Pages

  • Re: Memory consumption PowerShell
    ... Why need a running CMD.Exe on Windows Server 2003 only 144 KB??? ... With best regards ... And we could initiate to run a script oout side the IDN 3.0. ... memory. ...
    (microsoft.public.windows.server.scripting)
  • Re: Reboot command no longer works in Task Scheduler
    ... You can script it. ... Fixing the memory leak and blue screen stop error makes the best sense to me. ... Server event viewer log file, if there are IDs such as 8250, 8026, 2102, then ...
    (microsoft.public.win2000.general)
  • Re: Segmentation fault in php5-imap
    ... The PHP memory limit is 512 Mb and server has 16Gb of RAM, so it doesn't look like its exhausting all the memory, although one of the libraries potentially could? ... It looks like the script is dropping connection to the NNTP server. ...
    (php.general)
  • zipping problem
    ... Right I have a script that zips files on the fly. ... and the server can't hold a 25Mb string in memory ... So I was thinking is working out the max size the server can ... and breaking the zipped files up into smaller files so the ...
    (alt.php)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)

Quantcast