Comments
13 comments
-
This happens reasonably often and normally means that there's is an out of memory problem (why it doesn't explicitly give OOM I don't know). To check this independently, can you tell me what the total memory usage on the machine at the time of error is (using, for example, Task manager)?
-
It has bout 6GB free, the machine itself has 8GB of RAM and is running 64bit Windows XP.
-
On a 64-bit system, the profiler is unlikely to run out of memory, so this is probably a genuine memory corruption issue of some variety.
Some kinds of reflection interfere with the line-level timing code used by the profiler (in particular, adding methods or classes to assemblies that are already loaded instead of to temporary assemblies). Could you try profiling with line-level timings disabled to see if that solves the problem? -
I have tried it with all of the various profiling methods and it happens with all of them unfortunatly.
-
If you can get a mini-dump with the exception in it we will gladly analyze it at:
support@red-gate.com
(just quote this forum subject) -
Hmm, it's possible that this crash is one that we've had some sporadic reports of but have never been able to reproduce here - on some systems trying to use the socket API causes the profiler to crash.
What kind of security software do you have installed on the machine that is exhibiting this issue - in particular anti-virus and firewall software?
Does forcing your application to run in 32-bit mode have any effect on the issue? -
I am experiencing the exact same issue. I have narrowed it down to SQL access methodology. Though I could not exactly pinpoint where the issue lies. First and foremost, I am sure that this is NOT what it seems. There is no instability, memory corruption or any other type of issue with the application that I am monitoring. I am doing this merely out of curiosity.
I was doing a search on this particular error when I came across this thread. I will try to create a small project for the RedGate guys to recreate the issue and post it here.
Here's what I know so far:
If you create a local datastore (SqlCe) and access it, then there is no problem.
If you try to access a database on another server, then you have a problem.
This may be because of windows security issues - Active Directory etc. So far, changing the connection string to various models did not help circumvent the problem (TCP/IP, NamedPipes, Trusted Security, No-Trusted Security etc). -
We would be extremely grateful to receive a project that reproduces this.
I'll set you up some secure ftp space to upload to if that would help. -
The tests that I ran:
[passed]. local sql2005 express db
[passed]. local sqlCE db
[passed]. local sql2005 (not express) db
[passed]. Remote sqlCE db
[failed]. remote sql2005 express db
[failed]. remote sql2005
[failed]. remote sql2008 (this database is my own web site's database server. It's hosted on a hosting facility and has nothing to do with AD security issues. The host name is an IP address and the connection is not secured)
In all the tests, I ran first without profiler, saw the data in the datagrid, and then tried to run it again with profiler and saw the crash. For your information a screenshot is also attached.
Briefly, when the database to which you are trying to connect is on another computer (except the CE database, that one did not matter) then as soon as you set the ConnectionString property of the connection object, the profiler crashes. You don't even need to do anything on the connection: no need to open, execute. Just say conn.ConnectionString = "connstring" and the profiler will crash.
My environment:
/***********************************************************/XP Prof SP3
AVG Antivirus
Microsoft Security Essentials
Personal Firewall TURNED OFF
Behind local NAT
/***********************************************************/
Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5 SP1 -
This is happening with me. Runs fine in normal debug mode but when trying to profile it I get the "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Error.
-
This is happening with me. Runs fine after a few writes to the database but first of all I get the "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Error.
but when I stop and start the DB it goes away.
I am using Oracle Express 10.0.2
Microsoft .NET Framework
Version 3.5 SP1
I am convinced it is a connection issue..
any light would be good. -
I have downloaded the latest release (eval) and I am happy to see that this problem is no more !!! Well done RedGate team. Now we can test this thoroughly
-
Hi,
I am also facing the same problem while profiling a web application, when I start performance profiling I get this error:
10 Jul 2013 17:37:42.771 [29] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process 14164 is apparently not running: Process with an Id of 14164 is not running.
10 Jul 2013 17:37:42.771 [29] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - Process with an Id of 14164 is not running.
10 Jul 2013 17:37:42.771 [29] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - System.ArgumentException
10 Jul 2013 17:37:42.771 [29] WARN RedGate.Profiler.Monitoring.PerformanceCounterFactory - at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
at RedGate.Profiler.Monitoring.PerformanceCounterFactory.GetInstanceNameForProcessID(Int32 processID)
10 Jul 2013 17:37:42.787 [29] WARN RedGate.Profiler.Monitoring.PerformanceDataAdapter - Invalid operation exception occurred whilst trying to retrieve counter sample: Instance 'w3wp#13' does not exist in the specified Category.
System.InvalidOperationException: Instance 'w3wp#13' does not exist in the specified Category.
at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
at System.Diagnostics.PerformanceCounter.NextSample()
at (Object )
at RedGate.Profiler.Monitoring.PerformanceDataAdapter.?(Object , UpdateTimerElapsedEventArgs )
Please give me the solution.
Add comment
Please sign in to leave a comment.
I am having trouble profiling a web application that I have made, when I load the default page I get this error:
My log for this profile is as follows:
Has anyone else encountered anything like this before?
Cheers
Sam