| Author |
Message |
Narmatha
Joined: 31 Jan 2011 Posts: 3
|
Posted: Mon Jan 31, 2011 9:58 pm Post subject: Command line profiling of IIS website |
|
|
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 |
|
 |
dom.smith
Joined: 03 Jun 2010 Posts: 64 Location: Cambridge, UK
|
Posted: Tue Feb 01, 2011 11:06 am Post subject: |
|
|
Hi,
To use command line profiling, you need to use Profile.exe, not RedGate.Profiler.UI.exe _________________ Dominic Smith,
ANTS Performance Profiler Project Manager,
.NET Division, Red Gate Software. |
|
| Back to top |
|
 |
Narmatha
Joined: 31 Jan 2011 Posts: 3
|
Posted: Tue Feb 01, 2011 5:14 pm Post subject: Command line profiling of IIS website |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Wed Feb 02, 2011 10:31 am Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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