| Author |
Message |
sebastienf
Joined: 10 Oct 2011 Posts: 2
|
Posted: Mon Oct 10, 2011 5:04 pm Post subject: Performance Profiling not working at all |
|
|
I'm trying to profile an IIS 6 web application. Server is running WS2003, website is running on port 80, have a header adress, and a specific application pool.
The account launching Ants Performance Profiler is an administrator account.
So basicaly, I start the wizard, chose ASP.NET web application (IIS), choose the proper website in the dropdown, leave all the settings as they are, except for Unused port, that I had set on an unused port. I click to start profiling and get this error :
| Code: |
10 Oct 2011 16:45:06.540 [1] ERROR ??. - Failed to connect to target process because an exception occurred:
Could not start IIS.
Please check your settings and try again.
10 Oct 2011 16:45:06.540 [1] ERROR ??. - Could not start IIS.
10 Oct 2011 16:45:06.540 [1] ERROR ??. - RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
10 Oct 2011 16:45:06.540 [1] ERROR ??. - at ..Launch()
at RedGate.Profiler.Session.ProfilerSession.?()
10 Oct 2011 16:45:06.540 [1] ERROR ??. - Caused by:
10 Oct 2011 16:45:06.540 [1] ERROR ??. - Could not start IIS.
10 Oct 2011 16:45:06.540 [1] ERROR ??. - RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
10 Oct 2011 16:45:06.540 [1] ERROR ??. - at ..()
at ..Launch()
10 Oct 2011 16:45:06.540 [1] ERROR ??. - Caused by:
10 Oct 2011 16:45:06.540 [1] ERROR ??. - Timed out waiting for port 65527 on 94.236.53.91 to become available
10 Oct 2011 16:45:06.540 [1] ERROR ??. - RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
10 Oct 2011 16:45:06.540 [1] ERROR ??. - at ?.?.??()
at ..??( )
at ..()
10 Oct 2011 16:45:06.540 [1] ERROR ??. - Caused by:
10 Oct 2011 16:45:06.540 [1] ERROR ??. - Timed out waiting for port 65527 on 94.236.53.91 to become available
10 Oct 2011 16:45:06.540 [1] ERROR ??. - RedGate.Profiler.Engine.Startup.IIS.PortTimeoutException
10 Oct 2011 16:45:06.555 [1] ERROR ??. -
Server stack trace:
at RedGate.Profiler.Engine.Startup.IIS.IISUtilities.WaitForPort(IPAddress address, Int32 port, Int32 timeout)
at RedGate.Profiler.Engine.Startup.IIS.IISUtilities.WaitForPort(String hostname, Int32 port, Int32 timeout)
at ..StartProfilingIIS(String , String )
at RedGate.Profiler.Engine.Startup.IIS.IISStarter`1.StartProfilingIIS(String currentUserName, String subprocessVariableValue)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Profiler.Engine.Startup.IIISActuator`1.StartProfilingIIS(String currentUserName, String subprocessVariableValue)
at ?.?.??() |
(nice encoding handling btw)
If I try to use the original port, ants manage to stop everything but can't start the website again afterwards.
Also, in the log file I have those startup messages :
| Code: |
10 Oct 2011 16:39:53.657 [1] INFO RedGate.Profiler.Logging.LogService - Starting new ANTS Performance Profiler 6 session
10 Oct 2011 16:39:53.672 [1] INFO RedGate.Profiler.Logging.LogService - Assembly version: 6.3.0.147
10 Oct 2011 16:44:13.819 [1] WARN RedGate.Profiler.OS.Local.LocalWindowsVersionInspector - Detected Windows version: Windows Server 2003 Standard (5.2 64-bit Server)
10 Oct 2011 16:44:13.819 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - IIS is supported on installed OS version
10 Oct 2011 16:44:13.944 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Result of check to see if inetinfo.exe running: True
10 Oct 2011 16:44:13.944 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is running.
10 Oct 2011 16:44:13.944 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is enabled.
10 Oct 2011 16:44:13.944 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Successfully detected IIS installation: IIS 6 (Auto-detected)
10 Oct 2011 16:44:13.944 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is installed.
|
Thanks for your help ! |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Tue Oct 11, 2011 11:13 am Post subject: |
|
|
Thanks for all the log entries, but again, they do not help. Basically something has either gone wrong with w3wp or communications to the port are being blocked and the log not useful for telling us which.
You may want to start by checking the application event log - there may be indications as to why w3wp.exe is crashing -- if it is crashing.
In my opinion it's best to avoid IIS and try the development web server option - it's much less complex than the IIS option so it fails a lot less. _________________ 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 |
|
 |
sebastienf
Joined: 10 Oct 2011 Posts: 2
|
Posted: Tue Oct 11, 2011 11:50 am Post subject: |
|
|
Thank you for your answer. I looked at the event viewer and have indeed errors there (always the same) :
| Code: |
| .NET Runtime version 2.0.50727.3615 - Failed to CoCreate profiler. |
Do you know how I can fix this ?
[Edit]
I found this on the knowledge base : http://www.red-gate.com/supportcenter/Content?c=knowledgebase%5cANTS_Profiler%5cKB200810000313.htm&p=ANTS%20Profiler
Followed eveything, still not working
[Edit2]
Those errors, if related, does not occur when a profiling fails. I just tried, and the event viewer doesn't show any new error, even after a fail profiling. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Tue Oct 11, 2011 12:52 pm Post subject: |
|
|
If you have the permissions, the remaining possibilities are an installation problem or a crash in the profiler core initialization code. You can try to fix the former by running this on the command-line:
| Quote: |
| regsvr32 "c:\program files\red gate\ants performance profiler 6\ProfilerCore.dll" |
If it's failing in the initailization code, as you'd expect there is no supportability or logging to tell you why and the best we can do is memory dump w3wp.exe and analyze the stack trace. _________________ 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 |
|
 |
|