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 ...
随机推荐
- linux平台上面python调用c
不能免俗,先打印个helloworld出来,c代码的函数 hello.c #include <stdio.h> int helloworld() { printf("hello ...
- 十大响应式Web设计框架
http://www.csdn.net/article/2014-05-13/2819739-responsive-frameworks-for-web-design 对于设计师而言,网站设计中的任意 ...
- ZeroBraneStudio之支持远程调试
打开ZBS后,如果需要远程调试得先开启调试服务器:Project->Start Debugger Server 打开之后就可以编辑文件进行测试了.示例代码如下: local ZBS = 'D:/ ...
- BZOJ 3569 DZY Loves Chinese II
Description 神校XJ之学霸兮,Dzy皇考曰JC. 摄提贞于孟陬兮,惟庚寅Dzy以降. 纷Dzy既有此内美兮,又重之以修能. 遂降临于OI界,欲以神力而凌♂辱众生. 今Dzy有一魞歄图,其上 ...
- Android程序的隐藏与退出
转自Android程序的隐藏与退出 Android的程序无需刻意的去退出,当你一按下手机的back键的时候,系统会默认调用程序栈中最上层Activity的Destroy()方法来销毁当前Activit ...
- Android假退出不是流氓行为
转自Android假退出不是流氓行为 关于Android程序的退出,目前我们没有再用System.exit(0)或killProcess的机制而是直接用Activity.finish假退出了.因此在内 ...
- 【POJ2773】Happy 2006 欧几里德
题目描述: 分析: 根据欧几里德,我们有gcd(b×t+a,b)=gcd(a,b) 则如果a与b互质,则b×t+a与b也一定互质,如果a与b不互质,则b×t+a与b也一定不互质. 所以与m互质的数对m ...
- 【CF】220B Little Elephant and Array
区间动态统计的好题. /* */ #include <iostream> #include <string> #include <map> #include < ...
- Web Service和ISAPI的区别与联系 转
Web Service和ISAPI的区别与联系 1.Web Service 是一种新的web应用程序分支,他们是自包含.自描述.模块化的应用,可以发布.定位.通过web调用.Web Service ...
- HDU-2149 Public Sale
http://acm.hdu.edu.cn/showproblem.php?pid=2149 巴什博奕(Bash Game): Public Sale Time Limit: 1000/1000 MS ...