Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / November 2003

Tip: Looking for answers? Try searching our database.

Profiler slows down my .net apps

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
websparc - 20 Nov 2003 19:37 GMT
Hi need some help here.
Since i have run the CLR Profiler, after that my computer
start running asp.net application very slow even though
i'm close the profiler GUI. Am I missing something here?
Do I need to stop some hidden services in order to stop
this completly. Also the pipe.txt under winnt/temp also
keep growing and i can't delete that file. I've checked
the "environment" key in registery and deleted it but no
use. Please help someone my ASP.NET application are now
really very slow after i ran that tool.

Thanks
Websparc
David Browne - 20 Nov 2003 20:49 GMT
> Hi need some help here.
> Since i have run the CLR Profiler, after that my computer
[quoted text clipped - 6 lines]
> use. Please help someone my ASP.NET application are now
> really very slow after i ran that tool.

This can happen with profilers.

Once a process starts profiling, it can't stop.
On restart the process will start profiling again if the environment
variables tell it to.

So to stop profiling, you need to clear the environment variables and
restart the processes hosting the CLR.

So make sure the system environment variables are right, and try an
IISRESET.  If that doesn't work, reboot.

ASPNET_WP.exe won't see the change in the system environment until after
reboot.

David

David
websparc - 21 Nov 2003 16:54 GMT
When you say environment variables you mean clearing them
from registry? By the way I did reboot and restart the IIS
and still not able to make it fast. But I just noticed
yesterday when i rebuild my ASP.NET application which i
was profiling. It not happened after that. But now I'm
thinking two times before running CLR profiler and affraid
It'll again make my application slow.
Can you sugest some steps to stop building up pipe.txt
file under winnt/temp. Is there way to stop that? In other
words once i done profiling my application with CLR
profiler, Is there a way that i just want completly to
stop adding up file size of pipe.txt? because last time
i've checked that even after reboot I able to delete the
pipe.txt it again created and start increasing the file
size in mb's. but after i rebuild that application it not
happened again.

By the way this tool is really great, I not get chance to
look at it much but it provides abundant information about
your application.

>This can happen with profilers.
>
[quoted text clipped - 16 lines]
>
>.
Peter Sollich [MSFT] - 21 Nov 2003 17:51 GMT
Hi Websparc,

CLRProfiler is telling ASP.NET that it is being profiled
by setting certain environment variables in the registry.
Normally it deletes these when you're done profiling, but
if it crashes or you kill it before that, these values
stay in there. This seems to be the problem here.

To delete these registry settings, bring up regedit.

Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.

In there are subkeys for IISADMIN and W3SVC. For both of
these, if there's a registry value "Environment", delete
it.

When you get the new download (there's a link to it on
http://gotdotnet.com/team/clr/about_clr_performance.aspx),
it comes with a manual that documents these environment
variables.

Anyway, deleting these values should fix the problem.

This posting is provided "AS IS" with no warranties, and
confers no rights.

Please do not send e-mail directly to this alias. This
alias is for newsgroup purposes only.

Thanks
Peter

>-----Original Message-----
>When you say environment variables you mean clearing them
[quoted text clipped - 44 lines]
>>
>.
- 21 Nov 2003 18:13 GMT
Hi Peter,
  Thanks for your reply. I've read that part of document
which mentions clearing the environment variables. I've
done that. So anyways i take your points in mind and
appriciate your help.

Websparc

>-----Original Message-----
>Hi Websparc,
[quoted text clipped - 89 lines]
>>
>.
David Browne - 21 Nov 2003 21:02 GMT
> Hi Websparc,
>
[quoted text clipped - 12 lines]
> these, if there's a registry value "Environment", delete
> it.

Ahh. So that's how it turns on profiling for ASP without forcing a reboot.

IIS is coded to add those values to its environment on startup.

I always wondered.

David

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.