Run the MineMarket Service in Console Mode

Use this activity to run the MineMarket Service in a server console window.

To troubleshoot problems associated with the MineMarket Service, the MineMarket Service can be run in console mode. Various commands are available in this server console window to return information about the MineMarket Server.

Additional logging is also available in the console window. To enable this logging, uncomment the appender reference in the following code. The logging level can be changed to INFO or ERROR. The DEBUG logging level should only be used while investigating errors.

Copy
<log4net>
  <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
    <threshold value="ERROR" />
    <file value="MineMarketServerLog.txt" />
    <preserveLogFileNameExtension value="true" />
    <immediateFlush value="true" />
    <appendToFile value="true" />
    <rollingStyle value="Size" />
    <maxSizeRollBackups value="9" />
    <maximumFileSize value="1MB" />
    <staticLogFileName value="true" />
    <layout type="log4net.Layout.PatternLayout">
      <param name="ConversionPattern" value="%date %-5level %message%newline" />
    </layout>
  </appender>
  <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
    <threshold value="DEBUG" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date—%message%newline" />
    </layout>
  </appender>
  <root>
    <appender-ref ref="RollingLogFileAppender" />
    <!--<appender-ref ref="ConsoleAppender" />-->
  </root>
</log4net>

Note: Server statistics can also be accessed via the MineMarket Client interface.

Activity Steps

  1. Navigate to the MineMarket installation folder.
  2. Double-click BulkTrak.Server.exe.
  3. The following commands may be entered into the MineMarket Server console window:
    • ?—Display the MineMarket Server console help.
    • CALCOUNT—Display the count of objects in the State Engine object cache.
    • COUNT—Display a count of objects in the global cache.
    • CS—Clear statistics.
    • ES—Display exporting statistics.
    • EXIT—Stop the MineMarket Service and exit the Server console.
    • GC—Force the garbage collector to run and report memory usage.
    • LAR—Display a list of all referenced .NET assemblies in the console window. (Warning: This can contain a lot of information.)
    • LARF—Export a list of all referenced .NET assemblies to a file named BulkTrak.Server.ReferencedAssumblies.yyyyMMddHHmmss.txt, located in the same folder from where the MineMarket Server was run.
    • OS—Display object change notification statistics.
    • QS—Display the last query statistics.
    • S—Display State Engine statistics.
    • U—Display a list of currently logged in users (consuming licenses).
    • VERIFY—Check that the objects in the Calc Engine's memory match the objects in the database.
    • WS—Display warehousing statistics.