Re: debugging web server with lmemdebug
From: John Spaith [MS] (jspaith_at_ONLINE.microsoft.com)
Date: 04/30/04
- Previous message: yuya: "Re: Printing HTML programmatically. Second try!"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 11:34:03 -0700
There is no graceful way to terminate httpdexe.exe. There is another way to
do what you're trying to do, however.
Before starting you will need to add this registry value
[HKLM\COMM\HTTPD]
ScriptUnloadDelay=DWORD:60000
This tells HTTPD to only cache ISAPI extensions in memory for 60 seconds
after their last use, rather than the default 30 minutes. After this
period, the ISAPI will be unloaded. In practice it may take a few minutes
before an ISAPI is unloaded, depending on how the timing happens to work
out.
What you can do then is to set a check point in LMEM (I believe it allows
this) after the web server has been running but before it starts processing
requests and/or loading any ISAPI's/ASP pages you may have. Then run the
web server pages you're interested in. Unplug the device from the network
to make sure no one else makes requests after a certain point. Wait a few
minutes to let any ISAPI's to be unloaded. (HTTP worker threads in internal
thread pool will take +5 minutes before they terminate. This is not
configurable, so either wait longer or be aware you will see unfreed memory
from worker threads.) Then have LMEM tell you everything that has not been
unloaded since the time you set the check point.
Hope this helps.
-- John Spaith Software Design Engineer, Windows CE Microsoft Corporation Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Let us know! https://www.windowsembeddedeval.com/community/newsgroups This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved. "Emil Falcon" <emilfalcon@hotmail.com> wrote in message news:effb7e33.0404281408.7256c186@posting.google.com... > Hi, > > I'm trying to debug the Windows CE 4.2 web server in order to find > potential memory leaks, using lmemdebug and httpdexe. Only problem is, > there's no way of gracefully terminating httpdexe, so I can't get > accurate results...Any suggestions? > > Emil.
- Previous message: yuya: "Re: Printing HTML programmatically. Second try!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|