Memory Consumed by a Service

How do we find out the memory consumed by a service which is running in the IS?? Are there any buit in services or if somebody has programmed,please pass it on…

Thanks in Advance