openresty 1.11.2.2 memory allocation error: not enough memory

63 views
Skip to first unread message

ushar...@gmail.com

unread,
Jan 17, 2018, 6:40:07 AM1/17/18
to openresty-en
Hi
   I found that openresty has not enough memory error. The following is the nginx debug log I grabbed.

2018/01/17 10:31:58 [debug] 27070#0: *188 http request line: "GET /video/card/list?app_version=1&api_version=1&identity_id=ap-northeast-1%3A8c4dafe9-d4d4-4de9-81dd-920f43abdd0c&lang=en&os_type=android&os_version=23&screen_width=1080&net=WIFI&screen_height=1920 HTTP/1.1"
2018/01/17 10:31:58 [debug] 27070#0: *188 http uri: "/video/card/list"
2018/01/17 10:31:58 [debug] 27070#0: *188 http args: "app_version=1&api_version=1&identity_id=ap-northeast-1%3A8c4dafe9-d4d4-4de9-81dd-920f43abdd0c&lang=en&os_type=android&os_version=23&screen_width=1080&net=WIFI&screen_height=1920"
2018/01/17 10:31:58 [debug] 27070#0: *188 http exten: ""
2018/01/17 10:31:58 [debug] 27070#0: *188 http process request header line
2018/01/17 10:31:58 [debug] 27070#0: *188 http header: "host: shareitapi-test-558403243.ap-southeast-1.elb.amazonaws.com:8080"
2018/01/17 10:31:58 [debug] 27070#0: *188 http header: "Accept-Encoding: gzip"
2018/01/17 10:31:58 [debug] 27070#0: *188 http header: "User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0.1; MI NOTE LTE MIUI/V9.2.1.0.MXECNEK)"
2018/01/17 10:31:58 [debug] 27070#0: *188 http header: "X-Forwarded-For: 223.223.188.146"
2018/01/17 10:31:58 [debug] 27070#0: *188 http header: "X-Forwarded-Port: 8080"
2018/01/17 10:31:58 [debug] 27070#0: *188 http header: "X-Forwarded-Proto: http"
2018/01/17 10:31:58 [debug] 27070#0: *188 http header: "Connection: keep-alive"
2018/01/17 10:31:58 [debug] 27070#0: *188 http header done
2018/01/17 10:31:58 [debug] 27070#0: *188 rewrite phase: 0
2018/01/17 10:31:58 [debug] 27070#0: *188 rewrite phase: 1
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: "/"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: "setting/update"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: "test"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: "video/item/detail"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: "video/channel/item/list"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: "video/card/list"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: ~ "/test/dao/([-_a-zA-Z0-9/]+)"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: ~ "/test/cache/([-_a-zA-Z0-9/]+)"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: ~ "/test/service/([-_a-zA-Z0-9/]+)"
2018/01/17 10:31:58 [debug] 27070#0: *188 test location: ~ "/test/api/([-_a-zA-Z0-9/]+)"
2018/01/17 10:31:58 [debug] 27070#0: *188 using configuration "/video/card/list"
2018/01/17 10:31:58 [debug] 27070#0: *188 http cl:-1 max:1048576
2018/01/17 10:31:58 [debug] 27070#0: *188 rewrite phase: 3
2018/01/17 10:31:58 [debug] 27070#0: *188 rewrite phase: 4
2018/01/17 10:31:58 [debug] 27070#0: *188 post rewrite phase: 5
2018/01/17 10:31:58 [debug] 27070#0: *188 generic phase: 6
2018/01/17 10:31:58 [debug] 27070#0: *188 generic phase: 7
2018/01/17 10:31:58 [debug] 27070#0: *188 access phase: 8
2018/01/17 10:31:58 [debug] 27070#0: *188 access phase: 9
2018/01/17 10:31:58 [debug] 27070#0: *188 post access phase: 10
2018/01/17 10:31:58 [debug] 27070#0: *188 lua content handler, uri:"/video/card/list" c:1
2018/01/17 10:31:58 [debug] 27070#0: *188 posix_memalign: 00007F6BEBBD0A60:4096 @16
2018/01/17 10:31:58 [debug] 27070#0: *188 add cleanup: 00007F6BEBBD09F0
2018/01/17 10:31:58 [debug] 27070#0: *188 lua creating new vm state
2018/01/17 10:31:58 [debug] 27070#0: *188 lua initializing lua registry
2018/01/17 10:31:58 [debug] 27070#0: *188 lua initializing lua globals
2018/01/17 10:31:58 [debug] 27070#0: *188 lua initialize the global Lua VM 000000004D955378
2018/01/17 10:31:58 [debug] 27070#0: *188 malloc: 00007F6C3A0C7E70:16
2018/01/17 10:31:58 [debug] 27070#0: *188 lua reset ctx
2018/01/17 10:31:58 [debug] 27070#0: *188 lua creating new thread
2018/01/17 10:31:58 [debug] 27070#0: *188 http cleanup add: 00007F6BEBBD0A30
2018/01/17 10:31:58 [debug] 27070#0: *188 lua run thread, top:0 c:1
2018/01/17 10:31:58 [debug] 27070#0: *188 lua resume returned 4
2018/01/17 10:31:58 [error] 27070#0: *188 lua entry thread aborted: memory allocation error: not enough memory
stack traceback:
coroutine 0:
[C]: in function 'require'
...it-sharezone-server-lua/model/action/card/video_list.lua:7: in function <...it-sharezone-server-lua/model/action/card/video_list.lua:1>, client: 10.0.3.96, server: , request: "GET /video/card/list?app_version=1&api_version=1&identity_id=ap-northeast-1%3A8c4dafe9-d4d4-4de9-81dd-920f43abdd0c&lang=en&os_type=android&os_version=23&screen_width=1080&net=WIFI&screen_height=1920 HTTP/1.1", host: "shareitapi-test-558403243.ap-southeast-1.elb.amazonaws.com:8080"
2018/01/17 10:31:58 [debug] 27070#0: *188 lua request cleanup: forcible=0
2018/01/17 10:31:58 [debug] 27070#0: *188 http finalize request: 500, "/video/card/list?app_version=1&api_version=1&identity_id=ap-northeast-1%3A8c4dafe9-d4d4-4de9-81dd-920f43abdd0c&lang=en&os_type=android&os_version=23&screen_width=1080&net=WIFI&screen_height=1920" a:1, c:1
2018/01/17 10:31:58 [debug] 27070#0: *188 http special response: 500, "/video/card/list?app_version=1&api_version=1&identity_id=ap-northeast-1%3A8c4dafe9-d4d4-4de9-81dd-920f43abdd0c&lang=en&os_type=android&os_version=23&screen_width=1080&net=WIFI&screen_height=1920"
2018/01/17 10:31:58 [debug] 27070#0: *188 http set discard body
2018/01/17 10:31:58 [debug] 27070#0: *188 lua capture header filter, uri "/video/card/list"
2018/01/17 10:31:58 [debug] 27070#0: *188 charset: "" > "UTF-8"
2018/01/17 10:31:58 [debug] 27070#0: *188 HTTP/1.1 500 Internal Server Error
Server: openresty
Date: Wed, 17 Jan 2018 10:31:58 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 186
Connection: close

2018/01/17 10:31:58 [debug] 27070#0: *188 write new buf t:1 f:0 00007F6BEBBD0CB8, pos 00007F6BEBBD0CB8, size: 174 file: 0, size: 0
2018/01/17 10:31:58 [debug] 27070#0: *188 http write filter: l:0 f:0 s:174
2018/01/17 10:31:58 [debug] 27070#0: *188 http output filter "/video/card/list?app_version=1&api_version=1&identity_id=ap-northeast-1%3A8c4dafe9-d4d4-4de9-81dd-920f43abdd0c&lang=en&os_type=android&os_version=23&screen_width=1080&net=WIFI&screen_height=1920"
2018/01/17 10:31:58 [debug] 27070#0: *188 http copy filter: "/video/card/list?app_version=1&api_version=1&identity_id=ap-northeast-1%3A8c4dafe9-d4d4-4de9-81dd-920f43abdd0c&lang=en&os_type=android&os_version=23&screen_width=1080&net=WIFI&screen_height=1920"
2018/01/17 10:31:58 [debug] 27070#0: *188 lua capture body filter, uri "/video/card/list"
2018/01/17 10:31:58 [debug] 27070#0: *188 http postpone filter "/video/card/list?app_version=1&api_version=1&identity_id=ap-northeast-1%3A8c4dafe9-d4d4-4de9-81dd-920f43abdd0c&lang=en&os_type=android&os_version=23&screen_width=1080&net=WIFI&screen_height=1920" 00007F6BEBBD0E90
Reply all
Reply to author
Forward
0 new messages