Hello!
We have a graylog and it consumes a lot of CPU time. Always 100%.
Graylog version: 3.3.9
Java version: java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64
VM has 16 cores and 48 GB RAM
What did you try to do?
- Checked the config file of the greylog. On the processor, everything is set correctly, as far as I understand.
- Updated Graylog itself to version 4.2 - did not help
- Updated Java version for graylog version 3.3.9 - did not help (tried to use version 11)
- For version 4.2, I used three different versions of Java - 1.8, 11, 17 - did not help.
- Tried inscrese cores from 16 to 40 but nothing.
- Disabled inputs - but nothing.
Could you suggest where else to look?
top -H:
cat /etc/graylog/server/server.conf
is_master = true
node_id_file = /etc/graylog/server/node-id
password_secret = SECRET
root_username = root
root_password_sha2 = SECRET
root_timezone = Europe/London
plugin_dir = /usr/share/graylog-server/plugin
rest_listen_uri = 0.0.0.0:9000/api/
rest_transport_uri = IP:9000/api/
trusted_proxies = 127.0.0.1/32, 0:0:0:0:0:0:0:1/128
web_enable = true
web_listen_uri = 0.0.0.0:9000/
elasticsearch_hosts = server01:9200,server02:9200
elasticsearch_max_total_connections = 20
rotation_strategy = count
elasticsearch_max_docs_per_index = 20000000
elasticsearch_max_number_of_indices = 20
retention_strategy = delete
elasticsearch_shards = 4
elasticsearch_replicas = 0
elasticsearch_index_prefix = graylog
allow_leading_wildcard_searches = false
allow_highlighting = false
elasticsearch_analyzer = standard
output_batch_size = 1000
output_flush_interval = 1
output_fault_count_threshold = 5
output_fault_penalty_seconds = 30
processbuffer_processors = 12
outputbuffer_processors = 4
processor_wait_strategy = yielding
ring_size = 2097152
inputbuffer_ring_size = 65536
inputbuffer_processors = 2
inputbuffer_wait_strategy = yielding
message_journal_enabled = true
message_journal_dir = /var/lib/graylog-server/journal
message_journal_max_age = 72h
message_journal_max_size = 32gb
lb_recognition_period_seconds = 3
mongodb_uri = mongodb://localhost/graylog
mongodb_max_connections = 1000
mongodb_threads_allowed_to_block_multiplier = 5
transport_email_enabled = true
transport_email_hostname = smtp.domain.com
transport_email_port = 25
transport_email_use_auth = false
transport_email_use_tls = false
transport_email_use_ssl = false
transport_email_subject_prefix = [graylog]
transport_email_from_email = SERVER@domain.com
content_packs_dir = /usr/share/graylog-server/contentpacks
content_packs_auto_load = grok-patterns.json
proxied_requests_thread_pool_size = 32
Thanks.