Configuration Reference

« Back to documentation home

Overview

This page provides a reference for all configuration properties available in the trafficparrot.properties file. These properties control various aspects of Traffic Parrot's behavior, including GUI settings, system simulation configuration, and more.

Important Terminology: Traffic Parrot is a system and API simulator that creates simulations of your APIs and services. Throughout this documentation, you'll see references to:

  • System and API simulation (simulators)
  • Service virtualization (virtual services)
  • API mocking (mocks)

All these terms refer to the same capability: creating simulated versions of real services, APIs, and systems that respond to requests as if they were the actual services.

To modify these properties, edit the trafficparrot.properties file in your Traffic Parrot installation directory and restart the application for changes to take effect.

When a Value Is Wrong

A wrong value has one of three outcomes: Traffic Parrot does not start, it starts and logs a warning, or it starts and says nothing. So far the rows for the HTTP, HTTPS and JMX ports, the HTTP management port, the keystores, proxying and the header sizes say which.

When Traffic Parrot does not start, the reason is in logs/trafficparrot.log, near Could not start server. Read the log and not the start script's last line: for some of these the script prints Started Traffic Parrot before the server stops. The message often does not name the property:

  • java.lang.NumberFormatException: For input string: "abc": a property that takes a number holds something else, or is blank. A removed line takes the default instead.
  • Timed out waiting 15 seconds for port(s) [8080] to be freed, or Failed to bind to with Address already in use: another process holds the port, or two properties name the same one. Go by the port number in that message: the is available? lines that follow also say no for ports Traffic Parrot has opened itself.
  • port out of range:70000: a port above 65535.
  • Keystore was tampered with, or password was incorrect, or keystore password was incorrect: a keystore password is wrong or blank. The wording follows the keystore's format.
  • Resource 'certificates/my-keystore.jks' was not found on the classpath: the virtual service keystore is missing, or given by absolute path.
  • Invalid keystore format, or toDerInputStream rejects tag type: the file is not a keystore.
  • 'http://localhost:8080/ping' failed to start in 45000 ms, then Waiting timeout, with no error before them: the user interface did not answer on its HTTP port within trafficparrot.gui.startup.timeout.milliseconds, because trafficparrot.gui.http.port.enabled does not read as true or the port is 0.

Some values Traffic Parrot starts with are logged as warnings, such as:

  • Boolean property 'trafficparrot.virtualservice.proxy.enabled' has invalid value 'yes'; expected true or false, reading as false
  • trafficparrot.virtualservice.https.tls.protocols entry 'TLSv9' matches no TLS protocol version this JVM supports; check it for a typo, or matches no cipher suite this JVM supports for a cipher suite entry. If no protocol is left, an error line says that every handshake on the HTTPS port will fail.

Web User Interface Properties

These properties configure the Traffic Parrot web user interface (GUI) settings.

Web User Interface HTTP/HTTPS Port Configuration

Property Name Default Value Description
trafficparrot.gui.http.port 8080

HTTP port of the web user interface, served at http://localhost:[port].

With a value that is not a number from 1 to 65535, a blank one included, or a port another process holds, Traffic Parrot does not start.

trafficparrot.gui.http.port.enabled true

Whether the web user interface listens on its HTTP port. Leave it true: with false, or a value such as yes, the startup check, which asks the HTTP port, times out (after 45 seconds as shipped) and Traffic Parrot stops.

trafficparrot.gui.https.port 8079

HTTPS port of the web user interface, served at https://localhost:[port] with the keystore set below.

Traffic Parrot does not start with a value that is not a number, or, while HTTPS is on, a port another process holds.

Web User Interface HTTPS Configuration

Property Name Default Value Description
trafficparrot.gui.https.port.enabled true

Whether the web user interface listens on its HTTPS port. With false, or a value such as yes, HTTPS is off: Traffic Parrot starts and says nothing.

trafficparrot.gui.https.jks.resource certificates/user-interface-https.jks

Keystore for HTTPS connections to the web user interface, as a path relative to the installation directory. A missing file or an absolute path is not found: Traffic Parrot starts and says nothing, and every HTTPS connection fails.

trafficparrot.gui.https.jks.password trafficparrot

Password of the keystore in trafficparrot.gui.https.jks.resource. With a wrong or blank password and HTTPS on, Traffic Parrot does not start.

Security Note: In test and development environments, use a strong password and consider using environment variables or secure credential stores.

Important Notes

  • Both HTTP and HTTPS can be enabled simultaneously, allowing access via both protocols
  • These GUI ports are separate from the simulator (virtual service/mock) ports (8081 for HTTP, 8082 for HTTPS)
  • The GUI ports are used for managing Traffic Parrot, while simulator (virtual service/mock) ports handle the actual mocked/virtualized traffic
  • Ensure the selected ports are not already in use by other applications

Web User Interface Security and Access Control

Property Name Default Value Description
trafficparrot.gui.security.mode ALLOW_ALL

Whether the web user interface asks for a login.

  • ALLOW_ALL: no login.
  • LOGIN_PROPERTIES: HTTP basic authentication with the users in trafficparrot.gui.login.properties. Recommended, with HTTPS on.

See Role based access, which also covers the /__logs pages.

trafficparrot.gui.enabled true

Master switch to enable or disable the GUI entirely.

Values:

  • true - GUI server starts normally
  • false - GUI server won't start (useful for headless/API-only deployments)

Web User Interface Advanced Configuration

Property Name Default Value Description
trafficparrot.gui.forwardToVirtualService.enabled true

Whether a request to the web user interface port that matches none of its own endpoints is forwarded to the virtual service port, so both can be reached on one port. The performance profile sets false.

trafficparrot.gui.jmx.enabled false

Controls whether JMX (Java Management Extensions) is enabled for the GUI server.

Use Case: Enable this for remote monitoring and management of the GUI server using JMX tools.

trafficparrot.gui.jmx.port 8085

The port number for JMX connections when trafficparrot.gui.jmx.enabled is true.

It is read even with JMX off: with a value that is not a number, Traffic Parrot does not start.

trafficparrot.gui.startup.timeout.milliseconds 45000

How long, in milliseconds, to wait for the web user interface to start before giving up. Increase it on a slow system, or one that loads large configurations.

trafficparrot.gui.http.queuedThreadPool.maxThreads 200

The most threads the web user interface uses to handle HTTP requests. Increase it for many concurrent connections; each thread takes memory.

trafficparrot.gui.http.queuedThreadPool.minThreads 8

Sets the minimum number of threads in the Jetty thread pool for the Traffic Parrot GUI HTTP server.

Performance Impact: Controls the base number of threads available for handling GUI requests. Higher values ensure better responsiveness under load.

trafficparrot.gui.config.files.allowedFilesToEdit .json$,.csv$,.properties$,.hbs$

Comma-separated regex patterns for the files the configuration files editor (Settings, Current configuration files) and the Templates page list, load and save. See which files the editor offers.

trafficparrot.gui.config.files.notAllowedFilesToEdit ^\\.,\\.git,target,deleted-scenarios,trafficparrot.properties,trafficparrot.performance.properties,trafficparrot.gui.login.properties,.*-connections\\.json,sftp-server-users\\.json,log4j,lib

Comma-separated regex patterns for files and directories the configuration files editor will neither load nor save, credential files among them. It wins over the allowed list. See which files the editor offers.

trafficparrot.gui.feedback.link.enabled true

Shows the Send feedback link on the Help page, in the mapping editors' Available helpers panel and in the mapping explorer. The link carries the Traffic Parrot version and the page's path, nothing else. false hides the link.

trafficparrot.gui.diagnostics.download.enabled true

Whether GET /api/diagnostics on the web user interface port serves the diagnostics download. false turns it off: the port then answers that path as before, through the virtual service when forwarding is on, else with 404.

Which files the configuration files editor offers

The configuration files editor (Settings, Current configuration files) lists, loads and saves a file that trafficparrot.gui.config.files.allowedFilesToEdit matches and trafficparrot.gui.config.files.notAllowedFilesToEdit does not. The second list gates Load as well as Save, so a file it matches cannot be read through the editor either. Each pattern is matched against the file's path relative to the Traffic Parrot installation directory or the traffic files directory, so a directory name further up the machine's filesystem cannot trigger one. An installation that overrides either property keeps its own list, so carry the shipped entries below into it.

In trafficparrot.properties a backslash is written twice, as in the default above (^\\., .*-connections\\.json). The file format drops a single backslash, and ^. would then match every file, so the editor would offer none. The table and the edge cases below show each pattern as the regular expression Traffic Parrot reads, with one backslash.

The shipped allowed list takes .json, .csv, .properties and .hbs files. With .hbs in it, a Handlebars partial that a response template includes (see Template files) can be edited on the page, and the next response that includes it uses the edit, with no restart. Partials also have a page of their own, Tools, Templates, which lists the .hbs files under the traffic files directory and loads and saves them the same way, so both lists govern that page too. In the editor, a partial with another extension is listed only if its suffix is in the allowed list; the Templates page lists .hbs files only. An installation with its own allowed list adds .hbs$ to edit partials on either page.

What each entry of the shipped not-allowed list keeps out of the editor:

PatternWhat it keeps out
^\. A dot-prefixed directory or file in the first path segment, such as .idea, .vscode or .claude directly under the traffic files directory.
\.git .git, at any depth.
target, deleted-scenarios, log4j, lib Build and system directories.
trafficparrot.properties, trafficparrot.performance.properties Traffic Parrot's own properties files.
trafficparrot.gui.login.properties The web user interface's user store, which holds every user name, password and role when trafficparrot.gui.security.mode=LOGIN_PROPERTIES is set.
.*-connections\.json database-connections.json, ibm-mq-connections.json, jms-connections.json and any other file whose path contains -connections.json: the connection details and passwords for databases, IBM MQ queue managers and JMS brokers.
sftp-server-users\.json The embedded SFTP server's users file under its default name, which holds each user's password or authorized keys.

The not-allowed list is not a permission check on the user. Any other file the editor lists can be loaded and saved by every user who holds traffic-parrot-gui-edit-role, whatever the file holds, including a connections file whose path does not contain -connections.json. When trafficparrot.gui.security.mode=LOGIN_PROPERTIES is set, a signed-in user without that role sees the file names only, and the /api/configuration/files endpoints that load or save a file refuse that user with 403; with the default ALLOW_ALL nobody signs in, so every user can load and save. See Role based access.

Edge cases
  • A pattern matches when it is found anywhere in the path, so the lib entry also keeps out a file such as mappings/library.json.
  • A dot-prefixed directory nested deeper, such as mappings/.hidden, is not matched by ^\.; add /\. to the list, written /\\. in the file, to block dot-entries at any depth. A dot inside a file name is not affected, so report.v1.json stays editable.
  • Each credential entry keeps the file it names out of the editor and nothing more. Whatever the list says, the SFTP server's users file and its host key are also refused under the names trafficparrot.file.sftp.server.usersFile and trafficparrot.file.sftp.server.hostKeyFile give them, whether or not the server is enabled.
  • The editor keeps an LF-only file's line breaks: a file that uses LF alone is saved with LF, and a file with CRLF or mixed line breaks, a file with no line break, and a new file are saved with CRLF.

MCP Endpoint for AI Assistants

These properties control who may reach the /mcp endpoint, which lets an AI assistant drive Traffic Parrot. The endpoint is served on the web user interface port. See the MCP endpoint reference for the endpoint, the handshake and the tools it exposes, and Connect your assistant with MCP to point a client at it.

Property Name Default Value Description
trafficparrot.mcp.authenticator ALLOW_LOCAL_HOST_ONLY

How requests to /mcp are authenticated: ALLOW_LOCAL_HOST_ONLY accepts requests from this machine only, with no token; BEARER_TOKEN accepts them from anywhere when they carry the token in trafficparrot.mcp.token. See Who can reach it.

trafficparrot.mcp.token (none)

The bearer token a request to /mcp must carry when trafficparrot.mcp.authenticator=BEARER_TOKEN; Traffic Parrot will not start without it then. Ignored otherwise. Choose your own secret: there is no default.

trafficparrot.mcp.allowedOrigins (none)

Web origins allowed to drive /mcp from a browser: a comma-separated list, each entry scheme://host or scheme://host:port. The empty default refuses every browser-hosted client. List only origins you serve yourself. See From a browser.

System Simulation and Mocking Properties

These properties configure the core system simulation functionality that handles HTTP/HTTPS traffic. These simulators are also referred to as virtual servcies or API mocks in various contexts.

Basic Simulator and Mock Configuration

Property Name Default Value Description
trafficparrot.virtualservice.start true

Master switch that controls whether the system simulator component starts up.

Impact: When set to false, disables the entire simulation and mocking functionality (virtual services).

trafficparrot.virtualservice.startup.fail.on.skipped false

When true, Traffic Parrot refuses to start if start-up would leave out an HTTP or gRPC mapping file or an HTTP extension. See Refusing to start when something is left out.

trafficparrot.virtualservice.http.port 8081

Main HTTP port for the simulator (virtual service/mock) that handles mock HTTP requests.

With a port in use, the user interface's included, or a value that is not a number or is above 65535, Traffic Parrot does not start.

trafficparrot.virtualservice.https.port 8082

HTTPS port for the simulator (virtual service/mock) that handles mock HTTPS requests, with the virtual service keystore.

With a value that is not a number, or a port already in use, Traffic Parrot does not start.

trafficparrot.virtualservice.defaultPorts.followSelection true

Whether the default HTTP and HTTPS ports serve the selected virtual service (true) or always serve Default (false). Needs a restart.

Use Case: Set false to keep HTTP mocks in Default answering while you switch between messaging virtual services.

trafficparrot.virtualservice.composite.rebuildWhenAMemberChanges true

Whether saving a mapping file in a virtual service that is in Composite rebuilds Composite moments later. With false, such a save reaches Composite at its next rebuild. Needs a restart.

trafficparrot.virtualservice.https.tls.protocols (empty)

Comma-separated TLS protocol versions the virtual service HTTPS listener offers, in place of the Java defaults (TLSv1.3 and TLSv1.2). TLSv1.3 alone refuses TLSv1.2 clients. Blank keeps the defaults. See Restrict the TLS protocol versions and cipher suites.

trafficparrot.virtualservice.https.tls.protocols.exclude (empty)

Comma-separated TLS protocol versions the virtual service HTTPS listener refuses, added to the default exclusions (the SSL protocols). An excluded version stays excluded even if trafficparrot.virtualservice.https.tls.protocols names it. An unknown entry is logged as a warning at startup.

trafficparrot.virtualservice.https.tls.cipherSuites (empty)

Comma-separated cipher suites the virtual service HTTPS listener offers in place of the Java defaults, each a suite name or a regular expression such as ^TLS_AES_.*$. Blank keeps the defaults. See Restrict the TLS protocol versions and cipher suites.

trafficparrot.virtualservice.https.tls.cipherSuites.exclude (empty)

Comma-separated cipher suites the virtual service HTTPS listener refuses, for example TLS_AES_128_GCM_SHA256, added to the default exclusions, whatever trafficparrot.virtualservice.https.tls.cipherSuites names. An unknown entry is logged as a warning at startup. See Restrict the TLS protocol versions and cipher suites.

trafficparrot.virtualservice.proxy.defaultTargetUrl (empty)

Base URL of a backend, such as http://my-backend:8080: unmatched requests are forwarded there (HTTP Passthrough Proxy).

Not checked at startup: a value that is not a URL, or a backend refusing the connection, gives each unmatched request a 500.

trafficparrot.virtualservice.proxy.enabled true

Whether the passthrough proxy mapping is created on startup. Blank keeps the default; a value that is neither true nor false reads as false, with a log warning.

Set false to switch passthrough off without removing defaultTargetUrl (Disabling passthrough).

trafficparrot.virtualservice.http.management.port 8083

HTTP management API port of the simulator (virtual service/mock), used by automation tools and the user interface to manage mappings and configurations.

With a value that is not a number, or a port in use, Traffic Parrot does not start.

trafficparrot.virtualservice.jms.management.port 9093

JMS management port for administrative operations on JMS simulator (virtual service/mock).

Use Case: Used for managing JMS queue and topic virtualization.

Simulator and Mock Jetty Server Configuration

Property Name Default Value Description
trafficparrot.virtualservice.jettyAcceptors 1

Number of acceptor threads for the Jetty server handling simulator (virtual service/mock) requests.

Performance: Performance profile uses 4. Higher values improve connection handling under load.

trafficparrot.virtualservice.jettyAcceptQueueSize 0

Queue size for incoming connections. 0 means use system default.

Tuning: Increase for high-load scenarios to queue more incoming connections.

trafficparrot.virtualservice.jettyHeaderRequestSize 8192

Maximum size in bytes of a request's headers: a larger request gets a 431, with nothing in trafficparrot.log.

With a value that is not a number, Traffic Parrot does not start; 0 or -1 is accepted in silence.

trafficparrot.virtualservice.jettyHeaderResponseSize 8192

Maximum size in bytes of a response's headers. A mock response with larger headers reaches the client as a 500, though the log shows the mapping's status.

With a value that is not a number, Traffic Parrot does not start.

trafficparrot.virtualservice.containerThreads 100

Number of container threads for processing requests.

Performance: Performance profile uses 500. Higher values allow more concurrent request processing.

trafficparrot.virtualservice.startup.timeout.milliseconds 30000

Maximum time in milliseconds to wait for the simulator (virtual service/mock) to start up.

Default: 30000 (30 seconds)

Simulator and Mock Logging and Monitoring

Property Name Default Value Description
trafficparrot.virtualservice.httpRequestLoggingDisabled false

Controls whether HTTP request logging is disabled in the system simulator.

Performance: Set to true to disable request logging for better performance.

trafficparrot.virtualservice.accessLogsEnabled true

Controls whether access logs are enabled for the system simulator.

Performance: Set to false to disable access logging to improve performance.

trafficparrot.virtualservice.maxRequestJournalEntries 1000

How many requests each request journal (HTTP, gRPC, JMS and IBM MQ) keeps in memory for verification; older ones age out. More history uses more memory. 0 switches the journals off, as the performance profile does.

trafficparrot.virtualservice.journal.excludeBodyContentTypes video/MP2T,application/octet-stream

Comma-separated HTTP response Content-Type values whose bodies are left out of the request journal, so large binary responses such as HLS .ts video segments do not fill it. The request headers and metadata are still journaled.

trafficparrot.virtualservice.http.monitorPerformance false

Enable HTTP performance monitoring for the simulator (virtual service/mock).

Use Case: Enable for detailed performance analysis of simulator (virtual service/mock) responses.

trafficparrot.log.body.max.characters 10000

The longest JMS, IBM MQ or file message body (request or reply), in characters, written whole to logs/trafficparrot.log; a longer one is written as its start and its length. From 0 to 2147483647, which writes every body whole.

Simulator and Mock File System and Resources

Property Name Default Value Description
trafficparrot.virtualservice.trafficFilesRootUrl file:.

Root directory URL for traffic files (mappings, recorded data, etc.).

Examples: file:. (current dir), file:/path/to/data. Only file: URLs are supported.

trafficparrot.virtualservice.jmsConnectionsUrl classpath:jms-connections.json

Location of the JMS connections configuration file.

Use Case: Defines JMS broker connections for message virtualization.

trafficparrot.virtualservice.ibmMqConnectionsUrl classpath:ibm-mq-connections.json

Location of the IBM MQ connections configuration file.

Use Case: Defines IBM MQ manager connections for native MQ virtualization.

trafficparrot.virtualservice.rootDirectoriesUrl classpath:root-directories.json

Location of the root directories configuration file.

Use Case: Defines additional root directories for organizing traffic data.

trafficparrot.virtualservice.keystoreAndTruststore.jks.resource certificates/trafficparrot-keystore-and-truststore.jks

Keystore and truststore of the virtual service, for HTTPS and client certificate authentication: a path relative to the installation directory.

With a missing file, an absolute path or a file that is not a keystore, Traffic Parrot does not start.

trafficparrot.virtualservice.keystoreAndTruststore.jks.password trafficparrot

Password for the simulator (virtual service/mock) keystore/truststore file. With a wrong or blank password, Traffic Parrot does not start.

Security: Change this in test and development environments.

trafficparrot.multipart.location JAVA_TEMP_DIR

The directory that buffers multipart form-data uploads to the HTTP virtual service. JAVA_TEMP_DIR, or an empty value, is the JVM's java.io.tmpdir. Set an absolute path on a larger or faster filesystem when you stub large uploads.

trafficparrot.multipart.upload.max.size.mb 10

Maximum size, in megabytes, of a file uploaded through the web user interface's upload forms and the import REST endpoint. A larger upload is refused with 413 and nothing is stored. See what the limit covers.

What trafficparrot.multipart.upload.max.size.mb limits:

UploadWhere
A static file The Upload button on the Static Files browser, the HTTP __files manager.
An HTTP skeleton Import skeleton... on the HTTP Add/Edit mapping page: an OpenAPI or Swagger file imported as an HTTP skeleton.
A gRPC message skeleton Import skeleton... on the gRPC Add/Edit mapping page: a .proto file, .zip archive or precompiled descriptor set imported as a gRPC message skeleton.
Mappings to import The HTTP Import mappings REST endpoint, /http/management/importMappings.
A messaging mapping The form a JMS, IBM® MQ or file message Add/Edit mapping Save sends, response body included; see Binary replies in the editor.

An upload over the limit is rejected with HTTP 413 and a message naming the limit, for example The uploaded file exceeds the maximum upload size of N MB, shown in the form's error area; the file is not stored or imported. The limit does not affect recorded traffic or the size of a mapping file on disk. Raise it to upload larger response-body fixtures to __files or to import large OpenAPI specifications or proto descriptor sets; lower it to tighten what the admin endpoints accept.

Simulator and Mock Recording Properties

These properties control how Traffic Parrot records and processes traffic from real services.

Property Name Default Value Description
trafficparrot.virtualservice.ungzipBeforeWritingToDisk true

Controls whether gzipped responses are uncompressed before saving to disk during recording.

Impact: When enabled, makes recorded traffic files more readable but may increase disk usage.

trafficparrot.virtualservice.enableRedirectHandling false

Whether Traffic Parrot follows HTTP redirect chains itself while recording through the proxy. See Handling HTTP redirects during recording for the two modes compared.

trafficparrot.virtualservice.recordOnlyContentTypesContaining TP_RECORD_ALL_CONTENT_TYPES

Filters recording to only capture specific content types.

Default: TP_RECORD_ALL_CONTENT_TYPES (special value meaning record all)

Example: application/javascript,application/xml to record only JS and XML content

trafficparrot.http.recording.response.rewrite.regex  

Regex rules that rewrite response bodies during recording, as the client receives them and before they are saved.

Format: pattern->replacement,pattern2->replacement2. A malformed rule stops Traffic Parrot from starting. See URL rewriting during recording.

trafficparrot.http.recording.storage.rewrite.regex  

Regex rules applied when saving response bodies to disk during recording, typically in the opposite direction to the response rewrite, to preserve Handlebars templates. A malformed rule stops Traffic Parrot from starting. See URL rewriting during recording.

trafficparrot.http.recording.request.storage.rewrite.regex  

Regex rules applied when saving request bodies to disk during recording, keeping credentials out of traffic files. This changes the saved request matcher. A malformed rule stops Traffic Parrot from starting. See Rewriting request bodies during recording.

trafficparrot.http.recording.redaction.enabled false

Masks credential headers in what recording saves to disk: the recorded response headers, and the request headers recording matches on. true or false; any other value stops Traffic Parrot from starting. See Redacting credential headers during recording.

trafficparrot.http.recording.redaction.strategy PLACEHOLDER

What redaction does to a covered header: PLACEHOLDER replaces its value with the placeholder, DROP leaves the header out, HASH replaces its value with a token. Any other value stops Traffic Parrot from starting. See which to choose.

trafficparrot.http.recording.redaction.placeholder ***REDACTED***

The value written in place of a covered header's value under the PLACEHOLDER strategy, in the recorded response headers and in the saved request matcher alike.

trafficparrot.http.recording.redaction.headers  

Header names to redact besides Authorization, Cookie, Set-Cookie and Proxy-Authorization, separated by commas or spaces and matched without regard to case, for example X-Api-Key, X-Session-Token. An entry that is not a header name stops Traffic Parrot from starting.

trafficparrot.http.recording.redaction.hash.secret  

A secret folded into every token the HASH strategy writes, so the tokens are particular to this installation. Empty by default. Set it when a redacted value is short or guessable. See Redacting credential headers during recording.

trafficparrot.http.recording.response.inlineJson false

The default state of the Keep valid-JSON response body inline checkbox on the HTTP Record page; the checkbox overrides it for a session. See Keeping JSON response bodies inline.

trafficparrot.http.recording.request.externaliseToFile false

The default state of the Externalise request body to file checkbox on the HTTP Record page; the checkbox overrides it for a session. See Externalising request bodies to files.

trafficparrot.virtualservice.gzipHttpResponseEnabled true

Enables/disables gzip compression of HTTP responses from the simulator (virtual service/mock).

Performance: Reduces bandwidth usage but increases CPU usage for compression.

Simulator and Mock Caching and Performance Properties

These properties control caching behavior and performance optimizations.

Property Name Default Value Description
trafficparrot.virtualservice.mapping.cache.milliseconds 0

Cache duration for stub mappings in milliseconds.

Performance: Performance profile uses 10,000,000 ms. Caching reduces file I/O but uses more memory.

Default: 0 (no caching)

trafficparrot.virtualservice.handlebars.maxCacheEntries 0

Maximum number of entries in the Handlebars template cache.

Performance: Performance profile uses 10,000. Caching improves template rendering speed but uses memory.

Default: 0 (no caching)

trafficparrot.virtualservice.handlebars.select.indexAndCacheCsvFiles false

Enables indexing and caching of CSV files used in Handlebars select helpers.

Performance: Performance profile enables this. Significantly improves performance when using CSV data in templates.

Simulator and Mock Handlebars Template Properties

These properties control Handlebars templating behavior across all simulator (virtual service/mock) types.

Property Name Default Value Description
trafficparrot.virtualservice.handlebars.normalizeHelperParameters false

Controls parameter normalization in Handlebars helpers.

Impact: Affects how helper parameters are processed and validated.

trafficparrot.virtualservice.handlebars.now.provider HANDLEBARS

Selects the implementation for the {{now}} helper.

Values:

  • WIREMOCK - Uses WireMock version of {{now}} helper
  • HANDLEBARS - Uses Handlebars.java version of {{now}} helper
trafficparrot.virtualservice.handlebars.now.dynamic false

Allows runtime specification of the {{now}} provider.

Usage: When true, allows {{now provider='WIREMOCK'}} syntax in templates.

trafficparrot.virtualservice.handlebars.throwErrors false

What a Handlebars helper error does. With false the response body carries {{ helperName ERROR: message }}; with true the request fails, with HTTP 500 or a messaging failure, so a test fails. See Error handling.

Advanced Properties

These properties control advanced Traffic Parrot behavior and system-level configurations.

Property Name Default Value Description
trafficparrot.virtualservice.http.no.mapping.found.code 900

HTTP status code returned when no mapping is found for a request.

Use Case: Custom error code to distinguish between unmapped requests and real HTTP errors.

trafficparrot.mostly.printable.characters.threshold 0.95

Threshold (0.0-1.0) for determining if content is mostly printable characters.

Default: 0.95 (95% of characters must be printable)

Use Case: Used for message body analysis and logging decisions.

trafficparrot.jms.skipRecordingProperties JMSXDeliveryCount,JMSXUserID,JMS_IBM_PutApplType,JMS_IBM_PutDate,JMS_IBM_PutTime,JMSXAppID,JMS_IBM_MsgToken

Comma-separated list of JMS properties to skip during recording: system-generated or time-sensitive ones. An upgrade keeps your own list; see why JMS_IBM_MsgToken belongs in it.

trafficparrot.ibmmq.connect.options.accessQueue.input MQOO_INPUT_SHARED|MQOO_FAIL_IF_QUIESCING

IBM MQ connection options for queue access operations.

IBM MQ Flags: Controls how queues are opened for input (consumer) operations. Use MQOO_INPUT_EXCLUSIVE for exclusive access to a queue.

trafficparrot.ibmmq.connect.options.accessQueue.output MQOO_OUTPUT|MQOO_FAIL_IF_QUIESCING

IBM MQ connection options for queue access operations.

IBM MQ Flags: Controls how queues are opened for output (producer) operations.

gRPC System Simulation Properties

These properties configure the gRPC system simulation functionality for protocol buffer-based services. This includes creating gRPC simulators (also known as virtual services or API mocks).

Basic gRPC Configuration

Property Name Default Value Description
trafficparrot.virtualservice.grpc.enabled true

Master switch that controls whether gRPC system simulation functionality is enabled.

Enterprise Feature: Requires enterprise license with gRPC feature enabled.

Impact: When disabled, all gRPC functionality is unavailable.

trafficparrot.virtualservice.grpc.tls.port 5551

Port number for gRPC TLS/HTTPS connections.

Valid Range: 1-65535

Security: Used for secure gRPC communications with TLS encryption.

trafficparrot.virtualservice.grpc.non.tls.port 5552

Port number for gRPC non-TLS/HTTP connections.

Valid Range: 1-65535

Use Case: For development environments or when TLS is terminated elsewhere.

trafficparrot.virtualservice.grpc.tls.enabled true

Controls whether the TLS gRPC server is started.

Use Case: Set to false to disable the TLS gRPC port, for example in development environments where encryption is not needed. At least one of TLS or non-TLS must remain enabled.

trafficparrot.virtualservice.grpc.non.tls.enabled true

Whether the non-TLS gRPC port is started. Set false where only TLS connections should be accepted, in production for example. At least one of the TLS and non-TLS ports must stay enabled.

trafficparrot.virtualservice.grpc.passthrough.targets (empty)

Where a gRPC call no mapping matches is forwarded: one host:port, or comma-separated pattern -> host:port entries. Empty turns it off. Read at startup.

Use Case: Mock part of a service. See Passthrough.

gRPC TLS/SSL Configuration

Property Name Default Value Description
trafficparrot.virtualservice.grpc.requireClientAuthentication true

Controls whether mutual TLS client authentication is required.

Security: When enabled, clients must present valid certificates for authentication.

trafficparrot.virtualservice.grpc.serverTrustPemUrl classpath:certificates/grpc/ca.pem

Path to server's trusted CA certificates for TLS.

Format: PEM format certificate file

Usage: Validates client certificates when mutual TLS is enabled.

trafficparrot.virtualservice.grpc.serverPemUrl classpath:certificates/grpc/server.pem

Path to server's certificate file for TLS.

Format: PEM format certificate file

Usage: Server's public certificate for TLS connections.

trafficparrot.virtualservice.grpc.serverKeyUrl classpath:certificates/grpc/server.key

Path to server's private key file for TLS.

Format: PEM format private key file

Security: Keep this file secure and private.

trafficparrot.virtualservice.grpc.clientTrustPemUrl classpath:certificates/grpc/ca.pem

Path to client's trusted CA certificates for TLS.

Usage: For validating server certificates when making outbound gRPC calls.

trafficparrot.virtualservice.grpc.clientPemUrl classpath:certificates/grpc/client.pem

Path to client's certificate file for TLS.

Usage: Client certificate for mutual TLS authentication.

trafficparrot.virtualservice.grpc.clientKeyUrl classpath:certificates/grpc/client.key

Path to client's private key file for TLS.

Usage: Client private key for mutual TLS authentication.

trafficparrot.virtualservice.grpc.clientOverrideAuthority foo.test.google.fr

Authority hostname override for client connections.

Use Case: Useful for testing with self-signed certificates or when hostname doesn't match certificate.

trafficparrot.virtualservice.grpc.client.forceAlwaysTls false

Controls whether outbound gRPC client connections always use TLS, regardless of the target URL scheme.

Use Case: Set to true to force TLS for environments where plain-text gRPC must never be used.

gRPC Threading Configuration

Property Name Default Value Description
trafficparrot.virtualservice.grpc.server.boss.threads DOUBLE_NUMBER_OF_PROCESSORS

Number of Netty boss threads for gRPC server.

Values: DOUBLE_NUMBER_OF_PROCESSORS, NUMBER_OF_PROCESSORS, or specific integer

Performance: Boss threads handle connection acceptance.

trafficparrot.virtualservice.grpc.server.worker.threads DOUBLE_NUMBER_OF_PROCESSORS

Number of Netty worker threads for gRPC server.

Values: DOUBLE_NUMBER_OF_PROCESSORS, NUMBER_OF_PROCESSORS, or specific integer

Performance: Worker threads handle I/O operations.

trafficparrot.virtualservice.grpc.server.receiveThreads DOUBLE_NUMBER_OF_PROCESSORS

Number of threads for receiving gRPC messages.

Performance: Dedicated threads for message reception processing.

trafficparrot.virtualservice.grpc.server.sendThreads DOUBLE_NUMBER_OF_PROCESSORS

Number of threads for sending gRPC messages.

Performance: Dedicated threads for message transmission processing.

gRPC Performance and Caching

Property Name Default Value Description
trafficparrot.virtualservice.grpc.server.replay.maxMessagesWaitingToBeSent 1000

Maximum number of messages that can wait in the send queue.

Performance: Higher values allow more message buffering but use more memory.

trafficparrot.virtualservice.grpc.server.replay.proto.cache.milliseconds 0

Duration in milliseconds for caching protobuf definitions.

Performance Profile: 1200000 (20 minutes)

Performance: Caching reduces file I/O for proto definitions.

trafficparrot.virtualservice.grpc.server.replay.proto.cache.populate.on.startup false

Whether to populate the proto cache during startup.

Performance Profile: true

Trade-off: Slower startup for faster runtime performance.

trafficparrot.virtualservice.grpc.server.warmup.on.startup true

Whether to warm up gRPC server components during startup.

Performance: Pre-initializes components for better first-request performance.

gRPC Message Processing

Property Name Default Value Description
trafficparrot.virtualservice.grpc.exclude.request.headers.from.matching content-type,user-agent,grpc-accept-encoding

Comma-separated list of headers to exclude from request matching.

Use Case: Excludes volatile headers that shouldn't affect stubbing behavior.

trafficparrot.virtualservice.grpc.message.field.naming CAMEL_CASE

Controls how protobuf field names are rendered in JSON.

Values:

  • ORIGINAL - Preserve proto field names (e.g., input_name)
  • CAMEL_CASE - Convert to camelCase (e.g., inputName)
trafficparrot.virtualservice.grpc.openapi2proto.plugin.location AUTO_DETECT

Location of the openapi2proto plugin binary.

Values:

  • AUTO_DETECT - Searches plugins directory, $PATH, and $HOME/go/bin
  • Specific path - e.g., C:\\example\\openapi2proto.exe (in the file a backslash is written twice)

gRPC Schema Validation

Property Name Default Value Description
trafficparrot.virtualservice.grpc.check.mapping.schema.on.startup false

Whether to validate gRPC mappings against proto schemas during startup.

Use Case: Set to true to prevent startup with invalid mappings.

Example: Prevents startup if mapping references non-existent proto method.

trafficparrot.virtualservice.grpc.check.mapping.schema.allow.missing.fields false

Whether to allow mappings with missing fields during schema validation.

Dependencies: Works with check.mapping.schema.on.startup

Flexibility: When true, allows partial field coverage in mappings.

gRPC File Naming Templates

Property Name Default Value Description
trafficparrot.virtualservice.grpc.saved.mapping.file.name.template {{ mapping.package }}.{{ countGrpcMappings package=mapping.package offset=1 format='%02d' }}.{{ mapping.service }}-{{ mapping.method }}[{{ mapping.status.name }}]

Template for generating gRPC mapping file names.

Available properties: mapping.id, mapping.package, mapping.service, mapping.method, mapping.isSuccess, mapping.status.name, mapping.status.code

Available commands: countGrpcMappings with parameters for package, service, method, success, offset, format

trafficparrot.virtualservice.grpc.saved.mapping.file.name.collision.suffix.template -{{ mapping.id }}

Template for suffix when mapping file names collide.

Use Case: Appended when generated file name already exists.

Available properties: Same as main template plus additional Handlebars helpers.

WebSocket System Simulation Properties

These properties configure the WebSocket simulator (also referred to as a virtual service or API mock). It answers each inbound text frame from WebSocket mappings, is off by default, and is documented on the WebSocket page. WebSocket clients connect to the main virtual service HTTP port using Connection: Upgrade; there is no separate WebSocket port. Mappings are loaded from websocket-mappings/ in the selected scenario, or at the traffic files root when no scenario is selected.

Property Name Default Value Description
trafficparrot.websocket.enabled false

Whether the WebSocket virtual service starts. With true, clients connect on the main virtual service HTTP port with Connection: Upgrade, and mappings load from websocket-mappings/ in the selected scenario, or at the traffic files root when none is selected.

OpenAPI Integration Properties

These properties control OpenAPI specification import, validation, and processing functionality.

Property Name Default Value Description
trafficparrot.openapi.import.mode MATCHING_RESPONSE_CODE

Controls how OpenAPI specifications are imported into WireMock mappings.

Values:

  • MATCHING_RESPONSE_CODE - Uses response status in request matchers convention
  • SKELETON - Templates the mapping with the request and response structure
  • SELECT_RESPONSE_STATUS - Uses generic matcher, relies on x-traffic-parrot-select-response-status header
trafficparrot.openapi.import.on.startup false

Whether OpenAPI specifications should be automatically imported during startup.

Use Case: Useful for automated environments to pre-load API specifications.

Dependencies: Requires OpenAPI files in the configured openapi directory.

trafficparrot.openapi.request.validation.mode OFF

Controls OpenAPI request validation behavior.

Values:

  • OFF - Turns off validation completely
  • DEFAULT_VALIDATION - Turns on validation and provides default responses when not annotated
  • ONLY_ANNOTATED - Turns on validation only for annotated specifications
trafficparrot.openapi.skeletons.mode SKELETON

Controls how skeleton mappings are generated from OpenAPI specifications.

Values: Same as trafficparrot.openapi.import.mode

Use Case: Specifically for generating template/skeleton responses rather than full imports.

trafficparrot.virtualservice.openapi.check.mapping.schema.on.startup false

Whether startup stops when an HTTP mapping uses a URL path or method that the OpenAPI files in scenarios/{scenario}/openapi/ do not define. See OpenAPI schema check.

trafficparrot.openapi.vendor.extension.prefix x-traffic-parrot

Defines the prefix for vendor-specific OpenAPI extensions used by Traffic Parrot.

Examples:

  • x-traffic-parrot-validation - Custom validation rules
  • x-traffic-parrot-select-response-status - Response selection headers

Critical: Required for validation system and custom extensions to work properly.

IBM MQ Native Integration Properties

These properties configure native IBM MQ integration including logging, performance monitoring, and startup automation.

Property Name Default Value Description
trafficparrot.ibmmq.cicsBridge.enabled false

Answers and records IBM MQ CICS DPL bridge requests (messages with the format MQCICS) as the bridge does. With false, such a request is not answered and the log names this property. See CICS over IBM MQ.

trafficparrot.ibmmq.cicsBridge.requestCommareaHexWhenDecoded true

Whether a CICS bridge request whose COMMAREA the copybook decodes also carries the bytes as CommareaHex, which a mapping recorded before its program had a copybook matches on. With false it does not. Needs a restart.

trafficparrot.ibmmq.logger.logMessageBody true

Controls whether IBM MQ message bodies are logged.

Performance Profile: false

Use Case: Enable for debugging message content, disable for performance.

trafficparrot.ibmmq.logger.logMessageBodyAsPrintableCharacters false

Controls whether message bodies are logged as printable characters only.

Use Case: When enabled, filters binary content to only printable characters for log readability.

trafficparrot.ibmmq.monitorPerformance false

Enables performance monitoring for IBM MQ operations.

Output: Logs "Total processing time" metrics for IBM MQ message processing.

Use Case: Enable for performance analysis and troubleshooting.

trafficparrot.ibmmq.skipHeadersInRequestMessageBodyWhenMatching true

Controls whether headers are included in request message body during matching.

Impact: When true, excludes RFH headers from message body content when matching requests to recorded mappings.

Use Case: Improves matching accuracy by ignoring volatile header content.

trafficparrot.ibmmq.start.queue.replay.on.startup.script (empty)

Path to script file for IBM MQ queue replay on startup.

Format: File path or classpath URL to script file

Example: classpath:start-ibmmq-queue-replay-on-startup.txt

Use Case: Automate IBM MQ queue replay operations when Traffic Parrot starts.

JMS System Simulation Properties

These properties configure JMS message simulation with replay capabilities and startup automation. JMS simulators (virtual services/API mocks) can simulate message queues and topics.

Property Name Default Value Description
trafficparrot.jms.start.queue.replay.on.startup false

Enables automatic JMS queue replay on startup.

Dependencies: Requires valid connection IDs for consumer and producer.

Use Case: Automate JMS message replay without manual intervention.

trafficparrot.jms.start.queue.replay.on.startup.consumeRequestsFromConnectionId <specify a connectionId from jms-connections.json>

The connection JMS requests are consumed from when replay starts at startup.

Format: A connection ID from jms-connections.json, or USE-TRAFFIC-PARROT-INTERNAL-BROKER to start the internal broker and use it.

Performance Profile: not-used

Dependencies: Requires trafficparrot.jms.start.queue.replay.on.startup=true

trafficparrot.jms.start.queue.replay.on.startup.replayResponsesToConnectionId <specify a connectionId from jms-connections.json>

The connection JMS responses are sent to when replay starts at startup.

Format: A connection ID from jms-connections.json, or USE-TRAFFIC-PARROT-INTERNAL-BROKER to start the internal broker and use it.

Performance Profile: not-used

Dependencies: Requires trafficparrot.jms.start.queue.replay.on.startup=true

trafficparrot.jms.start.queue.replay.on.startup.internalBroker.port 9091

The internal broker's port. Read only when replay at startup uses USE-TRAFFIC-PARROT-INTERNAL-BROKER.

Allowed Values: A whole number from 1 to 65535. Blank means the default. Any other value stops Traffic Parrot during startup, with an error naming this property.

trafficparrot.jms.start.queue.replay.on.startup.internalBroker.protocol tcp

The internal broker's protocol. Read only when replay at startup uses USE-TRAFFIC-PARROT-INTERNAL-BROKER.

Allowed Values: tcp, or amqp for AMQP 1.0 clients, in lower case. Any other value stops Traffic Parrot during startup, with an error naming this property.

trafficparrot.jms.monitorPerformance false

Enables performance monitoring for JMS operations.

Output: Logs "Total processing time" metrics for JMS message processing.

Use Case: Enable for performance analysis and troubleshooting.

trafficparrot.jms.delivery.mode PERSISTENT

The JMS delivery mode of the messages the virtual service sends: PERSISTENT, NON_PERSISTENT, or the JMS DeliveryMode constant (2 persistent, 1 non-persistent). NON_PERSISTENT gives higher throughput where durability is not needed.

trafficparrot.messaging.diagnostics.enabled false

Whether unmatched JMS, IBM MQ and file messages are kept in the messaging request log with their closest mappings, as HTTP near-miss diagnosis does. For finding why a mapping does not match; leave it off where performance matters.

trafficparrot.virtualservice.messaging.check.mapping.schema.on.startup false

Whether startup stops when a JMS, native IBM® MQ or file message mapping in the current scenario does not match its mapping schema, except the files excluded in messaging-schema.properties. trafficparrot validate runs the same check without starting the server.

trafficparrot.activemq.broker.memory.limit.mb 128

Memory limit (MB) for the embedded ActiveMQ internal broker used by the JMS simulator.

Use Case: Increase when stubbing high-throughput JMS scenarios that buffer many in-flight messages.

trafficparrot.activemq.broker.temp.limit.mb 256

Temporary storage limit (MB) for the embedded ActiveMQ internal broker, used when memory-resident messages spill to temporary disk storage.

trafficparrot.activemq.broker.store.limit.mb 256

Persistent message store limit (MB) for the embedded ActiveMQ internal broker.

trafficparrot.activemq.broker.scheduler.limit.mb 256

Scheduler store limit (MB) for the embedded ActiveMQ internal broker, used for delayed and scheduled message delivery.

trafficparrot.activemq.broker.bind.address localhost

Where every internal ActiveMQ broker listens, page-started ones included: localhost (this machine or container only) or 0.0.0.0 (all interfaces), which a published container port needs. Any other value, 127.0.0.1 included, stops Traffic Parrot starting.

No authentication: read the warning first.

File Messaging Properties

These properties configure file message simulation over SFTP, FTP and Local File System connections, and the embedded SFTP server.

Property Name Default Value Description
trafficparrot.file.remote.temporaryFileNames *.tmp,*.part,*.filepart

Comma-separated file name patterns a connection never picks up from a request directory, because a client is still uploading them. A value replaces the default list. Example: *.inprogress. See How files on SFTP and FTP servers are picked up.

trafficparrot.file.body.inMemory.max.size.mb  

The largest file, in megabytes, read into memory; a larger file is handled by reference. Empty, the default, is a sixteenth of the heap.

Use Case: Raise it, and -Xmx in jvm.args, to match large files by content.

trafficparrot.file.record.largeResponses true

Whether recording records a response over trafficparrot.file.body.inMemory.max.size.mb, as a body file in __files. false forwards it without recording it, so its request gets no mapping.

Use Case: Keep large responses out of __files while recording.

trafficparrot.file.bodyFiles.readOnlyWhenChanged true

Whether a file message mapping's body file is read again only when it has changed since it was last read, as Large files describes. false reads every body file for every file received.

trafficparrot.file.sftp.server.enabled false

Whether Traffic Parrot runs the embedded SFTP server, where a system under test uploads request files and downloads replies, so a file gateway needs no SFTP server of its own. It needs a licence that includes file messaging.

trafficparrot.file.sftp.server.port 8022

The port the embedded SFTP server listens on. A port already in use stops Traffic Parrot starting.

Use Case: A client that can only connect on port 22: set 22, and run Traffic Parrot with the privilege that port needs.

trafficparrot.file.sftp.server.bindAddress 0.0.0.0

The address the embedded SFTP server listens on. The default accepts connections on every interface.

Use Case: Serve clients on the same machine only: set 127.0.0.1.

trafficparrot.file.sftp.server.rootDirectory sftp-server-root

The directory the users' home directories are created under. A relative path resolves against the Traffic Parrot installation directory. Uploads in progress are kept in .sftp-uploads under it. See the embedded SFTP server.

trafficparrot.file.sftp.server.usersFile sftp-server-users.json

The JSON file naming the users, their passwords or authorized keys and their home directories, read at start; see the embedded SFTP server. An upgrade carries the default name only, so copy a renamed file by hand.

trafficparrot.file.sftp.server.hostKeyFile sftp-server-host.key

The server's private host key, generated at the first start if absent and never rewritten. For a key of your own, see the embedded SFTP server. An upgrade carries the default name only, so copy a renamed key by hand.

Extension System Properties

These properties control Traffic Parrot's extensible architecture with customizable components for different protocols.

HTTP Extensions

Property Name Default Value Description
trafficparrot.http.handlebars.enabled true

Controls whether Handlebars template processing is enabled for HTTP responses.

Performance Profile: false

Dependencies: Works with trafficparrot.http.handlebars.helpers

trafficparrot.http.handlebars.helpers com.trafficparrot.http.handlebars.CsvDataFile,com.trafficparrot.http.handlebars.HttpNow,com.trafficparrot.http.handlebars.RandomDouble,com.trafficparrot.http.handlebars.RandomInteger,com.trafficparrot.http.handlebars.RandomString,com.trafficparrot.http.handlebars.RandomUUID,com.trafficparrot.http.handlebars.image.Image,com.trafficparrot.handlebars.script.Evaluate,com.trafficparrot.handlebars.script.ExecuteProcess

Comma-separated list of Handlebars helper class names for HTTP. See what each shipped class provides.

trafficparrot.http.cleanup.enabled true

Whether the HTTP menu shows the Cleanup link to the page that consolidates and prunes recorded mappings. With false, as in the performance profile, the link is hidden; the page and its REST API stay reachable by direct URL.

trafficparrot.http.mappings.persistentByDefault false

Whether a mapping added through the WireMock admin API without "persistent": true is written to a file under mappings/. With false it is held in memory, as in WireMock.

Performance Profile: false

trafficparrot.http.mappings.editKeepsFile true

Whether an HTTP edit that keeps the mapping's name is written back to its file. With false, editing a mapping in its own file writes one named after its name, at the top of mappings/.

Performance Profile: true

trafficparrot.mappings.export.filesAsTheyAre true

Whether an HTTP or gRPC export copies each mapping file as it is, at its path. With false, it writes every mapping afresh at the top of the mappings folder, and they import as new mappings.

Performance Profile: true

trafficparrot.grpc.export.mappingsFolder grpc-mappings

The ZIP folder a gRPC export puts its mappings in. With mappings, it is the folder an earlier release used; an import reads both. A blank value means grpc-mappings. Any other value stops Traffic Parrot from starting.

Performance Profile: grpc-mappings

trafficparrot.http.externalprocess.enabled false

Enables the external-process HTTP response transformer, which passes a response through an executable of yours. It runs as the Traffic Parrot OS user with no sandbox and needs trafficparrot.http.externalprocess.allowedDir set: see the threat model.

trafficparrot.http.externalprocess.allowedDir (empty)

The one directory the external-process transformer may run executables from, by their canonical (symlink-resolved) path. Empty means nothing is allowed, even with trafficparrot.http.externalprocess.enabled=true: both must be set.

trafficparrot.http.importfromurl.enabled false

Master switch for importing a specification from a URL, a request made from the Traffic Parrot host. It also gates fetching an OpenAPI example that names a URL with externalValue. Needs trafficparrot.http.importfromurl.allowedHosts.

Performance Profile: false

trafficparrot.http.importfromurl.allowedHosts (empty)

Comma-separated allow-list of host or host:port entries that import from URL may fetch from, externalValue examples included. Empty means nothing can be fetched. Loopback and private addresses are refused even when listed.

Performance Profile: (empty)

trafficparrot.http.jwt.enabled true

Enables JWT (JSON Web Token) processing capabilities for HTTP.

Performance Profile: false

Use Case: For JWT token validation and processing in HTTP requests.

trafficparrot.http.modify.response.enabled true

Enables HTTP response modification capabilities.

Performance Profile: false

Use Case: Allows dynamic modification of HTTP responses before sending to clients.

trafficparrot.http.optionsResponse.enabled true

Enables automatic HTTP OPTIONS response handling.

Performance Profile: false

Use Case: Automatically handles CORS preflight requests.

trafficparrot.http.soap.message.signer.enabled true

Enables SOAP message signing capabilities.

Performance Profile: false

Use Case: For WS-Security SOAP message signing functionality.

trafficparrot.http.webhooks.enabled true

Enables webhook functionality for HTTP responses.

Performance Profile: false

Use Case: Allows HTTP responses to trigger outbound webhook calls.

What each class in the shipped trafficparrot.http.handlebars.helpers list provides:

ClassWhat it provides
CsvDataFile Reads data from CSV files using coordinates.
HttpNow The current date and time.
RandomDouble Random double values.
RandomInteger Random integer values.
RandomString Random strings, up to 10,000 characters.
RandomUUID Random UUIDs.
Image The {{image}} helper: a placeholder PNG of a given size, as a Base64 string. Pair it with the base64-decode-body response transformer so the response carries the raw PNG.
Evaluate Evaluates script expressions.
ExecuteProcess Runs an external process on the host and inserts its output. Remove it from the list to disable the helper.

Response Transformers

Property Name Default Value Description
trafficparrot.http.responsetransformers com.trafficparrot.virtualservice.extensions.responsetransformer.UpdateContentLengthTransformer,com.trafficparrot.virtualservice.extensions.responsetransformer.HlsStreamTransformer,com.trafficparrot.virtualservice.extensions.responsetransformer.Base64DecodeBodyResponseTransformer,com.trafficparrot.virtualservice.extensions.responsetransformer.HmacSigningTransformer

Comma-separated list of response transformer class names for HTTP; empty means none. A class that cannot be loaded is left out and the rest are served. See the built-in and custom transformers.

Performance Profile: (empty)

trafficparrot.jms.responsetransformers com.trafficparrot.messaging.jms.JmsPassthroughMessage

Comma-separated list of response transformer class names for JMS.

Performance Profile: (empty)

Default Transformer: JmsPassthroughMessage - Passes JMS messages through without modification

trafficparrot.ibmmq.responsetransformers (empty)

Comma-separated list of response transformer class names for IBM MQ.

Use Case: Custom transformation of IBM MQ messages before sending responses.

trafficparrot.file.responsetransformers (empty)

Comma-separated list of response transformer class names for file-based messaging.

Use Case: Custom transformation of file messages before processing.

Messaging Protocol Handlebars

Property Name Default Value Description
trafficparrot.jms.handlebars.enabled true

Controls Handlebars template processing for JMS messages.

Performance Profile: false

trafficparrot.jms.handlebars.helpers com.trafficparrot.http.handlebars.RandomDouble,com.trafficparrot.http.handlebars.RandomInteger,com.trafficparrot.http.handlebars.RandomString,com.trafficparrot.http.handlebars.RandomUUID,com.trafficparrot.handlebars.script.Evaluate,com.trafficparrot.handlebars.script.ExecuteProcess

JMS-specific Handlebars helpers (excludes CSV and HTTP-specific helpers).

Performance Profile: (empty)

trafficparrot.ibmmq.handlebars.enabled true

Controls Handlebars template processing for IBM MQ messages.

Performance Profile: false

trafficparrot.ibmmq.handlebars.helpers com.trafficparrot.http.handlebars.RandomDouble,com.trafficparrot.http.handlebars.RandomInteger,com.trafficparrot.http.handlebars.RandomString,com.trafficparrot.http.handlebars.RandomUUID,com.trafficparrot.handlebars.script.Evaluate,com.trafficparrot.handlebars.script.ExecuteProcess

IBM MQ-specific Handlebars helpers (same as JMS).

Performance Profile: (empty)

trafficparrot.file.handlebars.enabled true

Controls Handlebars template processing for file-based messaging.

Performance Profile: false

trafficparrot.file.handlebars.helpers com.trafficparrot.http.handlebars.RandomDouble,com.trafficparrot.http.handlebars.RandomInteger,com.trafficparrot.http.handlebars.RandomString,com.trafficparrot.http.handlebars.RandomUUID,com.trafficparrot.handlebars.script.Evaluate,com.trafficparrot.handlebars.script.ExecuteProcess

File messaging-specific Handlebars helpers.

Performance Profile: (empty)

Enterprise Features

These properties configure enterprise-ready authentication, licensing, and monitoring capabilities.

Okta SSO Integration

Property Name Default Value Description
trafficparrot.okta.enabled false

Master switch to enable/disable Okta SSO functionality.

Impact: When enabled, adds OAuth2/OIDC authentication to the web UI.

Flow: Implements Authorization Code flow with session-based and Bearer token authentication.

trafficparrot.okta.clientId some_client_id

OAuth2 client identifier for the Traffic Parrot application registered in Okta.

Usage: Used in authorization URL construction and token exchange requests.

Required: Application will fail if not properly configured.

trafficparrot.okta.clientSecret some_client_secret

OAuth2 client secret for authenticating with Okta token endpoint.

Security: Combined with clientId for Basic Auth in token exchange.

Storage: Sensitive credential that should be securely stored.

trafficparrot.okta.oktaAuthorizeUri https://${yourOktaDomain}/oauth2/default/v1/authorize

Okta authorization endpoint for OAuth2 Authorization Code flow.

Parameters: Includes client_id, response_type=code, scope=openid, redirect_uri, state

Format: Must be valid HTTPS URL pointing to Okta authorization server.

trafficparrot.okta.oktaTokenUri https://${yourOktaDomain}/oauth2/default/v1/token

Okta token endpoint for exchanging authorization codes for access tokens.

Usage: HTTP POST request with grant_type=authorization_code, redirect_uri, code

Response: Extracts access_token for JWT validation.

trafficparrot.okta.oktaIssuerUri https://${yourOktaDomain}/oauth2/default

Okta issuer URI for JWT token validation.

JWT Validation: Validates JWT 'iss' claim matches this value.

Security: Part of JWT signature verification process.

trafficparrot.okta.oktaAudience api://default

Expected audience claim in JWT access tokens.

JWT Validation: Validates JWT 'aud' claim contains this value.

Security: Ensures tokens are intended for this application.

trafficparrot.okta.oktaRedirectUri https://some-TP-deployment-uri

OAuth2 redirect URI where Okta returns authorization codes.

Configuration: Must match exactly what's configured in Okta application settings.

Usage: URL-encoded in authorization requests and token exchange requests.

License Management

Property Name Default Value Description
trafficparrot.license.usage.server DEFAULT

Your on-premise license server, read only under an on-premise license, in the form that license was issued for:

  • host:port - direct, with TLS by default
  • https://host/path - through an HTTPS proxy

Left at DEFAULT, the virtual service does not start.

trafficparrot.license.usage.custom.headers NONE

Read only under an on-premise license: HTTP headers for a license server behind an HTTPS proxy, as comma-separated Name:value pairs: Authorization:Bearer token,Environment:Test.

An entry with no colon stops the start, and a value is cut at a second colon.

trafficparrot.telemetry.<name> (none)

A team tag for this instance, for example trafficparrot.telemetry.team=payments, sent to an on-premise license server and carried by the instance's own metrics. Up to 10 tags. Rules and reserved names: Team tags.

trafficparrot.telemetry.enabled false

Whether GET /api/metrics is served on the user interface ports: this instance's usage metrics in Prometheus text format, behind the user interface's login (no token is needed under Okta). See Instance metrics for the metrics and scrape configuration.

JMX Monitoring

Property Name Default Value Description
trafficparrot.virtualservice.jmx.enabled false

Enables JMX monitoring for the simulator simulator (virtual service/mock).

Use Case: Enable for remote monitoring and management using JMX tools.

MBeans: Exposes management beans for simulator simulator (virtual service/mock) monitoring.

trafficparrot.virtualservice.jmx.port 8084

Specifies the port for simulator (virtual service/mock) JMX connector.

It is read even with JMX off: with a value that is not a number, Traffic Parrot does not start.

Dependencies: Requires trafficparrot.virtualservice.jmx.enabled=true

Access: JMX management interface available on this port.

Debug Logging Configuration

To enable debug logging for inspecting issues with HTTP requests and responses, add the following log4j configurations to your trafficparrotserver.log4j.properties file (as specified in the jvm.args file with -Dtrafficparrotserver.logging.properties.filename=trafficparrotserver.log4j.properties):

Copy and paste this entire block into your log4j properties file:

# Debug logging for HTTP requests and responses
log4j.logger.WireMock=DEBUG
log4j.logger.com.github.tomakehurst.wiremock.http.ProxyResponseRenderer=DEBUG
log4j.logger.com.github.tomakehurst.wiremock.http=DEBUG
log4j.logger.com.github.tomakehurst.wiremock.servlet=DEBUG
log4j.logger.org.eclipse.jetty.server.HttpChannel=DEBUG
log4j.logger.org.eclipse.jetty.server.HttpConnection=DEBUG
log4j.logger.org.eclipse.jetty.http.HttpParser=DEBUG
log4j.logger.org.eclipse.jetty.http.HttpGenerator=DEBUG
log4j.logger.org.eclipse.jetty.server.Request=DEBUG
log4j.logger.org.eclipse.jetty.server.Response=DEBUG
log4j.logger.org.apache.hc=DEBUG
log4j.logger.org.apache.hc.client5.http.headers=DEBUG
log4j.logger.org.apache.hc.client5.http.wire=DEBUG

Individual Logger Descriptions:

Logger Configuration Description
log4j.logger.WireMock=DEBUG Enable debug logging for WireMock core functionality
log4j.logger.com.github.tomakehurst.wiremock.http.ProxyResponseRenderer=DEBUG Debug logging for proxy response rendering
log4j.logger.com.github.tomakehurst.wiremock.http=DEBUG Debug logging for WireMock HTTP handling
log4j.logger.com.github.tomakehurst.wiremock.servlet=DEBUG Debug logging for WireMock servlet operations
log4j.logger.org.eclipse.jetty.server.HttpChannel=DEBUG Debug logging for Jetty HTTP channel processing
log4j.logger.org.eclipse.jetty.server.HttpConnection=DEBUG Debug logging for Jetty HTTP connections
log4j.logger.org.eclipse.jetty.http.HttpParser=DEBUG Debug logging for Jetty HTTP parsing
log4j.logger.org.eclipse.jetty.http.HttpGenerator=DEBUG Debug logging for Jetty HTTP generation
log4j.logger.org.eclipse.jetty.server.Request=DEBUG Debug logging for Jetty request processing
log4j.logger.org.eclipse.jetty.server.Response=DEBUG Debug logging for Jetty response processing
log4j.logger.org.apache.hc=DEBUG Debug logging for Apache HttpClient
log4j.logger.org.apache.hc.client5.http.headers=DEBUG Debug logging for HttpClient headers
log4j.logger.org.apache.hc.client5.http.wire=DEBUG Debug logging for HttpClient wire-level communication (raw HTTP data)

Performance Impact

Enabling debug logging, especially wire-level logging, will significantly impact performance and generate large log files. Only enable these settings when debugging specific issues and disable them in production environments.

Performance Profile Considerations

Performance vs Functionality Trade-offs

Traffic Parrot includes a performance profile (trafficparrot.performance.properties) that optimizes many properties for high-load scenarios:

Disabled Features (Performance Mode)
  • Extension System: Most Handlebars helpers, response transformers, JWT processing
  • Logging: IBM MQ message body logging, request journaling
  • Advanced Features: SOAP signing, webhooks, automatic OPTIONS responses
Optimized Settings (Performance Mode)
  • Thread Pools: Increased container threads (500 vs 100)
  • Caching: Enabled mapping cache (10M ms), Handlebars cache (10K entries)
  • gRPC: Optimized proto caching and startup population
  • CSV Processing: Enabled indexing and caching for better performance
Recommendations
  • Development: Use standard configuration for full feature access
  • Testing: Standard configuration for comprehensive validation
  • Test Environment High-Load: Performance profile for maximum throughput
  • Test Environment Low-Load: Standard configuration with selective feature tuning

Performance Testing Guide

For comprehensive performance testing strategies, benchmarking techniques, and optimization tips, see our dedicated Performance Testing Guide.

Missing something? See When the docs do not say for where else to look, or tell us what this page lacks.