DataJet Server runs as the executable DatajetServer.exe. It is normally launched from a start-up script that sets the required file locations and ports, reads the server configuration file, and starts the core processor and socket server.
Start-up script
The server is started with a small script (for example, a Windows batch file) that changes to the binary folder and runs DatajetServer.exe with the required command-line options:
cd bin
DatajetServer.exe path=f:\datajet\ bin=f:\datajet\bin\ porta=5555 portb=5556 shareddatapath=D:\DJSharedData\sources datapath=f:\datajet\datasources\ mongoURL=127.0.0.1 mongoPort=27017 rms=48
pause
pause keeps the console window open after the process exits so that any start-up messages remain visible. Each parameter is described in command-line-options.
Configuration sources
Settings come from two places, applied in this order:
- Command-line options in the start-up script (see command-line-options).
- The server configuration file
djserver.cnfg(see server-configuration-file).
Where a setting appears in both, the value in djserver.cnfg takes precedence.
Default ports
If not otherwise set, the server listens on port 5555 for client/desktop connections and 5556 for the core processor.
Start-up log
On start-up the server writes a log (its location is shown as the Log line) recording the active configuration. Typical entries include:
| Entry | Meaning |
|---|---|
DatajetServer <version> | Server build version. |
Running On <machine> | Host machine name. |
| INI Path | Configuration-file folder, shown only when inipath is set. |
| Pool Size | Active process pool size. |
| Fragments / Cache / RMS / LGb | Engine tuning values in effect. |
| System Root / Binary Root / Data Root | Resolved path, bin, and datapath locations. |
| Local Login | Whether local login is allowed. |
| Plugins | Number of script plugins loaded. |
| Initializing Mongo / Core / Server | Start-up sequence reaching the database, core processor, and socket listener. |
The RMS value shown here is the current Requestable Memory Size; it can also be read or temporarily changed at runtime from the Command Line console.
Related
- command-line-options — start-up parameter reference.
- server-configuration-file —
djserver.cnfgreference. - DataJet Server Minimum Specifications.