Groups
Groups
Sign in
Groups
Groups
openresty
Conversations
Labels
About
Send feedback
Help
修改 lua_shared_dict 共享内存大小后,reload 能反应修改后的大小吗?
139 views
lua
luajit
openresty
Skip to first unread message
莫言梦
unread,
Dec 12, 2016, 6:34:12 AM
12/12/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openresty
现在知道 reload 不会清理 lua_shared_dict 共享内存。如果修改了 lua_shared_dict 的内存大小,reload 会反映改变吗?还是必须 restart 呢?谢谢。
Zexuan Luo
unread,
Dec 12, 2016, 10:43:01 PM
12/12/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openresty
nginx 只有在 shm_zone 配置不变的情况下才会复用之前的空间。
lua_shared_dict 也是 shm_zone 的一种。所以修改了内存大小后,原本的共享内存会被清理掉,会反映改变。
在 2016年12月12日星期一 UTC+8下午7:34:12,莫言梦写道:
莫言梦
unread,
Dec 13, 2016, 3:52:56 AM
12/13/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openresty
明白了,非常感谢您的热心解答。
Reply all
Reply to author
Forward
0 new messages