When you write codes which are to be performance enhanced, taxing only a few on the the host machines physical memory, you need to think a lot and come up with a smart design. I am not an expert in software design. If at all I know something about this field its all through the book which Sebastian gave me[Don't remember the name of the book ].
Alright... Today I found out how to log the memory usage of a particular process on Linux. Here is how it works
The linux command pidof aprocess will return the process id or job id of the process.
Then all you have to do is to check the status of this process in /proc/jobid/status.
cat /proc/`pidof aprocess`/status.
Just try it out. Will explain later what are the parameters listed in this file..
No comments:
Post a Comment