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, -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/b50d0cb3-fe3f-4a36-ac75-6d9dab7d6f64%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
