logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache2 disk writes
Author
rossoreed



Joined: 29 Nov 2015
Posts: 3
Location: UK

PostPosted: Sun 29 Nov '15 19:51    Post subject: Apache2 disk writes Reply with quote

Hi, I have apache 2.2.22 installed in a Raspberry Pi, running Wheezy from a SD card, and am trying to reduce 'disk writes' to an absolute minimum, without resorting to mounting the root partition as read only.
I'm monitoring disk activity with iostat, and notice that every few seconds I'm getting disk writes from a command called 'Apache2 -k start' of about 4kB, but can't establish what it is for.
By working backwards from the PID id number, it leads to /usr/lib/apache2/mpm-prefork/apache2
If I stop Apache, the disk writes stop. The log files are currently being written to tmpfs.

Does anyone know please what process is writing this data and why?

Link to screenshot

Paul
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 01 Dec '15 15:10    Post subject: Reply with quote

Disable the access log and you can configure /dev/null so there is no writing on the SD card. Disable any caching like for SSL.
Back to top
rossoreed



Joined: 29 Nov 2015
Posts: 3
Location: UK

PostPosted: Tue 01 Dec '15 16:06    Post subject: Reply with quote

Thanks. But where do I disable the caching please.

Paul
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 04 Dec '15 16:25    Post subject: Reply with quote

Only if you enabled SSL. Else there is no default caching to the disc.

Did you?
Back to top
rossoreed



Joined: 29 Nov 2015
Posts: 3
Location: UK

PostPosted: Fri 04 Dec '15 16:31    Post subject: Reply with quote

No, I haven't enabled SSL. I still think that the disk writes are related to the mpm pre-fork, do you know how to disable it.
Back to top


Reply to topic   Topic: Apache2 disk writes View previous topic :: View next topic
Post new topic   Forum Index -> Apache