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

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

Command line profiling of IIS website

Search in ANTS Performance Profiler 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Narmatha



Joined: 31 Jan 2011
Posts: 3

PostPosted: Mon Jan 31, 2011 9:58 pm    Post subject: Command line profiling of IIS website Reply with quote

Hi,

We are trying to automate the process of profiling a website using Performance profiler from command line.
Code:
RedGate.Profiler.UI.exe /project:DC-AfterImproments.app6 /verbose /methodLevel /onlyWithSource /force /timeout:60  /htmlreport:NewResults.summary.html


When I execute this, the profiler application opens and does not start profiling immediately. Instead, it waits for the user to provide the url for the website to be profiled and click on the 'profile' button. The project name provided for the /project argument is the project to be profiled.

Can you please let me know how to automate the profile process
Back to top
View user's profile Send private message
dom.smith



Joined: 03 Jun 2010
Posts: 94
Location: Cambridge, UK

PostPosted: Tue Feb 01, 2011 11:06 am    Post subject: Reply with quote

Hi,

To use command line profiling, you need to use Profile.exe, not RedGate.Profiler.UI.exe
_________________
Dominic Smith,
Project Manager,
Red Gate Software.
Back to top
View user's profile Send private message
Narmatha



Joined: 31 Jan 2011
Posts: 3

PostPosted: Tue Feb 01, 2011 5:14 pm    Post subject: Command line profiling of IIS website Reply with quote

Hi,

Thanks for your reply.
But when the profiler is trying to start down, it throws an error. And teh results are not written

C:\Program Files\Red Gate\ANTS Performance Profiler 6>Profile.exe /project:test
app6 /verbose /methodLevel /onlyWithSource /force /timeout:60 /htmlreport:NewR
sults1.summary.html
ANTS Performance Profiler Command Line Utility V6.1.0.119
==============================================================================
Copyright c Red Gate Software Ltd 2010


== Initialising profiler

log4net:WARN XmlHierarchyConfigurator: Unable to set property [securityContext]
on object [log4net.Appender.FileAppender] using value [log4net.Util.NullSecurit
Context.Instance] (with acceptable conversion types)
Using the settings from the project file 'test.app6'
Preparing session
Starting IIS Profiling Host
Initializing ...
Stopping W3SVC ...
Error while starting IIS
Error while starting IIS
Error while trying to launch the application process

Exception
=========

RedGate.Profiler.Engine.Exceptions.CannotStartSessionException:
Could not start IIS.
at ?♣.↑▬♣.Launch()
at ↓☼♣.?☻.►‼(Licence )
at ↓☼♣.?☻.??♥(String[] )

Caused by RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException:
Could not start IIS.
at ?♣.◄↑♣.↔♣()
at ?♣.↑▬♣.Launch()

Caused by RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException:
Error stopping W3SVC
at ?→►.↓?►.??♥()
at ?♣.↑▬♣.??♥(↔←► )
at ?♣.◄↑♣.↔♣()

Caused by RedGate.Profiler.Engine.Startup.IIS.IISException:
Error stopping W3SVC
at ↔▬♣.?▬♣.☺▲♣()
at ↔▬♣.?▬♣.StartProfilingIIS(String , String )
at RedGate.Profiler.Engine.Startup.IIS.IISStarter`1.StartProfilingIIS(String
currentUserName, String subprocessVariableValue)
at ?→►.↓?►.??♥()

Caused by RedGate.Profiler.Engine.Startup.IIS.ServiceUtilitiesException:
Timed out starting 'W3SVC'
at ▬↨♣.?↨♣.⌂♣(String )
at ↔▬♣.?▬♣.☺▲♣()
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6649

PostPosted: Wed Feb 02, 2011 10:31 am    Post subject: Reply with quote

From the messages I would say that your project specifies the "profile on original port" option, which causes an IIS restart and doesn't enable you to profile on the original port anyway unless IIS is not running.

On IIS v6 and up, the way that ANTS Profiler starts a worker process requires a TCP port that is not in use.
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