Need help ProcessModelInfo.GetCurrentProcessInfo()

S

seba

I try to get some info about webserver -
ProcessModelInfo.GetCurrentProcessInfo()
On Windows 2000, IIS 5 everything works fine.
On Windows 2003 IIS6 i am getting error: "Process information is available
only when the ASP.NET process model is enabled".
I checked my machine.config and <processModel> enabled is set to "true".

Please, help
Seba
 
J

Juan T. Llibre

You may have missed the second part of the error message.

"When running on versions of IIS 6 or newer in
worker process isolation mode, this feature is not supported."
 
S

seba

I don't have this part of message.
So if this feature is not supported, how can i get info about my asp.net
process - working time, used memory, etc. ?
 
J

Juan T. Llibre

Hi, seba.

Open the IIS MMC, Right-click the Web Sites folder,
click Properties, and then click the Service tab.

Under Isolation mode, select or clear the Run Web service
in IIS 5.0 isolation mode check box to select either IIS 5.0
isolation mode or worker process isolation mode, respectively.

WARNING : This is a global setting for IIS.
You cannot apply this setting to individual websites.
You cannot run both isolation modes concurrently.

By using IIS 5.0 isolation mode you may be exposing
yourself to application recovery problems which may
affect your server.

IIS 6.0, by default, refreshes the worker process every so
often, working under the worker process isolation mode.

This way, IIS ensures that if bad code or memory leak errors
slow down or tie up the worker process, the application will
be refreshed and remain available for users, under a new process.

Recycling worker processes automatically ensures that a
misbehaving application won't affect the whole server.

From
http://msdn.microsoft.com/library/d.../html/cpconiis60applicationisolationmodes.asp

Internet Information Services (IIS) 6.0 provides two different
application isolation modes to separate and protect Web applications
(ASP.NET, ASP, static pages, and so on) that run simultaneously.

These modes are IIS 5.0 isolation mode and worker process isolation mode.

IIS 5.0 isolation mode uses the process model built into ASP.NET.
In this mode, process model settings are specified through the
Machine.config file.

Worker process isolation mode, on the other hand, disables the ASP.NET
process model and uses the worker process isolation architecture of IIS 6.0.

Because of this, the process model settings are specified through the
application pool settings in the IIS management console,
instead of through the Machine.config file.

---000---

I'd rather do without processModel info by running IIS 6.0
in worker process isolation mode ( which disables the ASP.NET
process model ) than expose my server to a total crash because
one of my applications misbehaved through bad code/memory leaks.

best regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top