It would be most helpful if either (or both) were compiled with PERL_DEBUG_MSTATS or DEBUGGING. The former gives access to Devel::Peek's mstat(); while the latter enables -DL and the warn("!") stuff. Both allow in-program examination of memory usage. If you can rebuild, that might help.