View previous topic :: View next topic |
Author |
Message |
Calandra n00b
Joined: 05 Sep 2006 Posts: 38 Location: Gubbio (PG)
|
Posted: Wed Sep 19, 2007 9:56 am Post subject: Apache need restart after 5 min |
|
|
Hi to all!
I have installed latest apache and latest php in my server (all stable package);
after about 5 minutes that i use a web application that always worked with no troubles, apache stops
working and i need to restart it.
The strange things is that, also if the server doesn't work, i can still get a lot of apache2 process from:
Code: | ps -A | grep apache2 |
Also during the restarting, the server get stopped as usual.
No info in the log.
Any idea?
Update
The matter is not that apache stops working..it skips the folder contains the application.
For example firefox ask me to save if i open a file.php inside the application folder, but all works fine
with info.php on server root.
Thanks _________________ [img]http://imagegen.last.fm/basicrt10/recenttracks/2/Doktoreas.gif[/img]
Last edited by Calandra on Wed Sep 19, 2007 2:56 pm; edited 1 time in total |
|
Back to top |
|
|
goma n00b
Joined: 04 Feb 2006 Posts: 56
|
Posted: Wed Sep 19, 2007 10:25 am Post subject: Re: Apache need restart after 5 min |
|
|
Is this a web application you've written, or a package you've installed? |
|
Back to top |
|
|
baeksu l33t
Joined: 26 Sep 2004 Posts: 609 Location: Seoul, Korea
|
Posted: Wed Sep 19, 2007 10:26 am Post subject: |
|
|
Apache is running out of entropy.
Emerge sys-apps/rng-tools, start it (/etc/init.d/rngd start), and put it in your default runlevel (rc-update add rngd default), and bob's your uncle. _________________ Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do. |
|
Back to top |
|
|
Calandra n00b
Joined: 05 Sep 2006 Posts: 38 Location: Gubbio (PG)
|
Posted: Wed Sep 19, 2007 1:50 pm Post subject: |
|
|
baeksu wrote: | Apache is running out of entropy.
Emerge sys-apps/rng-tools, start it (/etc/init.d/rngd start), and put it in your default runlevel (rc-update add rngd default), and bob's your uncle. |
Same things..
The only change that i see, was after adding those line to httpd.conf:
Code: |
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 15
MaxSpareServers 30
StartServers 15
MaxClients 150
MaxRequestsPerChild 0
|
After this, the time to the apache crash has increased...
Don't know anything else.
Bye
Luca _________________ [img]http://imagegen.last.fm/basicrt10/recenttracks/2/Doktoreas.gif[/img] |
|
Back to top |
|
|
|