Closed vikassharma12345 closed 5 years ago
The agent will keep these events in queue until connection to the APM server is restored. The advantage of that is not losing data during short connectivity failures.
What is your concern? If it is about the amount of memory occupied by the buffer in such cases, you can reduce their size through the max_queue_size
configuration.
What would be the alternative/additional feature/behaviour you wished you had?
Hi eyalkoren, my concern is to APM server is working. but in elasticsearch Apm-* index is not created. Apm server logs getting 503 and 202 responses. Please suggest what i do now. I have more then 15 Agent configure on that APM server.
command ./apm-server test output
elasticsearch: http://IP parse url... OK connection... parse host... OK dns lookup... OK addresses: IP dial up... OK TLS... WARN secure connection disabled talk to server... OK version: 7.3.0 elasticsearch: http://IP.. parse url... OK connection... parse host... OK dns lookup... OK addresses: IP dial up... OK TLS... WARN secure connection disabled talk to server... OK version: 7.3.0
@vikassharma12345 this is the java agent repo. If you think there is a bug or you want to make a feature/enhancement request regarding the java agent- this is the proper place. If this is the case, please try to make sure this is indeed a bug and not a setup problem, and if it is, make sure you provide clearer description of the problem.
So far, I didn't understand whether this is a bug or a request and even whether it is a problem with the APM server or agent...
If this is neither a bug report nor an enhancement request, but only a request for assistance, please use our forum. There, as well, we will not be able to assist if you don't provide clear description of the problem, including what setup you are using, and at least logs from APM server/agent.
ElasticSearch Index
green open .kibana qcymOwbiR-agbnGCO0ytEg 1 1 4 0 66.3kb 36.4kb green open metricbeat-7.3.0-2019.08.18-000001 J-IdzmtMSnKMXPiLTG6cPw 1 1 125852 0 98.6mb 33.1mb green open .monitoring-es-7-mb-2019.08.18 oLvxrPRlTf-IJF1zuWll5w 1 1 72 0 689.5kb 259.5kb green open .monitoring-beats-7-2019.08.18 whVMQcOXT8C0ZqoD84bCJw 1 1 94 0 612.5kb 307.1kb
APM Server logs
2019-08-18T19:04:26.749+0530 INFO instance/beat.go:614 Beat ID: 73f22b2d-91e7-4472-a4b2-268e415fcf25 2019-08-18T19:04:26.750+0530 INFO [index-management] idxmgmt/std.go:178 Set output.elasticsearch.index to 'apm-server-7.3.0' as ILM is enabled. 2019-08-18T19:04:26.750+0530 INFO elasticsearch/client.go:170 Elasticsearch url: http://IP:9200 2019-08-18T19:04:26.750+0530 INFO elasticsearch/client.go:170 Elasticsearch url: http://IP:9201 2019-08-18T19:04:26.754+0530 INFO elasticsearch/client.go:743 Attempting to connect to Elasticsearch version 7.3.0 2019-08-18T19:04:26.798+0530 INFO elasticsearch/client.go:743 Attempting to connect to Elasticsearch version 7.3.0
![Uploading image.png…]()
################### APM Server Configuration #########################
############################# APM Server ######################################
apm-server:
host: "0.0.0.0:8200"
#enabled: false
# Configure a list of root certificate authorities for verifying client certificates
#certificate_authorities: []
# Path to file containing the certificate for server authentication
# Needs to be configured when ssl is enabled
#certificate: ''
# Path to file containing server certificate key
# Needs to be configured when ssl is enabled
#key: ''
# Optional configuration options for ssl communication
# Passphrase for decrypting the Certificate Key.
# It is recommended to use the provided keystore instead of entering the passphrase in plain text.
#key_passphrase: ''
# List of supported/valid protocol versions. By default TLS versions 1.1 up to 1.2 are enabled.
#supported_protocols: [TLSv1.1, TLSv1.2]
# Configure cipher suites to be used for SSL connections
#cipher_suites: []
# Configure curve types for ECDHE based cipher suites
#curve_types: []
# Configure which type of client authentication is supported.
# Options are `none`, `optional`, and `required`. Default is `optional`.
#client_authentication: "optional"
rum:
enabled: false
#event_rate:
# Defines the maximum amount of events allowed to be sent to the APM Server RUM
# endpoint per IP per second. Defaults to 300.
#limit: 300
# An LRU cache is used to keep a rate limit per IP for the most recently seen IPs.
# This setting defines the number of unique IPs that can be tracked in the cache.
# Sites with many concurrent clients should consider increasing this limit. Defaults to 1000.
#lru_size: 1000
#-- General RUM settings
# Comma separated list of permitted origins for real user monitoring.
# User-agents will send an origin header that will be validated against this list.
# An origin is made of a protocol scheme, host and port, without the url path.
# Allowed origins in this setting can have * to match anything (eg.: http://*.example.com)
# If an item in the list is a single '*', everything will be allowed
#allow_origins : ['*']
# Regexp to be matched against a stacktrace frame's `file_name` and `abs_path` attributes.
# If the regexp matches, the stacktrace frame is considered to be a library frame.
#library_pattern: "node_modules|bower_components|~"
# Regexp to be matched against a stacktrace frame's `file_name`.
# If the regexp matches, the stacktrace frame is not used for calculating error groups.
# The default pattern excludes stacktrace frames that have a filename starting with '/webpack'
#exclude_from_grouping: "^/webpack"
# If a source map has previously been uploaded, source mapping is automatically applied
# to all error and transaction documents sent to the RUM endpoint.
#source_mapping:
# Source maps are always fetched from Elasticsearch, by default using the output.elasticsearch configuration.
# A different instance must be configured when using any other output.
# This setting only affects sourcemap reads - the output determines where sourcemaps are written.
#elasticsearch:
# Array of hosts to connect to.
# Scheme and port can be left out and will be set to the default (http and 9200)
# In case you specify and additional path, the scheme is required: http://localhost:9200/path
# IPv6 addresses should always be defined as: https://[2001:db8::1]:9200
# hosts: ["localhost:9200"]
# Optional protocol and basic auth credentials.
#protocol: "https"
#username: "elastic"
#password: "changeme"
# The `cache.expiration` determines how long a source map should be cached before fetching it again from Elasticsearch.
# Note that values configured without a time unit will be interpreted as seconds.
#cache:
#expiration: 5m
# Source maps are stored in a separate index.
# If the default index pattern for source maps at 'outputs.elasticsearch.indices'
# is changed, a matching index pattern needs to be specified here.
#index_pattern: "apm-*-sourcemap*"
# Set to true to expose expvar
#enabled: false
# Url to expose expvar
#url: "/debug/vars"
# Set to true to enable instrumentation of the APM Server itself.
#enabled: false
# Environment in which the APM Server is running on (eg: staging, production, etc.)
#environment: ""
# Remote hosts to report instrumentation results to.
#hosts:
# - http://remote-apm-server:8200
# Remote apm-servers' secret_token
#secret_token:
output.elasticsearch.pipelines
)#
output.elasticsearch
to be enabled and configured.Ingest User Agent Plugin
installed.ingest/pipeline/definition.json
.#
# Registers pipeline definitions in Elasticsearch on APM Server startup. Defaults to false.
#enabled: false
# Overwrites existing pipeline definitions in Elasticsearch. Defaults to true.
#overwrite: false
#enabled: false
# Max number of events the queue can buffer.
events: 5120
# Hints the minimum number of events stored in the queue,
# before providing a batch of events to the outputs.
# The default value is set to 2048.
# A value of 0 ensures events are immediately available
# to be sent to the outputs.
flush.min_events: 2048
# Maximum duration after which events are available to the outputs,
# if the number of events stored in the queue is < min_flush_events.
flush.timeout: 1s
setup.template.enabled: true
setup.template.overwrite: false
setup.template.settings:
index: number_of_shards: 4 codec: best_compression number_of_routing_shards: 30 mapping.total_fields.limit: 2000
output.elasticsearch.hosts
option.cloud.id
in the Elastic Cloud web UI.output.elasticsearch.username
andoutput.elasticsearch.password
settings. The format is <user>:<pass>
.output.elasticsearch:
hosts: ["10.247.74.21:9200","10.247.74.21:9201"]
enabled: true
#param1: value1
#param2: value2
processor.event
:#
apm-%{[observer.version]}
.#
setup.template.name
setup.template.pattern
#
#
#
#
#
ingest/pipeline/definition.json
.apm-server.register.ingest.pipeline
bulk_max_size: 5120
protocol
option if you want to enable https
.none
is configured, all server hostsfull
.# Pretty-print JSON event
#pretty: false
# Configure escaping HTML symbols in strings.
#escape_html: false
0s
(the default) will#
bulk_max_size
none
is configured, all server hostsfull
.%{[type]}
.hash
output.kafka.key
setting or randomly distributes events ifoutput.kafka.key
is not configured.# If enabled, events will only be published to partitions with reachable
# leaders. Default is false.
#reachable_only: false
# Configure alternative event field names used to compute the hash value.
# If empty `output.kafka.key` setting will be used.
# Default value is empty list.
#hash: []
# Pretty print json event
#pretty: false
# Configure escaping html symbols in strings.
#escape_html: true
# Max metadata request retry attempts when cluster is in middle of leader
# election. Defaults to 3 retries.
#retry.max: 3
# Waiting time between retries during leader elections. Default is 250ms.
#retry.backoff: 250ms
# Refresh metadata interval. Defaults to every 10 minutes.
#refresh_frequency: 10m
none
is configured, all server hostsfull
.#
#
http.enabled: true
http.host: 0.0.0.0
http.port: 5066
monitoring.enabled: true
monitoring.elasticsearch:
hosts: ["10.247.74.21:9200","10.247.74.21:9201"]
#param1: value1
#param2: value2
protocol
option if you want to enable https
.none
is configured, all server hostsfull
.Sorry, I am not able to assist. Please describe a problem and add only errors from APM server and agent logs in the forum. Closing this issue.
Hi eyalkoren,
Concern
Thanks & Regards,
Vikas Sharma | Software Engineer | Managed Services
https://kmp.digispice.com/images/dsmail.png
https://www.digispice.com www.digispice.com
https://www.digispice.com Spice Mobility Limited
D-91, Industrial Area, Phase 7, Mohali-160055, India
Mobile: +91 96466 09361 Tel: +91 Email: Vikas.Sharma@digispice.com
From: eyalkoren [mailto:notifications@github.com] Sent: Sunday, August 18, 2019 8:08 PM To: elastic/apm-agent-java Cc: vikassharma12345; Mention Subject: Re: [elastic/apm-agent-java] APM agent queue/buffers increased (#798)
Sorry, I am not able to assist. Please describe a problem and add only errors from APM server and agent logs in the forum. Closing this issue.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elastic/apm-agent-java/issues/798?email_source=notifications&email_token=AM5XHO73AMQYLI3HV2PXY6DQFFNFHA5CNFSM4IMSTUK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RBLGY#issuecomment-522327451 , or mute the thread https://github.com/notifications/unsubscribe-auth/AM5XHO4IMENBJI23BHKUVO3QFFNFHANCNFSM4IMSTUKQ . https://github.com/notifications/beacon/AM5XHO4T6FIUHAKJK5IVHADQFFNFHA5CNFSM4IMSTUK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RBLGY.gif
Describe the bug A clear and concise description of what the bug is.
APM Server goes down for While. APM agent queue/buffers increased.please suggest,how to free that Queue From all APM Agent. I have 15 different APM Agent to only one APM Server. Using elastic-apm-agent-1.8.0.jar, elasticapm.properties files to tomcat bin and added following to setenv.bat:CATALINA_OPTS="$CATALINA_OPTS -javaagent:/home/tomcat/elastic-apm-agent-1.8.0.jar -Delastic.apm.service_name=P_24_CA -Delastic.apm.server_url=http://IP -Delastic.apm.environment=PR -Delastic.apm.capture_body=all"