microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.78k stars 5.37k forks source link

hello! my redis service always crashes sometimes, i need solution. #593

Closed QuasarZero closed 3 years ago

QuasarZero commented 6 years ago

the following is bug report.

=== REDIS BUG REPORT START: Cut & paste starting from here ===
[7244] 04 Mar 15:38:31.550 # Redis version: 3.0.503
[7244] 04 Mar 15:38:31.550 # --- EXCEPTION_ACCESS_VIOLATION
[7244] 04 Mar 15:38:31.550 # --- STACK TRACE
redis-server.exe!LogStackTrace(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:95)(0x000BE600, 0x0013FF90, 0x00000001, 0x40124730)
redis-server.exe!UnhandledExceptiontHandler(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000000, 0x00000000, 0x00000000, 0x00000000)
KERNELBASE.dll!UnhandledExceptionFilter(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000000, 0xC2341B84, 0x00000000, 0x00000000)
ntdll.dll!memset(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x000BF230, 0x00000000, 0x4012AC28, 0x00000000)
ntdll.dll!_C_specific_handler(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000000, 0x000BE770, 0x000BF230, 0x000BF230)
ntdll.dll!_chkstk(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000001, 0xC2230000, 0x00000000, 0xC2366510)
ntdll.dll!RtlRaiseException(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000000, 0x00000000, 0x00000000, 0x00000000)
ntdll.dll!KiUserExceptionDispatcher(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x317FFFFC, 0x03000000, 0x44FFFD59, 0x44ED9C5B)
redis-server.exe!lzf_compress(c:\release\redis\src\lzf_c.c:195)(0x333FF480, 0x333FF480, 0x00000001, 0x00000055)
redis-server.exe!rdbSaveLzfStringObject(c:\release\redis\src\rdb.c:231)(0x333FF480, 0x400A0DE3, 0x0013F6B0, 0x00000055)
redis-server.exe!rdbSaveRawString(c:\release\redis\src\rdb.c:296)(0x3F1E1721, 0x00000001, 0x02C07040, 0xF51469C8)
redis-server.exe!rdbSaveObject(c:\release\redis\src\rdb.c:515)(0x0013F6E0, 0x00000001, 0x333FF480, 0x333FF480)
redis-server.exe!rdbSaveRio(c:\release\redis\src\rdb.c:694)(0x40150210, 0x00760000, 0x00000005, 0x00B62754)
redis-server.exe!rdbSave(c:\release\redis\src\rdb.c:758)(0x00760000, 0x5A93ABCD, 0x00760000, 0x00000005)
redis-server.exe!QForkChildInit(c:\release\redis\src\win32_interop\win32_qfork.cpp:337)(0x00000005, 0x00000000, 0x001E7120, 0x00000005)
redis-server.exe!QForkStartup(c:\release\redis\src\win32_interop\win32_qfork.cpp:515)(0x00000006, 0x00000000, 0x00000000, 0x001E7FF0)
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)
[7244] 04 Mar 15:38:31.566 # --- INFO OUTPUT
# Server
redis_version:3.0.503
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:d14575c6134f877
redis_mode:standalone
os:Windows  
arch_bits:64
multiplexing_api:WinSock_IOCP
process_id:7244
run_id:0364388f4eee3cef266c20d0ccae3597cfe1bff3
tcp_port:6379
uptime_in_seconds:280749
uptime_in_days:3
hz:10
lru_clock:10199664
config_file:E:\ForQuasar\Redis\redis.windows.conf

# Clients
connected_clients:0
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

# Memory
used_memory:780141488
used_memory_human:744.00M
used_memory_rss:1371403848
used_memory_peak:1635190056
used_memory_peak_human:1.52G
used_memory_lua:620904012800
mem_fragmentation_ratio:1.76
mem_allocator:jemalloc-3.6.0

# Persistence
loading:0
rdb_changes_since_last_save:32
rdb_bgsave_in_progress:1
rdb_last_save_time:1520148803
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:102
rdb_current_bgsave_time_sec:1520149112
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

# Stats
total_connections_received:9553
total_commands_processed:22366
instantaneous_ops_per_sec:0
total_net_input_bytes:1682843063
total_net_output_bytes:2235446154
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:2576
evicted_keys:0
keyspace_hits:7085
keyspace_misses:2352
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:48890
migrate_cached_sockets:0

# Replication
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

# CPU
used_cpu_sys:0.63
used_cpu_user:6.81
used_cpu_sys_children:0.00
used_cpu_user_children:0.00

# Commandstats

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=809,expires=809,avg_ttl=45219319
[7244] 04 Mar 15:38:31.566 # 
=== REDIS BUG REPORT END. Make sure to include from START to END. ===

thx

tporadowski commented 6 years ago

I suppose you could try latest 3.2.100 from this repo or give a try to 4.0.2 (from my fork) as this fork from MSOpenTech is no longer maintained.

QuasarZero commented 6 years ago

@tporadowski thx, i will try to do it.

enricogior commented 5 years ago

Hi @QuasarZero, this repository hasn't been updated in almost 3 years. But finally there is a new software that provides Redis compatibility on Windows, and is currently up-to-date with the Redis 5 API. See https://github.com/MicrosoftArchive/redis/issues/620.