We help IT Professionals succeed at work.
Get Started

C++ page fault tracking?

PMH4514 asked
Last Modified: 2013-11-20
I have a relatively small app written in C++ 6.0 that is basically an agent of sorts. It executes SQL server calls on a timed basis, and it can receive and forward incoming files. Even while it's running at "full throttle" will files being pushed in, processed and pushed out the mem and VM usage is never over around 30k..
The app remains running and I've noticed now after it's been running for 3 or 4 days that the page faults in the task manager is upwards of 9,000,000

Is there a way in my C++ 6.0 debugger that I could run it and have it stop when a page fault occurs? Some tool I can plug into the IDE to allow a break when a page fault occurs? I really have no idea what condition in my code is creating them.  I can't find a whole lot on page faults in my searches other than comments that lead me to think "don't worry about it" but this app will need to be running constantly, as a service and who knows how high the count could go.. It's not a memory intensive app, so how can I find and limit the page faults that are happening?

Watch Question
This problem has been solved!
Unlock 2 Answers and 19 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE