operation #2770

Cannot allocate memory

Added by 龙 辉 about 5 years ago. Updated about 5 years ago.

Status:进行中 Start date:11/21/2014
Priority:High Due date:12/31/2014
Assignee:龙 辉 % Done:

0%

Category:- Spent time: -
Target version:-

Description

500

We're sorry, but something went wrong.

重启gitlab和redis后,释放内存,暂时解决问题。

tail redis-server.log
[23349] 21 Nov 11:29:58 * 10 changes in 300 seconds. Saving...
[23349] 21 Nov 11:29:58 # Can't save in background: fork: Cannot allocate memory
[23349] 21 Nov 11:29:58 * 10 changes in 300 seconds. Saving...
[23349] 21 Nov 11:29:58 # Can't save in background: fork: Cannot allocate memory
[23349] 21 Nov 11:29:59 * 10 changes in 300 seconds. Saving...
[23349] 21 Nov 11:29:59 # Can't save in background: fork: Cannot allocate memory
[8674] 21 Nov 11:44:44 * Server started, Redis version 2.x.xx
[8674] 21 Nov 11:44:44 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[8674] 21 Nov 11:44:54 * DB loaded from disk: 10 seconds
[8674] 21 Nov 11:44:54 * The server is now ready to accept connections on port 1234

History

#1 Updated by 龙 辉 about 5 years ago

add 'vm.overcommit_memory = 1' to /etc/sysctl.conf

sysctl vm.overcommit_memory=1

Also available in: Atom PDF