Red Gate forums :: View topic - Profiler seems not to work with log4net
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

Profiler seems not to work with log4net

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



Joined: 16 Nov 2011
Posts: 2

PostPosted: Wed Nov 16, 2011 9:12 pm    Post subject: Profiler seems not to work with log4net Reply with quote

I started a profiling session for a .Net executable, but it seems to be conflicting with log4net.

I get the following error when the profiling job is started:

log4net:ERROR [RollingFileAppender] Unable to acquire lock on file d:\logs\xxxx.log. The process cannot access the file 'd:\logs\xxxx.log' because it is being used by another process.

What can I do to successfully enable the profiling session?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Thu Nov 17, 2011 1:38 pm    Post subject: Reply with quote

I can't say as we have never seen this problem before. Profiler also uses Log4Net, but it logs to a location that would more than likely not interfere with yours.

Are you able to work out which process is using the file? Maybe it's antivirus as that does wonderful, random things once you introduce the profiler core component into a process.
Back to top
View user's profile Send private message
wsyeager



Joined: 16 Nov 2011
Posts: 2

PostPosted: Thu Nov 17, 2011 7:15 pm    Post subject: Reply with quote

Brian, going another route....

I don't see an option to profile a web service that is hosted on IIS.

How would I do that?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Mon Nov 21, 2011 4:20 pm    Post subject: Reply with quote

Same as profiling a web application. Only minimize the IE when it opens, as closing this will stop profiling. Get whatever consumes the webservice running and you should see results. Of course if you choose profile on unused port you have to change the contract on your service consumer to use the new port.

Good Luck!!
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