Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Apache2 disk writes |
|
Author |
|
rossoreed
Joined: 29 Nov 2015 Posts: 3 Location: UK
|
Posted: Sun 29 Nov '15 19:51 Post subject: Apache2 disk writes |
|
|
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
|
Posted: Tue 01 Dec '15 15:10 Post subject: |
|
|
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
|
Posted: Tue 01 Dec '15 16:06 Post subject: |
|
|
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
|
Posted: Fri 04 Dec '15 16:25 Post subject: |
|
|
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
|
Posted: Fri 04 Dec '15 16:31 Post subject: |
|
|
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 |
|
|
|
|
|
|