lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi list.

I wonder how to profile memory usage. I have this application, a
content-based router that moves notifications and subscriptions trough a
p2p network. It's based around a socket server (LuaSocket based), and
keeps lots of tables for peer lists, loop detection, subscription
filters, and assorted stuff. The memory consumption fluctuates a lot
with usage patterns, and there are a few configuration parameters that
have a serious impact.
It's intended to be run on plain consumer-grade wireless routers
(WRT54GL's and such), so RAM consumption is an issue.
I've googled around and only found stuff related to pre-5.1 lua,and
wonder if there's an easy way to see what tables are consuming what.

Thanks in advance,

Jorge