Hello - I installed Elastic for trying it out in a simple local server. Based on the instructions here:
My /etc/elasticsearch/elasticsearch.yml
file is as follows:
node.name: "My First Node"
cluster.name: clusteruzi
node.roles: [ master ]
http.port: 9200
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
transport.host: localhost
transport.tcp.port: 9300
network.host: 10.0.0.5
[label /etc/elasticsearch/elasticsearch.yml]
script.allowed_types: none
When I start elasticsearch with this config, the service fails.
This is the log I found in my /etc/log/elasticsearch/gc.log.16
(the log files are added with a suffix..)
[2024-03-31T20:11:24.452+0000][1070755][gc] Using G1
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Version: 15+36 (release)
[2024-03-31T20:11:24.462+0000][1070755][gc,init] CPUs: 4 total, 4 available
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Memory: 7768M
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Large Page Support: Disabled
[2024-03-31T20:11:24.462+0000][1070755][gc,init] NUMA Support: Disabled
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Compressed Oops: Enabled (32-bit)
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Heap Region Size: 1M
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Heap Min Capacity: 1G
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Heap Initial Capacity: 1G
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Heap Max Capacity: 1G
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Pre-touch: Disabled
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Parallel Workers: 4
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Concurrent Workers: 1
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Concurrent Refinement Workers: 4
[2024-03-31T20:11:24.462+0000][1070755][gc,init] Periodic GC: Disabled
[2024-03-31T20:11:24.462+0000][1070755][gc,metaspace] CDS disabled.
[2024-03-31T20:11:24.462+0000][1070755][gc,metaspace] Compressed class space mapped at: 0x0000000100000000-0x0000000140000000, size: 1073741824
[2024-03-31T20:11:24.462+0000][1070755][gc,metaspace] Narrow klass base: 0x0000000000000000, Narrow klass shift: 3, Narrow klass range: 0x140000000
[2024-03-31T20:11:24.547+0000][1070755][gc,heap,exit] Heap
[2024-03-31T20:11:24.547+0000][1070755][gc,heap,exit] garbage-first heap total 1048576K, used 1024K [0x00000000c0000000, 0x0000000100000000)
[2024-03-31T20:11:24.547+0000][1070755][gc,heap,exit] region size 1024K, 2 young (2048K), 0 survivors (0K)
[2024-03-31T20:11:24.547+0000][1070755][gc,heap,exit] Metaspace used 3306K, capacity 4480K, committed 4480K, reserved 1056768K
[2024-03-31T20:11:24.547+0000][1070755][gc,heap,exit] class space used 266K, capacity 384K, committed 384K, reserved 1048576K