-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Submitting an Issue
From http://redis.io/topics/problems:
We have a long history of users experiencing crashes with Redis that actually turned out to be servers with broken RAM. Please test your RAM using redis-server --test-memory in case Redis is not stable in your system. Redis built-in memory test is fast and reasonably reliable, but if you can you should reboot your server and use memtest86.
Starting with the 2.8.21 release the built-in memory test is also available on Redis on Windows:
redis-server.exe --test-memory <megabytes>
If the issue you are reporting is a crash, please take the time to run the Redis memory test first or even better the Windows Memory Diagnostic tool.
Another common source of crashes on Windows is an inadequate size of the system paging file. If the system paging file size limit is reached during a fork operation, Redis will crash even if there is plenty of physical RAM available. To make sure the system paging file size is large enough please follow the Memory Configuration guidelines.
Starting with the 2.8.21 release, Redis on Windows produces a BUG REPORT when Redis crashes:
=== REDIS BUG REPORT START: Cut & paste starting from here ===
[6840] 23 Jun 23:58:33.208 # --- EXCEPTION_ACCESS_VIOLATION
[6840] 23 Jun 23:58:33.209 # --- STACK TRACE
.....
redis-server.exe!debugCommand(c:\redis\src\debug.c:261)(0xF73F22F0, 0xBF55D2AF, 0xF73800F0, 0x4007038C)
redis-server.exe!call(c:\redis\src\redis.c:2016)(0x5589D689, 0x40087DD0, 0x00000001, 0x00000006)
redis-server.exe!processCommand(c:\redis\src\redis.c:2235)(0xF73F22F0, 0x00000006, 0x0000001D, 0x00000001)
redis-server.exe!processInputBuffer(c:\redis\src\networking.c:1278)(0xF73F22F0, 0x00000000, 0x0000001D, 0x00000000)
redis-server.exe!readQueryFromClient(c:\redis\src\networking.c:1333)(0xF73000D0, 0x00000001, 0xF73D6F00, 0x00000001)
redis-server.exe!aeMain(c:\redis\src\ae.c:487)(0x5589D67F, 0xF7386968, 0x00000002, 0x002CD190)
redis-server.exe!redis_main(c:\redis\src\redis.c:3544)(0x00000000, 0x00000000, 0x5589D67F, 0x00000000)
redis-server.exe!main(c:\redis\src\win32_interop\win32_qfork.cpp:1383)(0x00000000, 0x00000000, 0x00000000, 0x00000000)
.....
[6840] 23 Jun 23:58:33.241 # --- INFO OUTPUT
# Server
redis_version:2.8.21
redis_git_dirty:0
redis_build_id:e84b20ff4e0813fa
redis_mode:standalone
os:Windows
arch_bits:64
multiplexing_api:winsock_IOCP
process_id:6840
run_id:83c78034115fe370d363ac730d2d55129c9a263b
tcp_port:6379
uptime_in_seconds:10
uptime_in_days:0
.....
[6840] 23 Jun 23:58:33.250 #
=== REDIS BUG REPORT END. Make sure to include from START to END. ===
When reporting a bug that caused Redis to crash, please make sure to include the full BUG REPORT from START to END. In some cases the BUG REPORT includes only the STACK TRACE section but not the INFO OUTPUT.
Report the crash by opening an issue at http://github.com/MSOpenTech/redis/issues
If you are experiencing redis-server crashes and the log isn't reporting the Stack Trace information, please enable the Windows crash mini dump report as explained in the following wiki page: Mini Dump Configuration Instructions
When submitting an issue that doesn't have a BUG REPORT, please include the following information:
- Redis version number.
- Redis server configuration: # of slaves, # of sentinels.
- Redis configuration files for master, slaves, sentinels.
- Windows version.
If possible describe the steps to reproduce the issue (a script or code that can automate the steps would be ideal).
Report the issue at http://github.com/MSOpenTech/redis/issues
=== REDIS BUG REPORT START: Cut & paste starting from here === [4776] 29 Dec 09:13:11.730 # Redis version: 3.0.504 [4776] 29 Dec 09:13:11.730 # --- EXCEPTION_ACCESS_VIOLATION [4776] 29 Dec 09:13:11.730 # --- STACK TRACE redis-server.exe!LogStackTrace(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:95)(0x0014DFA0, 0x0014FF60, 0x0014DFA0, 0x40124730) redis-server.exe!UnhandledExceptiontHandler(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x40028E60, 0x40028E60, 0x0014DFA0, 0x00000010) KERNELBASE.dll!UnhandledExceptionFilter(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000000, 0x95B02008, 0x00000000, 0x00000000) ntdll.dll!memset(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x0014EC30, 0xFEEEFEEE, 0x0014EC30, 0x0014E568) ntdll.dll!_C_specific_handler(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000000, 0x0014E550, 0x00000000, 0x40000000) ntdll.dll!_chkstk(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x0014E550, 0x00000000, 0x9365BC3C, 0x935B0000) ntdll.dll!RtlWalkFrameChain(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x0EADE9EA, 0xFE8E3B55, 0x0014F5F8, 0x959D7F3D) ntdll.dll!KiUserExceptionDispatcher(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x4008E920, 0x00000030, 0x400DD251, 0x04407040) redis-server.exe!dictGenHashFunction(c:\release\redis\src\dict.c:127)(0x00000030, 0x400DD251, 0x04407040, 0x0014F6B0) redis-server.exe!dictFind(c:\release\redis\src\dict.c:514)(0x0014F5F8, 0x00000001, 0x04407040, 0x04407070) redis-server.exe!getExpire(c:\release\redis\src\db.c:804)(0x0014F6B0, 0x0FBC1A40, 0x064B65A0, 0x064B65A0) redis-server.exe!rdbSaveRio(c:\release\redis\src\rdb.c:693)(0x40150210, 0x01630000, 0x00000005, 0x01A32754) redis-server.exe!rdbSave(c:\release\redis\src\rdb.c:758)(0x01630000, 0x5FD7F6A3, 0x01630000, 0x00000005) redis-server.exe!QForkChildInit(c:\release\redis\src\win32_interop\win32_qfork.cpp:337)(0x00000005, 0x00000000, 0x0057DFA0, 0x00000005) redis-server.exe!QForkStartup(c:\release\redis\src\win32_interop\win32_qfork.cpp:515)(0x00000006, 0x00000000, 0x00000000, 0x00565640) redis-server.exe!main(c:\release\redis\src\win32_interop\win32_qfork.cpp:1240)(0x00000000, 0x00000000, 0x00000000, 0x00000000) redis-server.exe!__tmainCRTStartup(f:\dd\vctools\crt\crtw32\startup\crt0.c:255)(0x00000000, 0x00000000, 0x00000000, 0x00000000) KERNEL32.DLL!BaseThreadInitThunk(f:\dd\vctools\crt\crtw32\startup\crt0.c:255)(0x00000000, 0x00000000, 0x00000000, 0x00000000) ntdll.dll!RtlUserThreadStart(f:\dd\vctools\crt\crtw32\startup\crt0.c:255)(0x00000000, 0x00000000, 0x00000000, 0x00000000) ntdll.dll!RtlUserThreadStart(f:\dd\vctools\crt\crtw32\startup\crt0.c:255)(0x00000000, 0x00000000, 0x00000000, 0x00000000) [4776] 29 Dec 09:13:11.730 # --- INFO OUTPUT
redis_version:3.0.504
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:a4f7a6e86f2d60b3
redis_mode:standalone
os:Windows
arch_bits:64
multiplexing_api:WinSock_IOCP
process_id:4776
run_id:f6e90d287241e61ad8cbd212aee43e72ab1bb563
tcp_port:6379
uptime_in_seconds:1616860
uptime_in_days:18
hz:10
lru_clock:15385071
config_file:C:\Program Files\Redis\redis.windows-service.conf
connected_clients:283 client_longest_output_list:1 client_biggest_input_buf:4265607760 blocked_clients:0
used_memory:944 used_memory_human:944B used_memory_rss:307938944 used_memory_peak:551673856 used_memory_peak_human:526.12M used_memory_lua:-32010591232 mem_fragmentation_ratio:326206.50 mem_allocator:jemalloc-3.6.0
loading:0 rdb_changes_since_last_save:248539 rdb_bgsave_in_progress:1 rdb_last_save_time:1609220530 rdb_last_bgsave_status:ok rdb_last_bgsave_time_sec:2 rdb_current_bgsave_time_sec:1609220592 aof_enabled:0 aof_rewrite_in_progress:0 aof_rewrite_scheduled:0 aof_last_rewrite_time_sec:-1 aof_current_rewrite_time_sec:-1 aof_last_bgrewrite_status:ok aof_last_write_status:ok
total_connections_received:2145 total_commands_processed:6532475159 instantaneous_ops_per_sec:22654 total_net_input_bytes:772342079093 total_net_output_bytes:8913770464992 instantaneous_input_kbps:2717.40 instantaneous_output_kbps:26171.58 rejected_connections:0 sync_full:0 sync_partial_ok:0 sync_partial_err:0 expired_keys:158349869 evicted_keys:0 keyspace_hits:2863444947 keyspace_misses:290755433 pubsub_channels:1 pubsub_patterns:0 latest_fork_usec:20866 migrate_cached_sockets:0
role:master connected_slaves:0 master_repl_offset:0 repl_backlog_active:0 repl_backlog_size:1048576 repl_backlog_first_byte_offset:0 repl_backlog_histlen:0
used_cpu_sys:0.08 used_cpu_user:0.06 used_cpu_sys_children:0.00 used_cpu_user_children:0.00
cluster_enabled:0
db0:keys=2,expires=1,avg_ttl=21168130416 db1:keys=323823,expires=323823,avg_ttl=498062 db2:keys=597,expires=597,avg_ttl=660808 db3:keys=1,expires=0,avg_ttl=0 [4776] 29 Dec 09:13:11.730 # === REDIS BUG REPORT END. Make sure to include from START to END. ===
Please report this bug by following the instructions at:
http://github.com/MSOpenTech/redis/wiki/Submitting-an-Issue
Suspect RAM error? Use redis-server --test-memory to verify it.
[3708] 29 Dec 09:13:12.104 # fork operation failed