Get docbase statistics

The docbasestats program will give the overall size of your docbase dictionaries (that is, the lists of indexed values), which is a good indication of the base memory needed.

It also provides a vast amount of additional data, described at the end of this procedure.

To get docbase statistics:

  1. Do one of the following:
    • If you plan to carry out this procedure on multiple docbases installed on a single server, stop the TEXTML Server service to take the docbases offline. Skip to Step 5.
    • If you plan to carry out this procedure on a single docbase while others remain available, go to Step 2.
  2. Open the TEXTML Server Administration Console and connect to the server.
  3. Right-click the docbase whose statistics you want to check and select Uninstall to take the docbase offline.
  4. Close or minimize the Administration Console.
  5. Open a command-line interface to the server.
  6. Navigate to the TEXTMLServer directory:
    cd %ProgramFiles%\IxiaSoft\TextmlServer[version]
  7. Enter the docbasestats command and arguments:
    DocbaseStats.exe --outfile Output-path-and-filename docbase-path
    docbase-log-path
    For example:
    DocbaseStats.exe --outfile c:\tmp\stats\docbase1.txt c:\docbases\docbase1 c:\docbases\docbase1
    Note: The --outfile Output-path-and-filename argument is optional; if you do not provide it, the statistics will be displayed directly in the command-line window.
  8. Press Enter.
    The statistics for the docbase are generated.
    Tip:
    • If you get an error -109, the docbase configuration file could not be loaded. Make sure that the DocumentBaseCfg.xml file found in the docbase directory (for example: /docbases/TEXTML[version]/Prod_v[cmsversion]) is valid and has content, and TEXTML Server is able to read it.
    • If you get an error -126, the docbase has an invalid storage version. Verify the value defined as the StorageVersion in the DocumentBaseCfg.xml file found in the docbase directory (for example: /docbases/TEXTML[version]/Prod_v[cmsversion]). For TEXTML Server version 4.5, the storage version should be 45XX. If the storage version is not correct, you must migrate your docbase to the correct version, see the Upgrading TEXTML Server from 4.3 to 4.4 for details.
  9. To view the statistics, open the text file you specified in Step 7.
  10. Restart TEXTML Server.