From: Gustaf N. <ne...@wu...> - 2023-11-23 18:22:49
|
Dear all, The newest version of nsstats in the repository can now report detailed memory statistics, when a) NaviServer and Tcl were compiled with SYSTEM_MALLOC, and b) tcmalloc (the memory allocator library from Google's perftools) was preloaded In this case, the memory statistics (from the "Memory" pull down menu) provides detailed statistics, which can answer some questions about memory growth, memory fragmentation, and the memory release policy of the memory allocator library. It answers, e.g., the question, whether the allocator library does not want to release memory, or if it can't release memory. Below is a screenshot from openacs.org. Note, that one needs both, the newest version of the nsstats module and a recent version of NaviServer (main branch), which implements the integration with tcmalloc. A detailed description of the output can be found here: https://github.com/google/tcmalloc/blob/master/docs/stats.md All the best -g LD_PRELOAD=/opt/local/lib/libtcmalloc.9.10.5.dylib /usr/local/ns/bin/nsd -f -t /usr/local/ns/openacs-5.10.tcl -u nsadmin -g nsadmin |