in reply to memory profiling

man ps and man top can probably help you with that :-)

Arjen