I am writing a daemon in PHP. In college, I did not take the OS class. Thus, I am wondering what server / other statistics I need to look for to make sure that my Daemon does not consume too many system resources and can scale when there are more mysql records. Basically, my daemon processes many rows of the mysql table.
For example, I understand that I need to see how long the daemon runs a certain number of lines and the amount of memory used. But how to determine if a memory leak is occurring? Also, what other system parameters should I judge the daemon?
But how to determine if a memory leak is occurring?
, , . , . , , , , , PHP. , , mysql PHP PHP - , , , mysql_query : LIMIT ( PK), . , .
, PHP , , .
!
, Daemon linux, (100k + -, 30 ) , . , : , .
, ($ objectOrString), , : .
, , , cron, , PHP .