Red Gate forums :: View topic - Stopping a command line profiling of IIS
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 8
ANTS Performance Profiler 8 forum

Stopping a command line profiling of IIS

Search in ANTS Performance Profiler 8 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ksjoberg



Joined: 03 Oct 2013
Posts: 3

PostPosted: Thu Oct 03, 2013 8:59 am    Post subject: Stopping a command line profiling of IIS Reply with quote

Hi,

As a part of an automated performance test, we want to launch the ANTS Performance Profiler on an IIS site (keeping its original port), hit it with a web capacity test tool, stop the profiling and let it write out the reports and .app8results file.

However, there seems to be no way of stopping the profiling AND write out its results short of the profiled app stopping by itself (which IIS does not) or the profiling timing out (using the /timeout:xxx parameter). Obviously we want to stop the profiling after the web capacity test tool have completed, and in the best of worlds, we want to separate the profiling results into different "segments". For example: app startup, warm app, etc.

I acknowledge that of the above requests, some are relatively easy fixes and hopefully already in the product somewhere only I can't find them, and some are a higher hanging fruit. Nevertheless, they are all extremely valuable.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 547

PostPosted: Fri Oct 04, 2013 12:09 pm    Post subject: Reply with quote

Please let me know if I'm summarising this accurately (one feature request at a time):

- you would like the Profile.exe to be able to receive a "signal" from the profiled process such that it stops profiling, writes results- but *does not* stop itself?

And the motivation for this is a more efficient use of time (since at the moment, time is being wasted profiling nothing).

- you would like to see 'marks' in the profiling results which indicated different phases of your application's lifecycle?


Happily- we may have the solution for you already ("user events"):

http://www.red-gate.com/supportcenter/content/ANTS_Performance_Profiler/help/7.4/app_Working_with_the_time_line#o16339



(chapter entitled- "Adding custom event markers")

please let me know if this may help you here.
Back to top
View user's profile Send private message
ksjoberg



Joined: 03 Oct 2013
Posts: 3

PostPosted: Sat Oct 05, 2013 3:20 pm    Post subject: Reply with quote

Not quite accurate. Let me explain.
Quote:
you would like the Profile.exe to be able to receive a "signal" from the profiled process such that it stops profiling, writes results- but *does not* stop itself?


When a profiling of IIS is launched with the command line
Code:
'C:\Program Files\Red Gate\ANTS Performance Profiler 8\Profile.exe' /timeout:210 /RecordSqlIo /force /data:C:\PerfTest\ProfileIIS.app8results /project:".\iis8profile.app8"

The only way the ProfileIIS.app8results file is written to disk is if the profiling times out (in this case, after 210 seconds). This is because the w3wp.exe process of IIS does not automatically shutdown, and there are no ways to signal the profiler that "we're finished now, please save your data and detach the process!".

As it is currently, the timeout value specified needs to have margins for the load test to complete; even if the test completes in 60 seconds, the profiler will linger until it hits its timeout threshold.

In addition to this, because it takes a while for the IIS app to start up, we connect and start the profiling session too soon because in this instance, the code we want to profile is not the startup code or warmup section of the applications life time -- it's the runtime code, preferably after the application has "warmed up".

Therefore, the profiling data captured during the first few minutes are not of interest, but it is not negligible in its impact of the size of the generated profile data.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 547

PostPosted: Mon Oct 07, 2013 1:20 pm    Post subject: Reply with quote

Ok- this certainly is a feature request so I will add it to our list internally, thanks!

Have you tried using the 'attach-to a .NET 4 process' feature?

Conceivably this might give you what you need- some work would need to be done getting the timings correct but when they were correct, you could attach, profile what you need, detach, and write results.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group