Blog‎ > ‎

Jim Davidson on a few undocumented things you can do with Aolserver

posted Feb 10, 2009, 3:10 PM by Jade Rubick

It turns out theres an undocumented Tcl_GetMemoryInfo call in Tcl. The only user is AOLserver's "ns_info pools" command which uses it to get a list of lists of per-bucket memory usage for each thread. Since it turns out you can load libnsd to get the ns_info command (also undocumented), you can try this:

shell# bin/tclsh8.5
% load lib/libnsd.so
% ns_info pools; ... look at output on zippy memory usage ...
% ... run test ...
% ns_info pools; ... look again ...

Comments