Page MenuHomePhabricator
Authored By
ema
Jan 21 2020, 3:34 PM
Size
894 B
Referenced Files
None
Subscribers
None
i think you can try to lower the number of lua state.
in plugin.config
tslua.so --states=64 /etc/trafficserver/lua/default.lua --enable-reload
so basically with luajit there is a limit of 1 GB of running memory.
if you have too much stuff kept around in the lua VM, and you go over that limit, you will get a "panic".
especially when a reload is happening, there are usually more stuff being kept around.
the default number of states is 256, which is a bit high. lowering it to 64 should give you plenty of room .
that is at the expense of a little increase in latency but for the most part i think it should be negligible (<a few ms), i think
in the similar fashion, you should also consider lowering the number of states in the lua script used in the remap.config as well. e.g.
map http://a.tbcdn.cn/ http://inner.tbcdn.cn/ @plugin=/XXX/tslua.so @pparam=--states=64 @pparam=/XXX/test_hdr.lua

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8288591
Default Alt Text
raw.txt (894 B)

Event Timeline