Product Documentation

c-treeACE V11.0 Update Guide

Previous Topic

Next Topic

Memory Tracking with c-treeACE on Linux

In V11 and later, the memory allocation tracking feature of FairCom Server is supported on Linux systems. To use this feature, add DIAGNOSTICS MEMTRACK to ctsrvr.cfg.

The MEMTRACK keyword allows the ctstat utility to be used to log current memory allocations to a file. The following parameters can be used with ctstat:

  • -mf logfile - Log all memory allocations to the specified file
  • -ma logfile - Log aggregate memory allocations to the specified file
  • -mr min,max - Log only memory allocations in the range min,max
  • -ms - Output memory allocation statistics

Examples

C:\>ctstat -ms -h 10 -s FAIRCOMS

memseq memalc

1267 992

1289 997

1289 997

1289 997

To log all memory allocations (with each allocation listed separately) to the file memfull.log in the FairCom Server's working directory:

C:\>ctstat -mf memfull.log -i 1 1 -s FAIRCOMS

To log all memory allocations (with allocations having the same call stack listed only once each) to the file memaggr.log in the FairCom Server's working directory:

C:\>ctstat -ma memaggr.log -i 1 1 -s FAIRCOMS

To log all memory allocations that have sequence numbers between 1900 and 2000 to the file memaggr.log in the FairCom Server's working directory:

C:\>ctstat -ma memaggr.log -mr 1900,2000 -i 1 1 -s FAIRCOMS

TOCIndex