etrace 跟踪 nginx之HTTP请求流程

curl 127.0.0.1   

|    |       |       \--ngx_epoll_process_events
   |    |       |       |       \--ngx_time_update
   |    |       |       |       |       \--ngx_gmtime
   |    |       |       |       |       \--ngx_sprintf
   |    |       |       |       |       |       \--ngx_vslprintf
   |    |       |       |       |       |       |       \--ngx_sprintf_num
   |    |       |       |       |       |       |       \--ngx_sprintf_num (total: 5 times)
   |    |       |       |       |       \--ngx_localtime
   |    |       |       |       |       \--ngx_sprintf
   |    |       |       |       |       |       \--ngx_vslprintf
   |    |       |       |       |       |       |       \--ngx_sprintf_num
   |    |       |       |       |       |       |       \--ngx_sprintf_num (total: 6 times)
   |    |       |       |       |       \--ngx_sprintf
   |    |       |       |       |       |       \--ngx_vslprintf
   |    |       |       |       |       |       |       \--ngx_sprintf_num
   |    |       |       |       |       |       |       \--ngx_sprintf_num (total: 7 times)
   |    |       |       |       |       \--ngx_sprintf
   |    |       |       |       |       |       \--ngx_vslprintf
   |    |       |       |       |       |       |       \--ngx_sprintf_num
   |    |       |       |       |       |       |       \--ngx_sprintf_num (total: 8 times)
   |    |       |       |       \--ngx_event_accept
   |    |       |       |       |       \--ngx_get_connection
   |    |       |       |       |       \--ngx_create_pool
   |    |       |       |       |       |       \--ngx_memalign
   |    |       |       |       |       \--ngx_palloc
   |    |       |       |       |       \--ngx_palloc (total: 2 times)
   |    |       |       |       |       \--ngx_pnalloc
   |    |       |       |       |       \--ngx_sock_ntop
   |    |       |       |       |       |       \--ngx_snprintf
   |    |       |       |       |       |       |       \--ngx_vslprintf
   |    |       |       |       |       |       |       |       \--ngx_sprintf_num
   |    |       |       |       |       |       |       |       \--ngx_sprintf_num (total: 4 times)
   |    |       |       |       |       \--ngx_http_init_connection
   |    |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       |       \--ngx_event_add_timer
   |    |       |       |       |       |       |       \--ngx_rbtree_insert
   |    |       |       |       |       |       \--ngx_handle_read_event
   |    |       |       |       |       |       |       \--ngx_epoll_add_event
   |    |       |       \--ngx_event_expire_timers
   |    |       |       |       \--ngx_rbtree_min
   |    |       \--ngx_process_events_and_timers
   |    |       |       \--ngx_event_find_timer
   |    |       |       |       \--ngx_rbtree_min
   |    |       |       \--ngx_epoll_process_events
   |    |       |       |       \--ngx_time_update
   |    |       |       |       \--ngx_http_init_request
   |    |       |       |       |       \--ngx_pcalloc
   |    |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       \--ngx_pcalloc
   |    |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       |       |       \--ngx_palloc_large
   |    |       |       |       |       |       |       |       \--ngx_alloc
   |    |       |       |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       \--ngx_create_temp_buf
   |    |       |       |       |       |       \--ngx_pcalloc
   |    |       |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       |       |       |       \--ngx_palloc_block
   |    |       |       |       |       |       |       |       |       \--ngx_memalign
   |    |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       |       |       \--ngx_palloc_large
   |    |       |       |       |       |       |       |       \--ngx_alloc
   |    |       |       |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       \--ngx_create_pool
   |    |       |       |       |       |       \--ngx_memalign
   |    |       |       |       |       \--ngx_list_init
   |    |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       \--ngx_pcalloc
   |    |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       \--ngx_pcalloc
   |    |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       \--ngx_http_process_request_line
   |    |       |       |       |       |       \--ngx_http_read_request_header
   |    |       |       |       |       |       |       \--ngx_unix_recv
   |    |       |       |       |       |       \--ngx_http_parse_request_line
   |    |       |       |       |       |       \--ngx_list_init
   |    |       |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       |       \--ngx_array_init
   |    |       |       |       |       |       |       \--ngx_palloc
   |    |       |       |       |       |       \--ngx_http_process_request_headers
   |    |       |       |       |       |       |       \--ngx_http_read_request_header
   |    |       |       |       |       |       |       \--ngx_http_parse_header_line
   |    |       |       |       |       |       |       \--ngx_list_push
   |    |       |       |       |       |       |       \--ngx_pnalloc
   |    |       |       |       |       |       |       \--ngx_hash_find
   |    |       |       |       |       |       |       \--ngx_http_process_user_agent
   |    |       |       |       |       |       |       |       \--ngx_strstrn
   |    |       |       |       |       |       |       |       \--ngx_strstrn (total: 6 times)
   |    |       |       |       |       |       |       \--ngx_http_parse_header_line
   |    |       |       |       |       |       |       \--ngx_list_push
   |    |       |       |       |       |       |       \--ngx_pnalloc
   |    |       |       |       |       |       |       \--ngx_hash_find
   |    |       |       |       |       |       |       \--ngx_http_process_host
   |    |       |       |       |       |       |       |       \--ngx_http_validate_host
   |    |       |       |       |       |       |       \--ngx_http_parse_header_line
   |    |       |       |       |       |       |       \--ngx_list_push
   |    |       |       |       |       |       |       \--ngx_pnalloc
   |    |       |       |       |       |       |       \--ngx_hash_find
   |    |       |       |       |       |       |       \--ngx_http_parse_header_line
   |    |       |       |       |       |       |       \--ngx_http_process_request_header
   |    |       |       |       |       |       |       |       \--ngx_http_find_virtual_server
   |    |       |       |       |       |       |       \--ngx_http_process_request
   |    |       |       |       |       |       |       |       \--ngx_event_del_timer
   |    |       |       |       |       |       |       |       |       \--ngx_rbtree_delete
   |    |       |       |       |       |       |       |       \--ngx_http_handler
   |    |       |       |       |       |       |       |       |       \--ngx_http_core_run_phases
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_rewrite_phase
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_rewrite_handler
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_find_config_phase
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_find_location
   |    |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_find_static_location
   |    |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_find_location
   |    |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_find_static_location
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_update_location_config
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_rewrite_phase
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_rewrite_handler
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_post_rewrite_phase
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_generic_phase
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_limit_req_handler
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_generic_phase
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_limit_conn_handler
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_access_phase
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_access_handler
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_access_phase
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_auth_basic_handler
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_post_access_phase
   |    |       |       |       |       |       |       |       |       |       \--ngx_http_core_content_phase
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_index_handler
   |    |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_map_uri_to_path
   |    |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_pnalloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_cpystrn
   |    |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_set_disable_symlinks
   |    |       |       |       |       |       |       |       |       |       |       |       \--ngx_open_cached_file
   |    |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_file_info_wrapper
   |    |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_internal_redirect
   |    |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_set_exten
   |    |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_update_location_config
   |    |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_run_phases
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_rewrite_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_rewrite_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_find_config_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_core_find_location
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_core_find_static_location
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_core_find_location
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_core_find_static_location
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_update_location_config
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_rewrite_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_rewrite_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_post_rewrite_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_generic_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_limit_req_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_generic_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_limit_conn_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_access_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_access_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_access_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_auth_basic_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_post_access_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_content_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_index_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_content_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_autoindex_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_core_content_phase
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_static_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_map_uri_to_path
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_pnalloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_cpystrn
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_set_disable_symlinks
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_open_cached_file
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_pool_cleanup_add
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc (total: 2 times)
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_open_and_stat_file
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_open_file_wrapper
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_discard_request_body
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_test_expect
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_set_content_type
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_hash_find
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_pcalloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_pcalloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_send_header
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_not_modified_header_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_headers_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_userid_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_charset_header_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_destination_charset
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_ssi_header_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_gzip_header_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_range_header_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_list_push
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_chunked_header_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_header_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_create_temp_buf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_pcalloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc (total: 2 times)
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_vslprintf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf_num
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_time
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_gmtime
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_vslprintf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf_num
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf_num (total: 5 times)
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_write_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_alloc_chain_link
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_output_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_range_body_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_copy_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_pcalloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_output_chain
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_output_chain_as_is
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_charset_body_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_ssi_body_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_postpone_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_gzip_body_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_chunked_body_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_write_filter
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_alloc_chain_link
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_palloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_linux_sendfile_chain
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_array_push
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_finalize_request
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_post_action
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_finalize_connection
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_close_request
   |    |       |       |       |       |       |       |       |       |       |       \--ngx_http_finalize_request
   |    |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_finalize_connection
   |    |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_set_keepalive
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_free_request
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_http_log_request
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_handler
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_script_flush_no_cacheable_variables
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable_getlen
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_variable_remote_addr
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_escape
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable_getlen
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_variable_remote_user
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_auth_basic_user
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable_getlen
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_variable_request_line
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_escape
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable_getlen
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_variable_header
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable_getlen
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_variable_header
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_escape
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_pnalloc
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_copy_short
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_copy_short
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_time
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_copy_short
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_copy_short
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_status
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_vslprintf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf_num
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_copy_short
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_body_bytes_sent
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_vslprintf
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_sprintf_num
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_copy_short
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_copy_short
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_get_indexed_variable
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_copy_short
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_http_log_write
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_write_fd
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_destroy_pool
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       |      \--ngx_pool_cleanup_file
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_event_add_timer
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_rbtree_insert
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_handle_read_event
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_pfree
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_pfree (total: 2 times)
   |    |       |       |       |       |       |       |       |       |       |       |       |       |       \--ngx_reusable_connection
   |    |       |       |       |       |       |       |       \--ngx_http_run_posted_requests
   |    |       |       \--ngx_event_process_posted
   |    |       |       |       \--ngx_http_keepalive_handler
   |    |       |       |       |       \--ngx_palloc
   |    |       |       |       |       |       \--ngx_palloc_large
   |    |       |       |       |       |       |       \--ngx_alloc
   |    |       |       |       |       \--ngx_unix_recv
   |    |       |       |       |       \--ngx_handle_read_event
   |    |       |       |       |       \--ngx_pfree
   |    |       \--ngx_process_events_and_timers
   |    |       |       \--ngx_event_find_timer
   |    |       |       |       \--ngx_rbtree_min
   |    |       |       \--ngx_epoll_process_events
   |    |       |       |       \--ngx_time_update
   |    |       |       |       \--ngx_http_keepalive_handler
   |    |       |       |       |       \--ngx_palloc
   |    |       |       |       |       |       \--ngx_palloc_large
   |    |       |       |       |       |       |       \--ngx_alloc
   |    |       |       |       |       \--ngx_unix_recv
   |    |       |       |       |       \--ngx_http_close_connection
   |    |       |       |       |       |       \--ngx_close_connection
   |    |       |       |       |       |       |       \--ngx_event_del_timer
   |    |       |       |       |       |       |       |       \--ngx_rbtree_delete
   |    |       |       |       |       |       |       \--ngx_epoll_del_connection
   |    |       |       |       |       |       |       \--ngx_reusable_connection
   |    |       |       |       |       |       |       \--ngx_free_connection
   |    |       |       |       |       |       \--ngx_destroy_pool
   |    |       |       \--ngx_event_expire_timers
   |    |       \--ngx_process_events_and_timers
   |    |       |       \--ngx_event_find_timer 
时间: 2024-08-18 14:20:40

etrace 跟踪 nginx之HTTP请求流程的相关文章

用etrace跟踪Nginx代码+Nginx HTTP请求流程

http://blog.csdn.net/jianqiangchen/article/details/29175285 http://blog.csdn.net/jianqiangchen/article/details/29201415 Nginx的configure, make以及install ./configure --prefix=/xx --with-debug --with-cc-opt='-g -O0 -finstrument-functions'makemake install

使用反向代理的http的请求流程

此文章主要为刚接触反向代理的小伙伴梳理请求流程,以便更好的理解反向代理是何时工作的 流程 由于浏览器是有缓存的,所以本地的hosts文件的信息也会在浏览器端缓存 当客户端发起一个新的请求(例如:输入的是域名www.uxuexi.com),请求会先在浏览器中查看是否有缓存的hosts信息,如果有直接拿来使用,如果没有会去使用所在操作系统的hosts文件的信息 在hosts文件上如果匹配到所输入的域名,那么此时请求就会被转发到对应的ip主机上:如果在本地hosts文件中没有匹配到,那么就会去公网DN

一次完整的浏览器请求流程(转)

一次完整的浏览器请求流程 当我们在浏览器的地址栏输入 www.linux178.com ,然后回车,回车这一瞬间到看到页面到底发生了什么呢?整个流程如下: 域名解析 --> 发起TCP的3次握手 --> 建立TCP连接后发起http请求 --> 服务器响应http请求,浏览器得到html代码 --> 浏览器解析html代码,并请求html代码中的资源(如js.css.图片等) --> 浏览器对页面进行渲染呈现给用户 以下就是上面过程的一一分析,我们就以Chrome浏览器为例:

OkHttp面试之--OkHttp的整个异步请求流程

通过上一节,我们已经了解了如何使用OkHttp发送异步请求,下载网络图片信息并显示到ImageView控件上,从这一节开始我们就来开始研究一下其内部的实现流程和原理.因为整个流程相对而言还是比较复杂,因此对于流程的分析我划分成以下几个章节去介绍 流程概述 拦截器的原理 HttpEngine中sendRequest的流程分析 HttpEngine中readResponse的流程分析 这一节我们先来看一下整个流程的概述,先上一张时序图 以上图片来自http://www.jianshu.com/p/d

.NET MVC请求流程

ASP.NET MVC 请求流程:Controller MvcHandler Action Action参数赋值

zookeeper源码分析之五服务端(集群leader)处理请求流程

leader的实现类为LeaderZooKeeperServer,它间接继承自标准ZookeeperServer.它规定了请求到达leader时需要经历的路径: PrepRequestProcessor -> ProposalRequestProcessor ->CommitProcessor -> Leader.ToBeAppliedRequestProcessor ->FinalRequestProcessor 具体情况可以参看代码: @Override protected v

Action请求流程分析

Strut2流程分析-----从请求到Action方法() 首先请求会调用strutsPrepareAndExcuteFliter----(这个就是我们在web.xml文件中所配置的那个拦截器吧,所有Action请求都要过这个拦截器)的doFilter()方法 然后会调用StrutsActionProxy类的excute()方法,生成一个代理类(ActionProxy) ActionProxy 是 Action 的一个代理类,也就是说Action的调用是通过 ActionProxy 实现的,就是

【Nginx】HTTP请求的11个处理阶段

Nginx将一个HTTP请求分成多个阶段,以模块为单位进行处理.这样做的好处是使处理过程更加灵活.降低耦合度.HTTP框架将处理分成了11个阶段,各个阶段以流水线的方式处理请求.这11个HTTP阶段如下所示: typedef enum { NGX_HTTP_POST_READ_PHASE = 0, // 接收到完整的HTTP头部后处理的阶段 NGX_HTTP_SERVER_REWRITE_PHASE, // URI与location匹配前,修改URI的阶段,用于重定向 NGX_HTTP_FIND

WebX学习二——URL请求流程分析

URL请求流程分析 1.在index页面中设置了 得到如下链接 当这个get请求发出的时候,流程是这样的: 首先,它被webx中配置的Filter捕获: 进入源码分析发现:该请求进入了WebxFrameworkFilter的doFilter方法: @Override protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOExcept