1. Web Service Configuration

The Web Service uses the generic HammerDB configuration. The webservice section sets the port used by the Web Service. The commandline sqlite_db setting controls the SQLite jobs database used by HammerDB. By default TMP tells HammerDB to create or open hammer.DB in the operating system temporary directory.

<commandline>
  <sqlite_db>TMP</sqlite_db>
</commandline>

<webservice>
  <ws_port>8080</ws_port>
</webservice>

For normal reporting and CI usage an on-disk jobs database should be used. An in-memory database can be used for temporary testing, but job history, timing data, profile data, charts and generated reports will be lost when HammerDB exits.

The Jobs and Web Service options can also be configured from the HammerDB GUI. The Jobs option controls whether job output is stored in the SQLite jobs database. If Jobs is disabled, benchmark runs can still be executed, but job history and Web Service report output will not be recorded.

Figure 10.1. Jobs Option

Jobs Option

Figure 10.2. Jobs and Web Service Configuration

Jobs and Web Service Configuration