500 Internal Server Error

I use version v0.9.71
环境 CentOS 6.5 64位 , 使用sqlite,所有的都是默认的。
创建rep后,提交小文件没有问题。我提交一个文件夹,大于400M的文件就出现这个问题。
现在还不能测试到能最大能提交是多大。但是提交500M左右的就一定出这个问题。

看日志文件

这是我的日志。内存不够是因为我服务器的cpu太小的缘故的吗。我现在是1G

gogs.log中log

2016/08/13 00:11:04 [I] Log Mode: File(Info)
2016/08/13 00:11:04 [I] Cache Service Enabled
2016/08/13 00:11:04 [I] Session Service Enabled
2016/08/13 00:11:04 [I] Git Version: 1.7.1
2016/08/13 00:11:04 [I] SQLite3 Supported
2016/08/13 00:11:04 [I] Run Mode: Production
2016/08/13 00:11:04 [I] Listen: http://0.0.0.0:3000

http.log

016/08/12 23:32:07 [...routers/repo/http.go:383 serviceRPC()] [E] fail to serve
RPC(receive-pack): fork/exec /usr/bin/git: cannot allocate memory
2016/08/12 23:32:33 [...routers/repo/http.go:500 func1()] [E] fork/exec /usr/bin/
git: cannot allocate memory -
2016/08/12 23:36:18 [...routers/repo/http.go:383 serviceRPC()] [E] fail to serve
RPC(receive-pack): fork/exec /usr/bin/git: cannot allocate memory
2016/08/12 23:38:25 [...routers/repo/http.go:383 serviceRPC()] [E] fail to serve
RPC(receive-pack): fork/exec /usr/bin/git: cannot allocate memory
2016/08/12 23:44:18 [...routers/repo/http.go:383 serviceRPC()] [E] fail to serve
RPC(receive-pack): fork/exec /usr/bin/git: cannot allocate memory
2016/08/12 23:51:32 [...routers/repo/http.go:383 serviceRPC()] [E] fail to serve
RPC(receive-pack): fork/exec /usr/bin/git: cannot allocate memory
~

我想问下,git push的时候的文件大小是不是和服务器的内存有关系呢。我现在512M的内存,每次提交500M左右的文件就暴内存超出错误。错误就是上面的。这个是git的问题吗。

Try to use SSH push for large content.