JaxerManager Command Line Interface (CLI)The Jaxer process itself is effectively single-threaded, so a pool of Jaxer processes is used to handle multiple simultaneous requests. JaxerManager is the application that manages the lifecycle of these Jaxer processes, starting them up when it starts and spinning up new ones as the load increases, tearing them down when the load decreases or JaxerManager exits (or when a Jaxer is "misbehaving"), connecting them to the web server to handle requests, and configuring them. When you start up Jaxer, you're really starting up JaxerManager: check your list of processes for a single JaxerManager.exe (or jaxermanager on Mac OS X and Linux) and multiple Jaxer.exe (or jaxer) processes. JaxerManager listens on one port, its "web port", for requests from the web server, and routes them to Jaxers in its pool. It also listens on a different port, its "command port", for commands. These commands can also usually be specified on the command line when JaxerManager is started, or in a config file loaded when JaxerManager starts (or restarts/reloads). PrecedenceWhen JaxerManager starts, it processes the commands/settings in the following order (last setting wins):
Jaxer Commands and SettingsCommands and settings can be communicated to JaxerManager in three ways, each with its own format:
The following table lists all the commands, settings and parameters that JaxerManager understands, and if it can be specified in each of the three manners. To see the settings your manager supports, except for those only applicable to the CLI, execute On Windows, JaxerManager can also be run as a service (see details with JaxerManager --help) Note: The default value is the hardcoded in the manager binary.
Commands that can only be issued after JaxerManager has startedSent in the form of tellJaxerManager -p portNumber <cmd> or tellJaxerManager -p portNumber <cmd> <val>.
Actions against JaxerManager in a command shellYou can tell apart the input lines from the output lines because the former always start with tellJaxerManager.
D:\ajam\Aptana Jaxer\jaxer>tellJaxerManager -p 4328 get version *** 1.0.0.3989_RC_C D:\ajam\Aptana Jaxer\jaxer>tellJaxerManager get all version=1.0.0.3989_RC_C commandport=4328 jaxeridletimeout=10 loglevel=INFO maxmemory=150 maxprocesses=10 maxrequests=1000 minprocesses=1 pingtimeout=0 requesttimeout=0 roundrobinjaxers=on startjaxertimeout=30 timeout=0 webport=4327 log:filesize=500000 log:numbackups=10 log:output=D:\ajam\Aptana Jaxer\\logs\jaxer.log D:\ajam\Aptana Jaxer\jaxer>tellJaxerManager set maxprocesses 5 *** ok D:\ajam\Aptana Jaxer\jaxer>tellJaxerManager ping *** pong running D:\ajam\Aptana Jaxer\jaxer>tellJaxerManager maxprocesses *** Unknown command D:\ajam\Aptana Jaxer\jaxer>tellJaxerManager get maxprocesses 5 D:\ajam\Aptana Jaxer\jaxer>tellJaxerManager get foobar *** bad option D:\ajam\Aptana Jaxer\jaxer>tellJaxerManager stop *** ok |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
