Forum Moderators: phranque

Message Too Old, No Replies

Can a large 'error_log' file damage server's memory?

I suffer a lot of Out Of Memory problems

         

guarriman

4:02 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



Hi.

Using Apache/2.0.52 on Linux, I suffer a lot of
OOM (Out Of Memory) problems.

There are 11 websites hosted on my server (virtual
domains) and some of them handle 'error_log' and 'access_log' files of 30-40 Mb.

Can it damage server's memory?

Thank you very much.

PS: I may post 'free -m' or 'ps -aux' outputs.

jdMorgan

6:14 pm on Oct 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure if you're using the word "damage" literally or not. There's almost nothing software can to to permanently damage the memory devices in a computer. It is possible to damage them if the memory controller device is misprogrammed and multiple memoery devices are selected and output-enabled simultaneously onto the same data bus. But I suspect that this has little to do with your problem.

I'd suggest one or all of the following:

  • Make corrections to the site to reduce errors, and thus the size of the error log.
  • Compress (gzip or deflate) access logs daily, and purge the plain-text version.
  • Add more memory to the server.
  • Reduce the number of virtual hosts by moving some of them to another server.
  • Investigate what scripting languages and scripts are used on the hosted sites, and see if there may be known memory leaks in any of them, or if patches are available related to your problem.

    Just a few ideas...

    Jim

  •