Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Monitor memory usage?

lklawrie
Beginner
1,214 Views
Does anyone have a nifty small routine that helps one monitor the memory usage of a running program?

Is there one in the samples?
0 Kudos
1 Solution
Steven_L_Intel1
Employee
1,214 Views
Look at the Win32\ProcessStatus sample.

View solution in original post

0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,215 Views
Look at the Win32\ProcessStatus sample.
0 Kudos
Les_Neilson
Valued Contributor II
1,214 Views
You could also look at the free Process Explorer from www.sysinternals.comwhich gives you a whole host of info. For example "Working Set", "Virtual Size" I/O reads and writes etc.
I find it useful when debugging for, among other things,showing which files are currently open.

Les
0 Kudos
Steven_L_Intel1
Employee
1,214 Views
I agree with Les - I find Process Explorer invaluable. But sometimes it can be handy to report the usage at specific points in the program. This won't really tell you exactly how much virtual memory is in use by the application, as the libraries will pre-allocate large chunks for their memory pools.
0 Kudos
SergeyKostrov
Valued Contributor II
1,214 Views
Quoting lklawrie
Does anyone have a nifty small routine that helps one monitor the memory usage of a running program?
...


In case of a Windows platform what about a Task Manager or aResource Monitor?

Botheasilyallow to monitor:

- Memory Usage
- Memory Usage Delta
- Peak Memory Usage
- Virtual Memory Size

for a system andapplications.

0 Kudos
Reply