|
JMeter example source code file (jmeter.properties)
The JMeter jmeter.properties source code################################################################################ # Apache JMeter Property file ################################################################################ ## Licensed to the Apache Software Foundation (ASF) under one or more ## contributor license agreements. See the NOTICE file distributed with ## this work for additional information regarding copyright ownership. ## The ASF licenses this file to You under the Apache License, Version 2.0 ## (the "License"); you may not use this file except in compliance with ## the License. You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, software ## distributed under the License is distributed on an "AS IS" BASIS, ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## See the License for the specific language governing permissions and ## limitations under the License. #Preferred GUI language. Comment out to use the JVM default locale's language. #language=en # Additional locale(s) to add to the displayed list. # The current default list is: en, fr, de, no, es, tr, ja, zh_CN, zh_TW, pl, pt_BR # [see JMeterMenuBar#makeLanguageMenu()] # The entries are a comma-separated list of language names #locales.add=zu # Netscape HTTP Cookie file cookies=cookies #--------------------------------------------------------------------------- # File format configuration for JMX and JTL files #--------------------------------------------------------------------------- # Properties: # file_format - affects both JMX and JTL files # file_format.testplan - affects JMX files only # file_format.testlog - affects JTL files only # # Possible values are: # 2.1 - initial format using XStream # 2.2 - updated format using XStream, with shorter names # N.B. format 2.0 (Avalon) is no longer supported #--------------------------------------------------------------------------- # XML Parser #--------------------------------------------------------------------------- # XML Reader(Parser) - Must implement SAX 2 specs xml.parser=org.apache.xerces.parsers.SAXParser #--------------------------------------------------------------------------- # SSL configuration #--------------------------------------------------------------------------- ## SSL System properties are now in system.properties # JMeter no longer converts javax.xxx property entries in this file into System properties. # These must now be defined in the system.properties file or on the command-line. # The system.properties file gives more flexibility. # By default, SSL session contexts are now created per-thread, rather than being shared. # The original behaviour can be enabled by setting the JMeter property: #https.sessioncontext.shared=true # Default HTTPS protocol level: #https.default.protocol=TLS # This may need to be changed here (or in user.properties) to: #https.default.protocol=SSLv3 # List of protocols to enable (unlikely to be needed): #https.socket.protocols=SSLv2Hello SSLv3 TLSv1 #--------------------------------------------------------------------------- # Look and Feel configuration #--------------------------------------------------------------------------- #Classname of the Swing default UI #Installed Look and Feel classes on Windows are: # Metal = javax.swing.plaf.metal.MetalLookAndFeel # Motif = com.sun.java.swing.plaf.motif.MotifLookAndFeel # Windows = com.sun.java.swing.plaf.windows.WindowsLookAndFeel # # Or one of the strings "System" or "CrossPlatform" which means # JMeter will use the corresponding string returned by UIManager.get<name>LookAndFeelClassName() # LAF can be overridden by os.name (lowercased, spaces replaced by '_') # Sample os.name LAF: #jmeter.laf.windows_xp=javax.swing.plaf.metal.MetalLookAndFeel # Failing that, the OS family = os.name, but only up to first space: # Sample OS family LAF: #jmeter.laf.windows=javax.swing.plaf.metal.MetalLookAndFeel # Failing that: # default LAF jmeter.laf=javax.swing.plaf.metal.MetalLookAndFeel # Failing that, JMeter uses the CrossPlatform LAF. # Mac apparently looks better with the System LAF jmeter.laf.mac=System # Icon definitions # default: #jmeter.icons=org/apache/jmeter/images/icon.properties # alternate: #jmeter.icons=org/apache/jmeter/images/icon_1.properties #Components to not display in JMeter GUI (GUI class name or static label) # These elements are deprecated: HTML Parameter Mask,HTTP User Parameter Modifier not_in_menu=HTML Parameter Mask,HTTP User Parameter Modifier #--------------------------------------------------------------------------- # Remote hosts and RMI configuration #--------------------------------------------------------------------------- # Remote Hosts - comma delimited remote_hosts=127.0.0.1 #remote_hosts=localhost:1099,localhost:2010 # RMI port to be used by the server (must start rmiregistry with same port) #server_port=1099 # To change the port to (say) 1234: # On the server(s) # - set server_port=1234 # - start rmiregistry with port 1234 # On Windows this can be done by: # SET SERVER_PORT=1234 # JMETER-SERVER # # On Unix: # SERVER_PORT=1234 jmeter-server # # On the client: # - set remote_hosts=server:1234 # To change the default port (1099) used to access the server: #server.rmi.port=1234 # To use a specific port for the JMeter server engine, define # the following property before starting the server: #server.rmi.localport=4000 # From JMeter 2.3.1, the jmeter server creates the RMI registry as part of the server process. # To stop the server creating the RMI registry: #server.rmi.create=false # From JMeter 2.3.1, define the following property to cause JMeter to exit after the first test #server.exitaftertest=true #--------------------------------------------------------------------------- # Logging Configuration #--------------------------------------------------------------------------- # Note: JMeter uses Avalon LogKit # Logging Format # see http://avalon.apache.org/logkit/api/org/apache/log/format/PatternFormatter.html # # Default format: #log_format=%{time:yyyy/MM/dd HH:mm:ss} %5.5{priority} - %{category}: %{message} %{throwable} # \n is automatically added to the end of the string # # Predefined formats in the JMeter LoggingManager: #log_format_type=default #log_format_type=thread_prefix #log_format_type=thread_suffix # default is as above # thread_prefix adds the thread name as a prefix to the category # thread_suffix adds the thread name as a suffix to the category # Note that thread name is not included by default, as it requires extra processing. # # To change the logging format, define either log_format_type or log_format # If both are defined, the type takes precedence # Note that these properties cannot be defined using the -J or -D JMeter # command-line flags, as the format will have already been determined by then # However, they can be defined as JVM properties #Logging levels for the logging categories in JMeter. Correct values are FATAL_ERROR, ERROR, WARN, INFO, and DEBUG # To set the log level for a package or individual class, use: # log_level.[package_name].[classname]=[PRIORITY_LEVEL] # But omit "org.apache" from the package name. The classname is optional. Further examples below. log_level.jmeter=INFO log_level.jmeter.junit=DEBUG #log_level.jmeter.control=DEBUG #log_level.jmeter.testbeans=DEBUG #log_level.jmeter.engine=DEBUG #log_level.jmeter.threads=DEBUG #log_level.jmeter.gui=WARN #log_level.jmeter.testelement=DEBUG #log_level.jmeter.util=WARN #log_level.jmeter.util.classfinder=WARN #log_level.jmeter.test=DEBUG #log_level.jmeter.protocol.http=DEBUG # For CookieManager, AuthManager etc: #log_level.jmeter.protocol.http.control=DEBUG #log_level.jmeter.protocol.ftp=WARN #log_level.jmeter.protocol.jdbc=DEBUG #log_level.jmeter.protocol.java=WARN #log_level.jmeter.testelements.property=DEBUG log_level.jorphan=INFO #Log file for log messages. # You can specify a different log file for different categories via: # log_file.[category]=[filename] # category is equivalent to the package/class names described above # Combined log file (for jmeter and jorphan) #log_file=jmeter.log # To redirect logging to standard output, try the following: # (it will probably report an error, but output will be to stdout) #log_file= # Or define separate logs if required: #log_file.jorphan=jorphan.log #log_file.jmeter=jmeter.log # If the filename contains paired single-quotes, then the name is processed # as a SimpleDateFormat format applied to the current date, for example: #log_file='jmeter_'yyyyMMddHHmmss'.tmp' #--------------------------------------------------------------------------- # HTTP Java configuration #--------------------------------------------------------------------------- # Number of connection retries performed by HTTP Java sampler before giving up #http.java.sampler.retries=10 # 0 now means don't retry connection (in 2.3 and before it meant no tries at all!) #--------------------------------------------------------------------------- # HTTPClient configuration #--------------------------------------------------------------------------- # define a properties file for overriding httpclient parameters # See: http://hc.apache.org/httpclient-3.x/preference-api.html #httpclient.parameters.file=httpclient.parameters # set the socket timeout (or use the parameter http.socket.timeout) # Value is in milliseconds #httpclient.timeout=0 # 0 == no timeout # Set the http version (defaults to 1.1) #httpclient.version=1.0 (or use the parameter http.protocol.version) # Define characters per second > 0 to emulate slow connections #httpclient.socket.http.cps=0 #httpclient.socket.https.cps=0 #Enable loopback protocol #httpclient.loopback=true # Define the local host address to be used for multi-homed hosts #httpclient.localaddress=1.2.3.4 # Sample logging levels for HttpClient # Note that full category names are used, i.e. must include the org.apache. # Info level produces no output: #log_level.org.apache.commons.httpclient=debug # Might be useful: #log_level.org.apache.commons.httpclient.Authenticator=trace # Show headers only #log_level.httpclient.wire.header=debug # Full wire debug produces a lot of output; consider using separate file: #log_level.httpclient.wire=debug #log_file.httpclient=httpclient.log # Further logging configuration # Excalibur logging provides the facility to configure logging using # configuration files written in XML. This allows for such features as # log file rotation which are not supported directly by JMeter. # # If such a file specified, it will be applied to the current logging # hierarchy when that has been created. # #log_config=logkit.xml # HttpClient Logging information can be found at: # http://jakarta.apache.org/httpcomponents/httpclient-3.x/logging.html # N.B. When JMeter starts, it sets the system property: # org.apache.commons.logging.Log # to # org.apache.commons.logging.impl.LogKitLogger # if not already set. This causes HttpClient to use the same logging as JMeter # #--------------------------------------------------------------------------- # Results file configuration #--------------------------------------------------------------------------- # This section helps determine how result data will be saved. # The commented out values are the defaults. # legitimate values: xml, csv, db. Only xml and csv are currently supported. #jmeter.save.saveservice.output_format=xml # true when field should be saved; false otherwise # assertion_results_failure_message only affects CSV output #jmeter.save.saveservice.assertion_results_failure_message=false # # legitimate values: none, first, all #jmeter.save.saveservice.assertion_results=none # #jmeter.save.saveservice.data_type=true #jmeter.save.saveservice.label=true #jmeter.save.saveservice.response_code=true # response_data is not currently supported for CSV output #jmeter.save.saveservice.response_data=false # Save ResponseData for failed samples #jmeter.save.saveservice.response_data.on_error=false #jmeter.save.saveservice.response_message=true #jmeter.save.saveservice.successful=true #jmeter.save.saveservice.thread_name=true #jmeter.save.saveservice.time=true #jmeter.save.saveservice.subresults=true #jmeter.save.saveservice.assertions=true #jmeter.save.saveservice.latency=true #jmeter.save.saveservice.samplerData=false #jmeter.save.saveservice.responseHeaders=false #jmeter.save.saveservice.requestHeaders=false #jmeter.save.saveservice.encoding=false #jmeter.save.saveservice.bytes=true #jmeter.save.saveservice.url=false #jmeter.save.saveservice.filename=false #jmeter.save.saveservice.hostname=false #jmeter.save.saveservice.thread_counts=false #jmeter.save.saveservice.sample_count=false #jmeter.save.saveservice.idle_time=false # Timestamp format - this only affects CSV output files # legitimate values: none, ms, or a format suitable for SimpleDateFormat #jmeter.save.saveservice.timestamp_format=ms #jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss.SSSS # For use with Comma-separated value (CSV) files or other formats # where the fields' values are separated by specified delimiters. # Default: #jmeter.save.saveservice.default_delimiter=, # For TAB, since JMeter 2.3 one can use: #jmeter.save.saveservice.default_delimiter=\t # Only applies to CSV format files: #jmeter.save.saveservice.print_field_names=false # Optional list of JMeter variable names whose values are to be saved in the result data files. # Use commas to separate the names. For example: #sample_variables=SESSION_ID,REFERENCE # N.B. The current implementation saves the values in XML as attributes, # so the names must be valid XML names. # Versions of JMeter after 2.3.2 send the variable to all servers # to ensure that the correct data is available at the client. # Optional xml processing instruction for line 2 of the file: #jmeter.save.saveservice.xml_pi=<?xml-stylesheet type="text/xsl" href="../extras/jmeter-results-detail-report_21.xsl"?> #--------------------------------------------------------------------------- # Settings that affect SampleResults #--------------------------------------------------------------------------- # Save the start time stamp instead of the end # This also affects the timestamp stored in result files sampleresult.timestamp.start=true #--------------------------------------------------------------------------- # Upgrade property #--------------------------------------------------------------------------- # File that holds a record of name changes for backward compatibility issues upgrade_properties=/bin/upgrade.properties #--------------------------------------------------------------------------- # JMeter Proxy recorder configuration #--------------------------------------------------------------------------- # If the proxy detects a gap of at least 1s (default) between HTTP requests, # it assumes that the user has clicked a new URL #proxy.pause=1000 # Add numeric prefix to Sampler names (default false) #proxy.number.requests=true # Change the default HTTP Sampler # Java: #jmeter.httpsampler=HTTPSampler # Apache HTTPClient: #jmeter.httpsampler=HTTPSampler2 # Default content-type include filter to use #proxy.content_type_include=text/html|text/plain|text/xml # Default content-type exclude filter to use #proxy.content_type_exclude=image/.*|text/css|application/.* # Default headers to remove from Header Manager elements # (Cookie and Authorization are always removed) #proxy.headers.remove=If-Modified-Since,If-None-Match,Host # Binary content-type handling # These content-types will be handled by saving the request in a file: #proxy.binary.types=application/x-amf,application/x-java-serialized-object # The files will be saved in this directory: #proxy.binary.directory=user.dir # The files will be created with this file filesuffix: #proxy.binary.filesuffix=.binary #--------------------------------------------------------------------------- # JMeter Proxy configuration #--------------------------------------------------------------------------- # use command-line flags for user-name and password #http.proxyDomain=NTLM domain, if required by HTTPClient sampler # SSL configuration #proxy.cert.directory=. #proxy.cert.file=proxyserver.jks #proxy.cert.type=JKS #proxy.cert.keystorepass=password #proxy.cert.keypassword=password #proxy.cert.factory=SunX509 #proxy.ssl.protocol=SSLv3 #--------------------------------------------------------------------------- # HTTPSampleResponse Parser configuration #--------------------------------------------------------------------------- # Space-separated list of parser groups HTTPResponse.parsers=htmlParser wmlParser # for each parser, there should be a parser.types and a parser.className property #--------------------------------------------------------------------------- # HTML Parser configuration #--------------------------------------------------------------------------- # Define the HTML parser to be used. # Default parser: #htmlParser.className=org.apache.jmeter.protocol.http.parser.HtmlParserHTMLParser # Other parsers: #htmlParser.className=org.apache.jmeter.protocol.http.parser.JTidyHTMLParser #htmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser # htmlParser.types=text/html application/xhtml+xml application/xml text/xml #--------------------------------------------------------------------------- # WML Parser configuration #--------------------------------------------------------------------------- wmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser wmlParser.types=text/vnd.wap.wml #--------------------------------------------------------------------------- # Remote batching configuration #--------------------------------------------------------------------------- # Remote batching support # default is Standard, which returns each sample # Hold retains samples until end of test (may need lots of memory) # Batch returns samples in batches # Statistical returns sample stats # hold_samples was originally defined as a separate property, # but can now also be defined using mode=Hold # mode can also be the class name of an implementation of org.apache.jmeter.samplers.SampleSender #mode=Standard #mode=Batch #mode=Hold #mode=Statistical #Set to true to key statistical samples on threadName rather than threadGroup #key_on_threadname=false #mode=Stripped #mode=StrippedBatch #mode=org.example.load.MySampleSender #hold_samples=true #num_sample_threshold=100 # # Value is in milliseconds #time_threshold=60000 # To set the Monitor Health Visualiser buffer size, enter the desired value # monitor.buffer.size=800 #--------------------------------------------------------------------------- # TCP Sampler configuration #--------------------------------------------------------------------------- # The default handler class #tcp.handler=TCPClientImpl # # eolByte = byte value for end of line # set this to a value outside the range -128 to +127 to skip eol checking #tcp.eolByte=1000 # # status.prefix and suffix = strings that enclose the status response code #tcp.status.prefix=Status= #tcp.status.suffix=. # # status.properties = property file to convert codes to messages #tcp.status.properties=mytestfiles/tcpstatus.properties #--------------------------------------------------------------------------- # Summariser configuration (mainly applies to non-GUI mode) #--------------------------------------------------------------------------- # Summariser settings # # Define the following property to automatically start a summariser with that name # (applies to non-GUI mode ony) #summariser.name=summary # # interval between summaries (in seconds) default 3 minutes #summariser.interval=180 # # Write messages to log file #summariser.log=true # # Write messages to System.out #summariser.out=true #--------------------------------------------------------------------------- # BeanShell configuration #--------------------------------------------------------------------------- # BeanShell Server properties # # Define the port number as non-zero to start the http server on that port #beanshell.server.port=9000 # The telnet server will be started on the next port # # Define the server initialisation file beanshell.server.file=../extras/startup.bsh # # Define a file to be processed at startup # This is processed using its own interpreter. #beanshell.init.file= # # Define the intialisation files for BeanShell Sampler, Function and other BeanShell elements # N.B. Beanshell test elements do not share interpreters. # Each element in each thread has its own interpreter. # This is retained between samples. #beanshell.sampler.init=BeanShellSampler.bshrc #beanshell.function.init=BeanShellFunction.bshrc #beanshell.assertion.init=BeanShellAssertion.bshrc #beanshell.listener.init=etc #beanshell.postprocessor.init=etc #beanshell.preprocessor.init=etc #beanshell.timer.init=etc # The file BeanShellListeners.bshrc contains sample definitions # of Test and Thread Listeners. #--------------------------------------------------------------------------- # MailerModel configuration #--------------------------------------------------------------------------- # Number of successful samples before a message is sent #mailer.successlimit=2 # # Number of failed samples before a message is sent #mailer.failurelimit=2 #--------------------------------------------------------------------------- # CSVRead configuration #--------------------------------------------------------------------------- # CSVRead delimiter setting (default ",") # Make sure that there are no trailing spaces or tabs after the delimiter # characters, or these will be included in the list of valid delimiters #csvread.delimiter=, #csvread.delimiter=; #csvread.delimiter=! #csvread.delimiter=~ # The following line has a tab after the = #csvread.delimiter= #--------------------------------------------------------------------------- # __time() function configuration # # The properties below can be used to redefine the default formats #--------------------------------------------------------------------------- #time.YMD=yyyyMMdd #time.HMS=HHmmss #time.YMDHMD=yyyyMMdd-HHmmss #time.USER1= #time.USER2= #--------------------------------------------------------------------------- # CSV DataSet configuration #--------------------------------------------------------------------------- # String to return at EOF (if recycle not used) #csvdataset.eofstring=<EOF> #--------------------------------------------------------------------------- # LDAP Sampler configuration #--------------------------------------------------------------------------- # Maximum number of search results returned by a search that will be sorted # to guarantee a stable ordering (if more results then this limit are retruned # then no sorting is done). Set to 0 to turn off all sorting, in which case # "Equals" response assertions will be very likely to fail against search results. # #ldapsampler.max_sorted_results=1000 # Number of characters to log for each of three sections (starting matching section, diff section, # ending matching section where not all sections will appear for all diffs) diff display when an Equals # assertion fails. So a value of 100 means a maximum of 300 characters of diff text will be displayed # (+ a number of extra characters like "..." and "[[["/"]]]" which are used to decorate it). #assertion.equals_section_diff_len=100 # test written out to log to signify start/end of diff delta #assertion.equals_diff_delta_start=[[[ #assertion.equals_diff_delta_end=]]] #--------------------------------------------------------------------------- # Miscellaneous configuration #--------------------------------------------------------------------------- # If defined, then start the mirror server on the port #mirror.server.port=8080 # ORO PatternCacheLRU size #oro.patterncache.size=1000 #TestBeanGui # #propertyEditorSearchPath=null # Turn expert mode on/off: expert mode will show expert-mode beans and properties #jmeter.expertMode=true # Maximum redirects to follow in a single sequence (default 5) #httpsampler.max_redirects=5 # Maximum frame/iframe nesting depth (default 5) #httpsampler.max_frame_depth=5 # The encoding to be used if none is provided (default ISO-8859-1) #sampleresult.default.encoding=ISO-8859-1 # CookieManager behaviour - should cookies with null/empty values be deleted? # Default is true. Use false to revert to original behaviour #CookieManager.delete_null_cookies=true # CookieManager behaviour - should variable cookies be allowed? # Default is true. Use false to revert to original behaviour #CookieManager.allow_variable_cookies=true # CookieManager behaviour - should Cookies be stored as variables? # Default is false #CookieManager.save.cookies=false # CookieManager behaviour - prefix to add to cookie name before storing it as a variable # Default is COOKIE_; to remove the prefix, define it as one or more spaces #CookieManager.name.prefix= # CookieManager behaviour - check received cookies are valid before storing them? # Default is true. Use false to revert to previous behaviour #CookieManager.check.cookies=true # (2.0.3) JMeterThread behaviour has been changed to set the started flag before # the controllers are initialised. This is so controllers can access variables earlier. # In case this causes problems, the previous behaviour can be restored by uncommenting # the following line. #jmeterthread.startearlier=false # (2.2.1) JMeterThread behaviour has changed so that PostProcessors are run in forward order # (as they appear in the test plan) rather than reverse order as previously. # Uncomment the following line to revert to the original behaviour #jmeterthread.reversePostProcessors=true # (2.2) StandardJMeterEngine behaviour has been changed to notify the listeners after # the running version is enabled. This is so they can access variables. # In case this causes problems, the previous behaviour can be restored by uncommenting # the following line. #jmeterengine.startlistenerslater=false # Number of milliseconds to wait for a thread to stop #jmeterengine.threadstop.wait=5000 # If running non-GUI, then JMeter listens on the following port for a shutdown message. # To disable, set the port to 0. #jmeterengine.nongui.port=4445 #Should JMeter expand the tree when loading a test plan? #onload.expandtree=true # Maximum size of HTML page that can be displayed; default=200 * 1024 # Set to 0 to disable the size check #view.results.tree.max_size=0 #JMS options # Enable the following property to stop JMS Point-to-Point Sampler from using # the properties java.naming.security.[principal|credentials] when creating the queue connection #JMSSampler.useSecurity.properties=false #--------------------------------------------------------------------------- # Classpath configuration #--------------------------------------------------------------------------- # List of paths (separated by ;) to search for additional JMeter extension classes # - for example new GUI elements and samplers # These are in addition to lib/ext. Do not use this for utility jars. #search_paths=/app1/lib;/app2/lib # Users can define additional classpath items by setting the property below # - for example, utility jars or JUnit test cases # # Use the default separator for the host version of Java # Paths with spaces may cause problems for the JVM #user.classpath=../classes;../jars/jar1.jar # Classpath finder # ================ # The classpath finder currently needs to load every single JMeter class to find # the classes it needs. # For non-GUI mode, it's only necessary to scan for Function classes, but all classes # are still loaded. # All current Function classes include ".function." in their name, # and none include ".gui." in the name, so the number of unwanted classes loaded can be # reduced by checking for these. However, if a valid function class name does not match # these restrictions, it will not be loaded. If problems are encountered, then comment # or change the following properties: classfinder.functions.contain=.functions. classfinder.functions.notContain=.gui. #--------------------------------------------------------------------------- # Additional property files to load #--------------------------------------------------------------------------- # Should JMeter automatically load additional JMeter properties? # File name to look for (comment to disable) user.properties=user.properties # Should JMeter automatically load additional system properties? # File name to look for (comment to disable) system.properties=system.properties Other JMeter examples (source code examples)Here is a short list of links related to this JMeter jmeter.properties source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.