I’ve been using the built-in DS Profiler on a project for the past few months. Last week I changed the Profiler Configuration property “Number of days to keep results” to 365 so the profiles would stick around longer.
Now the Profile is only sampling a subset of rows, somewhere around 1%. Previously it was reading all the rows. The “Profiling size” property is still set to “All”. I never changed that.
Any idea why it’s only sampling the data now?
Where are the Profiler configuration values stored? I looked in the schema for the Profiler repository and found the PF_CONFIG table, but it is completely empty. I searched the O/S where the Job Server resides but didn’t find any obvious files.
I changed the Profiling Size property to “999999999” instead of “All”. That didn’t help one bit. I may try recreating the profiler repository from scratch. However, if those settings aren’t stored in the repository I don’t see how that is going to fix the problem.
Did you restart the job server in between making this change? Maybe something just got porked and restarting the job server service may bring it back to normal?
I detached the profiler repository from the job server and the CMC, started over from scratch with a clean repository using Repository Manager and then hooked everything back up. A restart of the job server was performed after detaching and after reattaching the profiler repository.
The profiling is still doing a sample of rows instead of all rows. So none of the above changes made any difference at all. My “Profiling size” property is showing “All”.
I think the problem is within the profiling job itself. The profiler configuration screen within the Management Console says to sample “All” rows. But it is clearly sampling a very small subset of rows. The number of rows sampled varies from table to table. It looks like it is sampling around 2%.
In the server_eventlog file I can see that the call to run the profiling job is using “All” as a parameter. Somehow the job is ignoring that parameter.
I can’t find an ATL file that has the source code for the profiling job.