Hi,
I am trying to index 500 million records. I have heap_size of 16 GB, total memory of 32 GB.
I am trying to index 50,000 records in bulk in a loop till 500 million records with a single transport client connection in java.
However, After some time, I have noticed that overall CPU usage on elasticsearch has increased to nearly 100%, and indexing failed. However heap usage is not much.
Here are the node_stats
"os": {
"timestamp": 1440515157491,
"uptime_in_millis": 18871,
"cpu": {
"sys": 4,
"user": 50,
"idle": 45,
"usage": 54,
"stolen": 0
},
"mem": {
"free_in_bytes": 133742592,
"used_in_bytes": 34225528832,
"free_percent": 0,
"used_percent": 99,
"actual_free_in_bytes": 221503488,
"actual_used_in_bytes": 34137767936
},
"swap": {
"used_in_bytes": 18765332480,
"free_in_bytes": 49951268864
}
},
"process": {
"timestamp": 1440515158006,
"open_file_descriptors": 1358,
"cpu": {
"percent": 10,
"sys_in_millis": 333343,
"user_in_millis": 279399,
"total_in_millis": 612742
},
"mem": {
"resident_in_bytes": 3216711680,
"share_in_bytes": -1,
"total_virtual_in_bytes": 3339325440
}
},
"jvm": {
"timestamp": 1440515158272,
"uptime_in_millis": 17181206,
"mem": {
"heap_used_in_bytes": 2777733000,
"heap_used_percent": 16,
"heap_committed_in_bytes": 17145004032,
"heap_max_in_bytes": 17145004032,
"non_heap_used_in_bytes": 69697944,
"non_heap_committed_in_bytes": 71225344,
"pools": {
"young": {
"used_in_bytes": 130136048,
"max_in_bytes": 279183360,
"peak_used_in_bytes": 279183360,
"peak_max_in_bytes": 279183360
},
"survivor": {
"used_in_bytes": 34865152,
"max_in_bytes": 34865152,
"peak_used_in_bytes": 34865152,
"peak_max_in_bytes": 34865152
},
"old": {
"used_in_bytes": 2612731800,
"max_in_bytes": 16830955520,
"peak_used_in_bytes": 12738557344,
"peak_max_in_bytes": 16830955520
}
}
},
"threads": {
"count": 75,
"peak_count": 82
},
"gc": {
"collectors": {
"young": {
"collection_count": 21391,
"collection_time_in_millis": 1190698
},
"old": {
"collection_count": 11,
"collection_time_in_millis": 2329
}
}
},
"buffer_pools": {
"direct": {
"count": 111,
"used_in_bytes": 11379522,
"total_capacity_in_bytes": 11379522
},
"mapped": {
"count": 287,
"used_in_bytes": 35753712656,
"total_capacity_in_bytes": 35753712656
}
}
},
Please let me know what is going on wrong here. Thanks