• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

redis缓存异常终止

2018-02-01提问
  • 0关注
  • 1收藏,6728浏览
粉丝: 关注:

问题描述:

BS开发用的缓存服务redis,启动一段时间后,异常停止,错误信息如下,请助,急急急:

[148784] 01 Feb 08:42:48.859 * Background saving started by pid 178432 [178432] 01 Feb 08:42:49.969 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:42:50.062 # fork operation failed [148784] 01 Feb 08:42:52.656 # Background saving terminated by signal 1 [148784] 01 Feb 08:42:53.094 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:42:53.578 * Background saving started by pid 164236 [164236] 01 Feb 08:42:53.735 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:42:53.797 # fork operation failed [148784] 01 Feb 08:42:54.563 # Background saving terminated by signal 1 [148784] 01 Feb 08:42:59.072 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:43:00.072 * Background saving started by pid 39492 [39492] 01 Feb 08:43:00.291 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:43:00.400 # fork operation failed [148784] 01 Feb 08:43:01.447 # Background saving terminated by signal 1 [148784] 01 Feb 08:43:05.066 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:43:05.519 * Background saving started by pid 71608 [71608] 01 Feb 08:43:05.706 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:43:05.738 # fork operation failed [148784] 01 Feb 08:43:06.503 # Background saving terminated by signal 1 [148784] 01 Feb 08:43:11.097 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:43:11.550 * Background saving started by pid 94216 [94216] 01 Feb 08:43:11.722 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:43:11.941 # fork operation failed [148784] 01 Feb 08:43:12.707 # Background saving terminated by signal 1 [148784] 01 Feb 08:43:17.048 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:43:18.642 * Background saving started by pid 157888 [157888] 01 Feb 08:43:18.813 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:43:19.032 # fork operation failed [148784] 01 Feb 08:43:19.798 # Background saving terminated by signal 1 [148784] 01 Feb 08:43:26.107 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:43:26.576 * Background saving started by pid 20508 [20508] 01 Feb 08:43:26.763 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:43:26.966 # fork operation failed [148784] 01 Feb 08:43:27.732 # Background saving terminated by signal 1 [148784] 01 Feb 08:43:32.138 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:43:32.607 * Background saving started by pid 8100 [8100] 01 Feb 08:43:32.779 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:43:32.826 # fork operation failed [148784] 01 Feb 08:43:33.560 # Background saving terminated by signal 1 [148784] 01 Feb 08:43:38.061 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:43:38.514 * Background saving started by pid 171836 [171836] 01 Feb 08:43:38.670 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:43:38.733 # fork operation failed [148784] 01 Feb 08:43:39.498 # Background saving terminated by signal 1 [148784] 01 Feb 08:43:44.092 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:44:03.171 * Background saving started by pid 239028 [239028] 01 Feb 08:44:04.327 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:44:04.374 # fork operation failed [148784] 01 Feb 08:44:05.359 # Background saving terminated by signal 1 [148784] 01 Feb 08:44:05.483 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:44:06.108 * Background saving started by pid 199164 [199164] 01 Feb 08:44:07.265 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:44:07.327 # fork operation failed [148784] 01 Feb 08:44:08.155 # Background saving terminated by signal 1 [148784] 01 Feb 08:44:11.093 * 10 changes in 300 seconds. Saving... [148784] 01 Feb 08:44:11.562 * Background saving started by pid 153240 [153240] 01 Feb 08:44:12.704 # The Windows version of Redis reserves heap memory from the system paging file for sharing with the forked process used for persistence operations.At this time there is insufficient contiguous free space available in the system paging file. You may increase the size of the system paging file. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully. Redis can not continue. Exiting. [148784] 01 Feb 08:44:12.798 # PhysicalMapMemory: system error 0x000005af - PhysicalMapMemory: CreateFileMapping failed: unknown error === REDIS BUG REPORT START: Cut & paste starting from here === Redis version: 3.2.100 [148784] 01 Feb 08:44:15.487 # --- EXCEPTION_ACCESS_VIOLATION [148784] 01 Feb 08:44:15.487 # --- STACK TRACE redis-server.exe!LogStackTrace(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:95)(0x00AAE6C0, 0x00AAFF90, 0x00000001, 0x4013A7F8) 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, 0xD40B1BB0, 0x00000000, 0x00000000) ntdll.dll!memset(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00AAF2F0, 0xD6D9D55B, 0x401409E8, 0x00000000) ntdll.dll!_C_specific_handler(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000000, 0x00AAE830, 0x00AAF2F0, 0x00AAF2F0) ntdll.dll!_chkstk(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000001, 0xD6CE0000, 0x00000000, 0xD6E1409C) ntdll.dll!RtlRaiseException(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0x00000000, 0x00000000, 0xD9E8FF15, 0x00000000) ntdll.dll!KiUserExceptionDispatcher(c:\release\redis\src\win32_interop\win32_stacktrace.cpp:185)(0xD9E8FF03, 0xFD800009, 0x400CADD5, 0xD9E8FF15) redis-server.exe!memcpy(f:\dd\vctools\crt\crtw32\string\amd64\memcpy.asm:128)(0xFD800009, 0x400CADD5, 0xD9E8FF15, 0x0D353235) redis-server.exe!memcpy(f:\dd\vctools\crt\crtw32\string\amd64\memcpy.asm:128)(0x400CADD5, 0xD9E8FF15, 0x0D353235, 0x00000000) redis-server.exe!memcpy(f:\dd\vctools\crt\crtw32\string\amd64\memcpy.asm:128)(0xD9E8FF15, 0x0D353235, 0x00000000, 0x400A1B85) redis-server.exe!sdsnewlen(c:\release\redis\src\sds.c:138)(0x06214000, 0x0600DFBA, 0xD9E8FF15, 0x06214000) redis-server.exe!_addReplyStringToList(c:\release\redis\src\networking.c:324)(0x06214000, 0x02006970, 0x0600DFBA, 0x400A9F6C) redis-server.exe!addReplyString(c:\release\redis\src\networking.c:392)(0x06214000, 0xD6D3FD63, 0xD9E8FF15, 0x05FE0C50) redis-server.exe!addReplyBulkCBuffer(c:\release\redis\src\networking.c:578)(0x00000004, 0x06219420, 0x02006970, 0x06214000) redis-server.exe!lrangeCommand(c:\release\redis\src\t_list.c:425)(0x02008820, 0x0000000E, 0x0000000F, 0x00000000) redis-server.exe!call(c:\release\redis\src\server.c:2282)(0x5A7262DB, 0x00000000, 0x00000000, 0x0000000B) redis-server.exe!processCommand(c:\release\redis\src\server.c:2561)(0x00000000, 0x00000000, 0x0000003A, 0x00000000) redis-server.exe!processInputBuffer(c:\release\redis\src\networking.c:1438)(0x0000003A, 0x0000003A, 0x00000000, 0x00000000) redis-server.exe!readQueryFromClient(c:\release\redis\src\networking.c:1503)(0x0206C160, 0x00000001, 0x0200D100, 0x00000000) redis-server.exe!aeMain(c:\release\redis\src\ae.c:481)(0x5A71C3D4, 0x00000000, 0x001CD310, 0x00000002) redis-server.exe!redis_main(c:\release\redis\src\server.c:4157)(0x001BEEC0, 0x5A71C3D4, 0x001CD690, 0x00000002) redis-server.exe!main(c:\release\redis\src\win32_interop\win32_qfork.cpp:1241)(0x00000011, 0xFFFFFFFF, 0x00000011, 0x00000000) redis-server.exe!ServiceWorkerThread(c:\release\redis\src\win32_interop\win32_service.cpp:484)(0x4000B610, 0x00000000, 0x00000000, 0x00000000) KERNEL32.DLL!BaseThreadInitThunk(c:\release\redis\src\win32_interop\win32_service.cpp:484)(0xD47B13B0, 0x00000000, 0x00000000, 0x00000000) ntdll.dll!RtlUserThreadStart(c:\release\redis\src\win32_interop\win32_service.cpp:484)(0x00000000, 0x00000000, 0x00000000, 0x00000000) ntdll.dll!RtlUserThreadStart(c:\release\redis\src\win32_interop\win32_service.cpp:484)(0x00000000, 0x00000000, 0x00000000, 0x00000000) [148784] 01 Feb 08:44:18.639 # --- INFO OUTPUT # Server redis_version:3.2.100 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:dd26f1f93c5130ee redis_mode:standalone os:Windows arch_bits:64 multiplexing_api:WinSock_IOCP process_id:148784 run_id:6b472c61f7b6079985d38a28bfc8ec544ddbd7a0 tcp_port:6379 uptime_in_seconds:40711 uptime_in_days:0 hz:10 lru_clock:7496411 executable:D:\tools\redis3.0\"D:\tools\redis3.0\redis-server.exe" config_file:D:\tools\redis3.0\redis.windows.conf # Clients connected_clients:1 client_longest_output_list:0 client_biggest_input_buf:0 blocked_clients:0 # Memory used_memory:29327864728 used_memory_human:27.31G used_memory_rss:25670553512 used_memory_rss_human:23.91G used_memory_peak:29327864728 used_memory_peak_human:27.31G total_system_memory:0 total_system_memory_human:0B used_memory_lua:37888 used_memory_lua_human:37.00K maxmemory:0 maxmemory_human:0B maxmemory_policy:noeviction mem_fragmentation_ratio:0.88 mem_allocator:jemalloc-3.6.0 # Persistence loading:0 rdb_changes_since_last_save:14 rdb_bgsave_in_progress:1 rdb_last_save_time:1517445466 rdb_last_bgsave_status:err rdb_last_bgsave_time_sec:2 rdb_current_bgsave_time_sec:7 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:208614 total_commands_processed:413554 instantaneous_ops_per_sec:21 total_net_input_bytes:3602728796 total_net_output_bytes:-502237837 instantaneous_input_kbps:1.04 instantaneous_output_kbps:288.93 rejected_connections:0 sync_full:0 sync_partial_ok:0 sync_partial_err:0 expired_keys:0 evicted_keys:0 keyspace_hits:280104 keyspace_misses:130539 pubsub_channels:0 pubsub_patterns:0 latest_fork_usec:466451 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:95.81 used_cpu_user:44.08 used_cpu_sys_children:0.00 used_cpu_user_children:0.00 # Commandstats cmdstat_get:calls=408190,usec=11756501,usec_per_call=28.80 cmdstat_set:calls=1355,usec=225510,usec_per_call=166.43 cmdstat_del:calls=684,usec=2146,usec_per_call=3.14 cmdstat_incr:calls=16,usec=227,usec_per_call=14.19 cmdstat_decr:calls=7,usec=32,usec_per_call=4.57 cmdstat_rpush:calls=45,usec=514,usec_per_call=11.42 cmdstat_lpush:calls=18,usec=161,usec_per_call=8.94 cmdstat_lpop:calls=6,usec=108,usec_per_call=18.00 cmdstat_llen:calls=23,usec=1346,usec_per_call=58.52 cmdstat_lindex:calls=7,usec=91,usec_per_call=13.00 cmdstat_lset:calls=7,usec=150,usec_per_call=21.43 cmdstat_lrange:calls=1306,usec=50114374,usec_per_call=38372.42 cmdstat_ltrim:calls=18,usec=72,usec_per_call=4.00 cmdstat_lrem:calls=14,usec=154,usec_per_call=11.00 cmdstat_hset:calls=61,usec=633,usec_per_call=10.38 cmdstat_hdel:calls=3,usec=39,usec_per_call=13.00 cmdstat_hlen:calls=47,usec=329,usec_per_call=7.00 cmdstat_hgetall:calls=1069,usec=120563,usec_per_call=112.78 cmdstat_select:calls=678,usec=2336,usec_per_call=3.45 # Cluster cluster_enabled:0 # Keyspace db0:keys=31137,expires=0,avg_ttl=0 [148784] 01 Feb 08:44:18.639 # === 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.


组网及组网描述:


最佳答案

已采纳

redis是nosql数据库,属于软件开发类问题,得问下专业相关人士了

3 个回答
xvchi 四段
粉丝:0人 关注:2人

看起来像是windows分配给redis内存不足。请尝试扩大内存分配

-5470 四段
粉丝:0人 关注:3人

应该是调用redis相关服务时的逻辑有错误.

问题已解决,因为逻辑上写了死循环

发表时间:2018-04-03 更多>>

问题已解决,因为逻辑上写了死循环

发表时间:2018-04-03
知了小白
粉丝: 关注:

ttt

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明