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: times)
| | | | | \--ngx_localtime
| | | | | \--ngx_sprintf
| | | | | | \--ngx_vslprintf
| | | | | | | \--ngx_sprintf_num
| | | | | | | \--ngx_sprintf_num (total: times)
| | | | | \--ngx_sprintf
| | | | | | \--ngx_vslprintf
| | | | | | | \--ngx_sprintf_num
| | | | | | | \--ngx_sprintf_num (total: times)
| | | | | \--ngx_sprintf
| | | | | | \--ngx_vslprintf
| | | | | | | \--ngx_sprintf_num
| | | | | | | \--ngx_sprintf_num (total: times)
| | | | \--ngx_event_accept
| | | | | \--ngx_get_connection
| | | | | \--ngx_create_pool
| | | | | | \--ngx_memalign
| | | | | \--ngx_palloc
| | | | | \--ngx_palloc (total: times)
| | | | | \--ngx_pnalloc
| | | | | \--ngx_sock_ntop
| | | | | | \--ngx_snprintf
| | | | | | | \--ngx_vslprintf
| | | | | | | | \--ngx_sprintf_num
| | | | | | | | \--ngx_sprintf_num (total: 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: 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: 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: times)
| | | | | | | | | | | | | | | | \--ngx_sprintf
| | | | | | | | | | | | | | | | \--ngx_vslprintf
| | | | | | | | | | | | | | | | \--ngx_sprintf_num
| | | | | | | | | | | | | | | | \--ngx_http_time
| | | | | | | | | | | | | | | | \--ngx_gmtime
| | | | | | | | | | | | | | | | \--ngx_sprintf
| | | | | | | | | | | | | | | | \--ngx_vslprintf
| | | | | | | | | | | | | | | | \--ngx_sprintf_num
| | | | | | | | | | | | | | | | \--ngx_sprintf_num (total: 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: 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
etrace 跟踪 nginx之HTTP请求流程的更多相关文章
- etrace跟踪Nginx代码+ FASTCGI
http://blog.csdn.net/jianqiangchen/article/details/29175285 http://blog.csdn.net/jianqiangchen/artic ...
- django源码分析 请求流程
一.从浏览器发出一个请求,到返回响应内容,这个过程是怎么样的? 1. 浏览器解析输入的url 2. 查找url对应的ip地址 3. 通过ip地址访问我们的服务器 1. 请求进入wsgi服务器(我在这 ...
- 使用反向代理的http的请求流程
此文章主要为刚接触反向代理的小伙伴梳理请求流程,以便更好的理解反向代理是何时工作的 流程 由于浏览器是有缓存的,所以本地的hosts文件的信息也会在浏览器端缓存 当客户端发起一个新的请求(例如:输入的 ...
- HTTP请求流程你了解了么?
我又回来了,先来波推广,最硬的资源来自公众号:前端美食汇,欢迎大家关注公众号获取最新的技术.提示,文末有福利,最硬的文章会首先发布在公众号上喔 预备知识 前文没有描述到传输和协议直接的层级对应关系,大 ...
- django+uWSGI+nginx的工作原理流程与部署过程
django+uWSGI+nginx的工作原理流程与部署过程 一.前言 知识的分享,不应该只是展示出来,还应该解释这样做是为什么... 献给和我一样懵懂中不断汲取知识,进步的人们. 授人与鱼,不如授人 ...
- 万字长文!一次性弄懂 Nginx 处理 HTTP 请求的 11 个阶段
Nginx 处理一个 HTTP 请求的全过程 前面给大家讲了 Nginx 是如何处理 HTTP请求头部的,接下来就到了真正处理 HTTP 请求的阶段了.先看下面这张图,这张图是 Nginx 处理 HT ...
- go http请求流程分析
前言 golang作为常驻进程, 请求第三方服务或者资源(http, mysql, redis等)完毕后, 需要手动关闭连接, 否则连接会一直存在; 连接池是用来管理连接的, 请求之前从连接池里获取连 ...
- Nginx如何处理一个请求
看了下nginx的官方文档,其中nginx如何处理一个请求讲解的很好,现在贴出来分享下.Nginx首先选定由哪一个虚拟主机来处理请求.让我们从一个简单的配置(其中全部3个虚拟主机都在端口*:80上监听 ...
- zookeeper源码分析之五服务端(集群leader)处理请求流程
leader的实现类为LeaderZooKeeperServer,它间接继承自标准ZookeeperServer.它规定了请求到达leader时需要经历的路径: PrepRequestProcesso ...
随机推荐
- #Leet Code# LRU Cache
语言:C++ 描述:使用单链表实现,HeadNode是key=-1,value=-1,next=NULL的结点.距离HeadNode近的结点是使用频度最小的Node. struct Node { in ...
- Xcode-01ARC / Block
1.nonatomic 2.assign 3.strong 4.weak 5.instancetype 6.@class @property 使部分类在编译时不使用ARC -(可以让这们支持 reta ...
- (MVC)验证用户是否登录 登录认证
验证类 using System; using System.Collections.Generic; using System.Linq; using System.Web; using Syste ...
- tornado远远不止
大家的回答都有点片面,更多的关注web框架成,其实tornado远远不止这些,且听我慢慢到来1.高性能的网络库,这可以和gevent,twisted,libevent等做对.提供了异步io支持,超时事 ...
- C51应用 Modbs Rtu协议实现与KEPServerEx 通信
最近一客户要求使用STC12C5A60S2实现Modbus Rtu协议与KEPServerEx V4.0软件通信,采集单片机P2口每位的状态,设置P0口每位的状态,实现三路AD转换其中一路采集的是C0 ...
- c/c++的函数参数压栈顺序
整理日:2015年3月18日 为了这句话丢了很多次人.无所谓了,反正咱脸皮厚. 总结一下 编译出来的c/c++程序的参数压栈顺序只和编译器相关! 下面列举了一些常见的编译器的调用约定 VC6 调用约定 ...
- 掌握C++基础
以下是笔者在ubuntu系统下编译运行通过的一些反应c++基础特性的例子,包括类,结构体,构造函数,析构函数,函数的重载,this指针,类的继承,虚函数,函数的覆盖和隐藏等.(由于格式问题代码中的乱码 ...
- wcf安全
http://www.cnblogs.com/artech/archive/2011/07/07/customauthorization01.html 安全 http://www.cnblogs.co ...
- Android模拟器常用命令收录
一.Linux命令 1.挂载/systme分区为读写状态 mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system 2.切换为Root用户 ...
- Java语言基础(五) Java原始数据类型的分类以及数据范围
Java原始数据类型的分类以及数据范围 1.基本数据类型分为:整型(byte, short, int, long),浮点型(float, double),字符型(char),布尔型(boolean) ...