AMS server configuration
Ant Media Server can be configured either through the web panel or directly modifying the configuration files. However, the majority of configuration settings are set directly in the configuration files.
Server Configuration File
These settings are stored in the file located at <AMS_DIR>/conf/red5.properties
. The below table lists all available server configuration options for Ant Media Server.
policy.host
: This is a Socket Policy host. Default value is0.0.0.0
policy.port
: This is a policy port. If you use this, the port should open. Default value is843
server.name
: This is an Ant Media Server name. No need to fill.server.licence_key
: This is an Ant Media Server License key. If you are using Enterprise Edition, it needs to be filled.server.heartbeatEnabled
: This is heartbeat of Ant Media Server. Default value istrue
server.kafka_brokers
: This is Kafka Broker's value in Ant Media Server. Kafka default port is9092
. No need to fill.server.cpu_limit
: Ant Media Server CPU Limit is based on percentage. Default value is75
server.min_free_ram
: Ant Media Server free memory always must be higher than the below size. It's in MB type. Default value is10
logLevel
: Ant Media Server values are TRACE, DEBUG, INFO, WARN, ERROR. Default value isINFO
useGlobalIp
: The Global IP address to use when WebSocket cluster. Default value isfalse
HTTP Specifications
http.host
: Ant Media Server HTTP host value. No need to change. Default value is0.0.0.0
http.port
: Ant Media Server HTTP port value. Default value is5080
https.port
: Ant Media Server HTTPS port value. Default value is5443
http.URIEncoding
: HTTP URI Encode value. Default value isUTF-8
http.max_keep_alive_requests
: HTTP request max keep alive value. Default value is-1
http.max_threads
: HTTP Max Threads value. Default value is20
http.acceptor_thread_count
: HTTP Acceptor Thread Count value. Default value is10
http.processor_cache
: HTTP Processor Cache value. Default value is20
RTMP Specifications
rtmp.host
: Ant Media Server RTMP host value. No need to change. Default value is0.0.0.0
rtmp.port
: Ant Media Server RTMP Port value. Default value is1935
rtmp.io_threads
: RTMP IO Threads value. Default value is16
rtmp.send_buffer_size
: RTMP Send Buffer Size value. Default value is65536
rtmp.receive_buffer_size
: RTMP Receive Buffer Size value. Default value is65536
rtmp.ping_interval
: RTMP Ping Interval value. Default value is1000
rtmp.max_inactivity
: RTMP Max Inactivity value. Default value is60000
rtmp.max_handshake_time
: RTMP Max Handshake Time value. Default value is5000
rtmp.tcp_nodelay
: RTMP TCP No Delay value. Default value istrue
rtmp.tcp_keepalive
: RTMP TCP Keep-Alive value. Default value isfalse
rtmp.default_server_bandwidth
: RTMP Default Server Bandwidth value. Default value is10000000
rtmp.default_client_bandwidth
: RTMP Default Client Bandwidth value. Default value is10000000
rtmp.client_bandwidth_limit_type
: RTMP Client Bandwidth Limit Type value. Default value is2
rtmp.bandwidth_detection
: RTMP Bandwidth Detection value. Default value isfalse
rtmp.encoder_base_tolerance
: RTMP Encoder Base Tolerance value. Default value is5000
rtmp.encoder_drop_live_future
: RTMP Encoder Drop Live Future value. Default value isfalse
rtmp.traffic_class
: RTMP Traffic Class value. Default value is-1
rtmp.backlog
: RTMP Backlog value. Default value is32
rtmp.thoughput_calc_interval
: RTMP Thoughput Calculate Interval value. Default value is15
rtmp.default_acceptor
: RTMP Default Acceptor value. Default value istrue
rtmp.initial_pool_size
: RTMP Initial Pool Size value. Default value is0
rtmp.max_pool_size
: RTMP Max Pool Size value. Default value is2
rtmp.max_processor_pool_size
: RTMP Max Processor Pool Size value. Default value is16
rtmp.executor_keepalive_time
: RTMP Executer Keep-Alive Time value. Default value is60000
mina.logfilter.enable
: Mina Log Filter Enable value. Default value isfalse
rtmp.scheduler.pool_size
: RTMP Scheduler Pool Size value. Default value is16
rtmp.deadlockguard.sheduler.pool_size
: RTMP Deadlockguard Scheduler Pool Size value. Default value is16
rtmp.executor.core_pool_size
: RTMP Executer Core Pool Size value. RTMP Default value is4
rtmp.executor.max_pool_size
: RTMP Executer Max Pool Size value. Default value is32
rtmp.executor.queue_capacity
: RTMP Executer Queue Capacity value. Default value is64
rtmp.executor.queue_size_to_drop_audio_packets
: RTMP Executer Queue Size to Drop Audio Packets value. Default value is60
rtmp.max_handling_time
: RTMP Max Handling Time value. Default value is2000
rtmp.channel.initial.capacity
: RTMP Channel Initial Capacity value. Default value is3
rtmp.channel.concurrency.level
: RTMP Channel Concurrency Level value. Default value is1
rtmp.stream.initial.capacity
: RTMP Stream Initial Capacity value. Default value is1
rtmp.stream.concurrency.level
: RTMP Stream Concurrency Level value. Default value is1
rtmp.pending.calls.initial.capacity
: RTMP Pending Calls Initial Capacity value. Default value is3
rtmp.pending.calls.concurrency.level
: RTMP Pending Calls Concurrency Capacity Level value. Default value is1
rtmp.reserved.streams.initial.capacity
: RTMP Reserved Streams Initial Capacity value. Default value is1
rtmp.reserved.streams.concurrency.level
: RTMP Reserved Streams Concurrency Level value. Default value is1
rtmp.max_packet_size
: RTMP Max Packet Size value. Default value is3145728
RTMPS Specifications
rtmps.host
: Ant Media Server RTMPS Host value. If you don't use this feature, no need to change. Default value is0.0.0.0
rtmps.port
: Ant Media Server RTMP Port value. Default value is8443
rtmps.ping_interval
: RTMPS Ping Interval value. Default value is5000
rtmps.max_inactivity
: RTMPS Max Inactivity value. Default value is60000
rtmps.max_keep_alive_requests
: RTMPS Max Keep Alive Requests value. Default value is-1
rtmps.max_threads
: RTMPS Max Threads value. Default value is20
rtmps.acceptor_thread_count
: RTMPS Acceptor Thread Count value. Default value is2
rtmps.processor_cache
: RTMPS Processor Cache value. Default value is20
RTMPS Key and Trust store parameters
rtmps.keystorepass
: RTMPS Keystore Pass value. Default value ispassword
rtmps.keystorefile
: RTMPS Keystore File location value. Default value isconf/keystore.jks
rtmps.truststorepass
: RTMPS Truststore Pass value. Default value ispassword
rtmps.truststorefile
: RTMPS Truststore File location value. Default value isconf/truststore.jks
RTMPT Specifications
rtmpt.host
: Ant Media Server RTMP Host value. If you don't use this feature, no need to change. Default value is0.0.0.0
rtmpt.port
: Ant Media Server RTMPT Port value. Default value is8088
rtmpt.ping_interval
: RTMPT Ping interval value. Default value is5000
rtmpt.max_inactivity
: RTMPT Max Inactivity value. Default value is60000
rtmpt.max_handshake_time
: RTMPT Max Handshake Time value. Default value is5000
rtmpt.max_keep_alive_requests
: RTMPT Max Keep Alive Requests value. Default value is-1
rtmpt.max_threads
: RTMPT Max Threads value. Default value is20
rtmpt.acceptor_thread_count
: RTMPT Acceptor Thread Count value. Default value is2
rtmpt.processor_cache
: RTMPT Processor Cache value. Default value is20
rtmpt.encoder_base_tolerance
: RTMPT Encoder Base Tolerance value. Default value is5000
rtmpt.encoder_drop_live_future
: RTMPT Encoder Drop Live Future value. Default value istrue
rtmpt.target_response_size
: RTMPT Target Response Size value. Better setting for streaming media default value is32768
. Best setting for small messages or shared objects default value is8192
rtmpt.max_in_msg_process
: RTMPT Max Incoming Messages to Process at a time. The most that FP appears to send is166
.Default value is166
rtmpt.max_queue_offer_time
: RTMPT Max Queue Offer Time in Millis that we will wait when offering data to the in or out queue. Default value is125
rtmpt.max_queue_offer_attempts
: RTMPT Max Queue Offer Attempts value. Default value is4
Debug Proxy Specifications (needs to be activated in red5-core.xml)
proxy.source_host
: Ant Media Server Proxy Source Host value. Default value is127.0.0.1
proxy.source_port
: Ant Media Server Proxy Source Port value. Default value is1936
proxy.destination_host
: Proxy Destination Host value. Default value is127.0.0.1
proxy.destination_port
: Proxy Destination Port value. Default value is1935
JMX Specifications
jmx.rmi.host
: Ant Media Server JMX RMI Host value. Default value islocalhost
jmx.rmi.port
: Ant Media Server JMX RMI Port value. Default value is9999
jmx.rmi.sport
: JMX RMI Sport value. Default value is9998
jmx.rmi.port.remoteobjects
: JMX RMI Port Remote Objects value. No need to fill.jmx.keystorepass
: JMX Keystore Pass value. Default value ispassword
jmx.mina.monitor.enable
: JMX Mina Monitor Enable value. Default value isfalse
jmx.mina.poll.interval
: JMX Mina Poll Interval value. Default value is1000
jmx.registry.create
: Whether to always create the registry in-process, not attempting to locate an existing registry at the specified port. Set totrue
in order to avoid the overhead of locating an existing registry when you always intend to create a new registry in any case. Default value istrue
jmx.reuse.existing.server
: Whether or not theMBeanServerFactoryBean
should attempt to locate a runningMBeanServer
before creating one. Default value istrue
jmx.register.factory
: Whether to register theMBeanServer
with theMBeanServerFactory
, making it available throughMBeanServerFactory.findMBeanServer()
.Default value istrue
jmx.daemon
: Whether any threads started for theJMXConnectorServer
. Should be started as daemon threads. Default value istrue
jmx.threaded
: Whether theJMXConnectorServer
should be started in a separate thread. Default value istrue
Server Specifications
so.max.events.per.update
: Max events to send in a single update. Default value is64
so.scheduler.pool_size
: Scheduler Pool size value. Default value is4
keyframe.cache.entry.max
: Keyframe Cache Entry Max value. Default value is500
war.deploy.server.check.interval
: War Deploy Server Check Interval value. Default value is600000
fileconsumer.delayed.write
: File Consumer Delayed Write value. Default value istrue
fileconsumer.queue.size
: File Consumer Queue Size value. Default value is120
subscriberstream.buffer.check.interval
: Stream Subscriber Buffer Check Interval value. Default value is5000
subscriberstream.underrun.trigger
: Stream Subscriber Underrun Trigger value. Default value is100
broadcaststream.auto.record
: Broadcast Stream Auto Record value. Default value isfalse
MP4 and HLS Auto Record Specifications
broadcastream.auto.record.mp4
: Broadcast Stream Auto Record MP4 value. Default value istrue
broadcastream.auto.record.hls
: Broadcast Stream Auto Record HLS value. Default value istrue
Cluster DB Specifications
clusterdb.host
: If you don't use cluster, no need to change. Default value islocalhost
clusterdb.user
: If you don't use cluster, no need to change. No need to fillclusterdb.password
: If you don't use cluster, no need to change. No need to fill