Memory Leak Flame Graph for a leaky Nginx (5 seconds sampling)
ngx_palloc (128 bytes, 0.04%)
ngx_http_keepalive_handler (311,840 bytes, 98.82%)
ngx_http_keepalive_handler
ngx_alloc (112 bytes, 0.04%)
ngx_palloc (1,072 bytes, 0.34%)
main (315,568 bytes, 100.00%)
main
ngx_http_process_request_headers (306,688 bytes, 97.19%)
ngx_http_process_request_headers
ngx_event_accept (464 bytes, 0.15%)
ngx_http_create_request (3,072 bytes, 0.97%)
ngx_malloc (64 bytes, 0.02%)
ngx_alloc (128 bytes, 0.04%)
ngx_malloc (256 bytes, 0.08%)
ngx_create_temp_buf (128 bytes, 0.04%)
ngx_alloc (256 bytes, 0.08%)
__libc_start_main (315,568 bytes, 100.00%)
__libc_start_main
ngx_malloc (1,072 bytes, 0.34%)
ngx_alloc (3,136 bytes, 0.99%)
ngx_http_process_request (306,432 bytes, 97.10%)
ngx_http_process_request
ngx_malloc (128 bytes, 0.04%)
ngx_http_map_uri_to_path (306,432 bytes, 97.10%)
ngx_http_map_uri_to_path
ngx_event_process_posted (311,840 bytes, 98.82%)
ngx_event_process_posted
ngx_http_core_run_phases (306,432 bytes, 97.10%)
ngx_http_core_run_phases
ngx_http_process_request_headers (3,136 bytes, 0.99%)
ngx_palloc (1,008 bytes, 0.32%)
ngx_pcalloc (2,000 bytes, 0.63%)
ngx_pnalloc (256 bytes, 0.08%)
ngx_alloc (160 bytes, 0.05%)
ngx_http_handler (3,136 bytes, 0.99%)
ngx_palloc (1,008 bytes, 0.32%)
ngx_malloc (3,136 bytes, 0.99%)
ngx_process_events_and_timers (315,568 bytes, 100.00%)
ngx_process_events_and_timers
ngx_epoll_process_events (3,728 bytes, 1.18%)
ngx_conf_full_name (306,432 bytes, 97.10%)
ngx_conf_full_name
ngx_malloc (1,008 bytes, 0.32%)
ngx_pnalloc (306,432 bytes, 97.10%)
ngx_pnalloc
ngx_http_process_request_line (307,696 bytes, 97.51%)
ngx_http_process_request_line
ngx_malloc (64 bytes, 0.02%)
ngx_conf_full_name (3,136 bytes, 0.99%)
ngx_pcalloc (112 bytes, 0.04%)
ngx_pcalloc (128 bytes, 0.04%)
ngx_malloc (2,000 bytes, 0.63%)
ngx_http_handler (306,432 bytes, 97.10%)
ngx_http_handler
ngx_http_index_handler (3,136 bytes, 0.99%)
ngx_http_init_connection (176 bytes, 0.06%)
ngx_http_map_uri_to_path (3,136 bytes, 0.99%)
ngx_alloc (306,432 bytes, 97.10%)
ngx_alloc
ngx_alloc (1,072 bytes, 0.34%)
ngx_alloc (1,008 bytes, 0.32%)
_start (315,568 bytes, 100.00%)
_start
ngx_malloc (160 bytes, 0.05%)
ngx_http_process_request (3,136 bytes, 0.99%)
ngx_alloc (64 bytes, 0.02%)
ngx_malloc (1,008 bytes, 0.32%)
ngx_palloc (64 bytes, 0.02%)
ngx_palloc (160 bytes, 0.05%)
ngx_alloc (64 bytes, 0.02%)
ngx_pnalloc (64 bytes, 0.02%)
ngx_palloc (2,000 bytes, 0.63%)
ngx_alloc (1,008 bytes, 0.32%)
ngx_single_process_cycle (315,568 bytes, 100.00%)
ngx_single_process_cycle
ngx_alloc (64 bytes, 0.02%)
ngx_pnalloc (3,136 bytes, 0.99%)
ngx_create_pool (64 bytes, 0.02%)
ngx_http_index_handler (306,432 bytes, 97.10%)
ngx_http_index_handler
ngx_http_core_run_phases (3,136 bytes, 0.99%)
ngx_http_core_content_phase (3,136 bytes, 0.99%)
ngx_malloc (112 bytes, 0.04%)
ngx_http_process_request_line (3,136 bytes, 0.99%)
ngx_http_core_content_phase (306,432 bytes, 97.10%)
ngx_http_core_content_phase
ngx_alloc (2,000 bytes, 0.63%)
ngx_malloc (306,432 bytes, 97.10%)
ngx_malloc
ngx_palloc (112 bytes, 0.04%)
ngx_create_pool (64 bytes, 0.02%)
ngx_alloc (64 bytes, 0.02%)
all (315,568 bytes, 100%)
ngx_http_wait_request_handler (3,264 bytes, 1.03%)