Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx-0.7.45
Для лога уровня error.
Вот ktrace:
[root@test ~]# kdump | wc -l
325564
[root@test ~]# kdump | grep -v gettimeofday
[root@test ~]#
Вот backtrace:
(gdb) bt
#0 0x0000000032c0906c in gettimeofday () from /lib/libc.so.7
#1 0x0000000000413013 in ngx_time_update (sec=0, msec=0) at
src/core/ngx_times.c:70
#2 0x000000000046808e in ngx_http_file_cache_manager_sleep
(cache=0x32e4bca0) at src/http/ngx_http_file_cache.c:1088
#3 0x0000000000468033 in ngx_http_file_cache_manager (data=0x32e4bca0)
at src/http/ngx_http_file_cache.c:1074
#4 0x000000000042f95d in ngx_cache_manager_process_handler
(ev=0x7fffffffe720) at src/os/unix/ngx_process_cycle.c:1320
#5 0x00000000004244fa in ngx_event_expire_timers () at
src/event/ngx_event_timer.c:149
#6 0x0000000000422284 in ngx_process_events_and_timers
(cycle=0x32e20048) at src/event/ngx_event.c:261
#7 0x000000000042f6f9 in ngx_cache_manager_process_cycle
(cycle=0x32e20048, data=0x0) at src/os/unix/ngx_process_cycle.c:1302
#8 0x000000000042bb11 in ngx_spawn_process (cycle=0x32e20048,
proc=0x42f580 <ngx_cache_manager_process_cycle>, data=0x0,
name=0x49202c "cache manager process", respawn=-2) at
src/os/unix/ngx_process.c:187
#9 0x000000000042d863 in ngx_start_cache_manager_process
(cycle=0x32e20048, type=-2) at src/os/unix/ngx_process_cycle.c:383
#10 0x000000000042cd87 in ngx_master_process_cycle (cycle=0x32e20048) at
src/os/unix/ngx_process_cycle.c:125
#11 0x0000000000403167 in main (argc=1, argv=0x7fffffffeb90) at
src/core/nginx.c:363
Для лога уровня debug:
(gdb) bt
#0 0x0000000032c17aec in write () from /lib/libc.so.7
#1 0x0000000000404c93 in ngx_write_fd (fd=10, buf=0x7fffffffdc00, n=65)
at ngx_files.h:111
#2 0x0000000000404c5a in ngx_log_error_core (level=8, log=0x32e3f2a0,
err=0, fmt=0x4913f2 "malloc: %p:%uz") at src/core/ngx_log.c:153
#3 0x0000000000428df0 in ngx_alloc (size=57, log=0x32e3f2a0) at
src/os/unix/ngx_alloc.c:27
#4 0x0000000000467567 in ngx_http_file_cache_forced_expire
(cache=0x32e6f2a8) at src/http/ngx_http_file_cache.c:818
#5 0x0000000000468026 in ngx_http_file_cache_manager (data=0x32e6f2a8)
at src/http/ngx_http_file_cache.c:1072
#6 0x000000000042f95d in ngx_cache_manager_process_handler
(ev=0x7fffffffe720) at src/os/unix/ngx_process_cycle.c:1320
#7 0x00000000004244fa in ngx_event_expire_timers () at
src/event/ngx_event_timer.c:149
#8 0x0000000000422284 in ngx_process_events_and_timers
(cycle=0x32e3f048) at src/event/ngx_event.c:261
#9 0x000000000042f6f9 in ngx_cache_manager_process_cycle
(cycle=0x32e3f048, data=0x0) at src/os/unix/ngx_process_cycle.c:1302
#10 0x000000000042bb11 in ngx_spawn_process (cycle=0x32e3f048,
proc=0x42f580 <ngx_cache_manager_process_cycle>, data=0x0,
name=0x49202c "cache manager process", respawn=-3) at
src/os/unix/ngx_process.c:187
#11 0x000000000042d863 in ngx_start_cache_manager_process
(cycle=0x32e3f048, type=-3) at src/os/unix/ngx_process_cycle.c:383
#12 0x000000000042d254 in ngx_master_process_cycle (cycle=0x32e3f048) at
src/os/unix/ngx_process_cycle.c:225
#13 0x0000000000403167 in main (argc=1, argv=0x7fffffffeb90) at
src/core/nginx.c:363
Alex Vorona пишет:
31.03.2009 13:49, Andrey Zonov wrote:
Про 50 и 30 не понял.
Кеш чистится до 0 - всегда, причём иногда cache manager после очистки
начинает жрать 100% (после увеличения max_size это стало происходить
реже, но всё же случается)
Игорь, а gcore -s на PID cache manager в то время, когда он ест CPU, и
последующий backtrace ничем не помогут?
|