Hello All Again,
I know this issue been discussed multiple times in multiple places by many people. But quite not able to follow all responses. I am posting the question here ho[ing to get same positive help i got from Aria and others last time here.
What I am planing to do is a logWatcher which will keep displaying http error log file of apache on a page , I used
socket.io though for sending the updated file content whenever there is a change in file.
The problem is whenver i am doing fs.readFile of the log file (which is realy big) I am getting out of memory error. I know its the buffer which is blown up.
What is the best way of doing this? Atleast is there a way to get the last 100 lines each time?
Thanks,