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 ...
随机推荐
- C# Winform C/S系统快速开发平台(源码+原创)
C/S系统开发框架-企业版 V4.0 (Enterprise Edition) 简介: http://www.csframework.com/cs-framework-4.0.htm 适用软件:适合开 ...
- Windows下配置g++的简单方法
需要下载名为 Cygnus的软件.下载地址: http://www.claremontmckenna.edu/math/ALee/g++/full.exe 安装完成后配好环境变量就可以用gcc, g+ ...
- __name__ == '__main__'的作用
当你打开一个.py文件时,经常会在代码的最下面看到if __name__ == '__main__':,现在就来介 绍一下它的作用. 模块是对象,并且所有的模块都有一个内置属性 __name__.一个 ...
- git 创建多个账户ssh
创建一个账户 创建ssh本地秘钥. $ ssh-keygen -t rsa -C "youremail@xxx.com" 一路回车,会在~/.ssh/目录下生成id_rsa和id_ ...
- 在oj平台上练习的一些总结【转】
程序书写过程中的一些小技巧:1. freopen(“1.txt”,”r”,stdin); //程序运行后系统自动输入此文档里面的内容(不需要进行手动输入)freopen(“1.txt”,”w”,std ...
- Find your present (2) (位异或)
Problem Description In the new year party, everybody will get a "special present".Now it's ...
- Scut 上线后遇到的问题
1. 上线后的大并发问题: var sem = new Semaphore(_accepts, _accepts); while (true) { sem.WaitOne(); #pragma war ...
- PHP-mac下的配置及运行
Here's another option, from the guys from liip, here. This is a PHP package that comes pre-built for ...
- BZOJ 4052 Magical GCD
Description 给出一个长度在\(100000\)以内的正整数序列,大小不超过\(10^{12}\).求一个连续子序列,使得在所有的连续子序列中,它们的GCD值乘以它们的长度最大. Input ...
- nginx的autoindex-目录浏览还有其它两个参数
不知的话,显示的时间是不一定是我们想要的.. http://blog.csdn.net/yuanchao99/article/details/16354163 Nginx打开目录浏览功能(autoin ...