Author |
|
phil7269
Joined: 18 Jul 2015 Posts: 7 Location: USA
|
Posted: Tue 05 Jan '16 20:44 Post subject: Apache needs restart |
|
|
First off I'm new to apache so thank you for your assistance.
Were running a web app that is only used internally on Apache 2.2.22 / Ubuntu 12.04. Upgrading is not an option.
On occasion, the web app will not respond/freeze. When this is reported the home page for the site does not load and users that are logged into the app are frozen. To resolve we restart the Apache2 service.
I suspect that Apache is either running out of connections or processes. How do I go about determining what is causing this? how can I tell how many connections are allowed and how many connections are currently in use? I am providing a snippet from the httpd.conf file that may be useful. If any other information is needed please let me know. thank you.
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule> |
|
Back to top |
|
phil7269
Joined: 18 Jul 2015 Posts: 7 Location: USA
|
Posted: Wed 06 Jan '16 1:51 Post subject: update |
|
|
Issue happened again. This time I was logged in to the server and found that no apache processes were running. These are the process IDs running as user "www-data". Restarting apache service brought the processes back online. There are 45 processes running as user "www-data". |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 11 Jan '16 10:57 Post subject: |
|
|
Is there anyhting in the error log about that?
the number of processes is ok. |
|
Back to top |
|
phil7269
Joined: 18 Jul 2015 Posts: 7 Location: USA
|
Posted: Tue 12 Jan '16 1:57 Post subject: reply |
|
|
No entries in any of the logs pretaining to why the apaches processes stopped. |
|
Back to top |
|
maba
Joined: 05 Feb 2012 Posts: 64 Location: Germany, Heilbronn
|
Posted: Wed 13 Jan '16 15:29 Post subject: |
|
|
Nothing in any log sounds extremly unlikely.
dmesg ?
/var/log/Messages ?
ls -lrt /var/log/httpd
ls -lrt /var/log
There must be something that happened last. |
|
Back to top |
|
phil7269
Joined: 18 Jul 2015 Posts: 7 Location: USA
|
Posted: Wed 13 Jan '16 18:39 Post subject: update |
|
|
dmesg has not been updated since 10/23/15. This crash happened on 01/05/16.
There is no /var/log/httpd file or directory.
There is no /var/log/messages
Below is the output from ls -lrt /var/log:
total 343736
drwxr-xr-x 2 root root 4096 Dec 16 2011 sysstat
drwxr-xr-x 2 root root 4096 Apr 20 2012 dist-upgrade
-rw-r----- 1 root adm 31 Jan 15 2014 boot
drwxr-xr-x 2 root root 4096 Jan 15 2014 fsck
-rw-r----- 1 mysql adm 0 Jan 15 2014 mysql.err
-rw-r--r-- 1 root root 32032 Jan 15 2014 faillog
drwxr-xr-x 3 root root 4096 Jan 15 2014 installer
-rw-r----- 1 syslog adm 0 Jan 15 2014 ufw.log
-rw-r----- 1 syslog adm 0 Jan 15 2014 mail.log
-rw-r----- 1 syslog adm 0 Jan 15 2014 mail.err
drwxr-xr-x 2 root root 4096 Jan 15 2014 news
drwxr-xr-x 2 landscape root 4096 Jan 15 2014 landscape
drwxr-s--- 2 mysql adm 4096 Jan 20 2014 mysql
-rw-r--r-- 1 root root 3350 Jan 20 2014 alternatives.log.4.gz
-rw-r--r-- 1 root root 46746 Jan 23 2014 dpkg.log.7.gz
-rw-r--r-- 1 root root 1758 Feb 14 2014 fontconfig.log
-rw-r--r-- 1 root root 1329 Feb 24 2014 dpkg.log.6.gz
-rwxrwxrwx 1 root root 0 Mar 25 2014 jaxl.log
-rw-r--r-- 1 root root 226 Apr 24 2014 dpkg.log.5.gz
-rw-r--r-- 1 root root 240 Oct 10 2014 dpkg.log.4.gz
-rw-r--r-- 1 root root 173 Oct 10 2014 alternatives.log.3.gz
-rw-r--r-- 1 root root 0 Feb 23 2015 xmppgearman.log.2
-rw-r--r-- 1 root root 5544 Feb 23 2015 xmppgearman.log.3
-rw-r--r-- 1 root root 2772 Feb 23 2015 xmppgearman.log.1
-rw-r----- 1 root adm 13257 Feb 23 2015 dmesg.4.gz
-rw-r--r-- 1 root root 129 Feb 23 2015 alternatives.log.2.gz
-rw-r--r-- 1 root root 720 Feb 23 2015 dpkg.log.3.gz
-rw-r--r-- 1 root root 343 Apr 9 2015 dpkg.log.2.gz
-rw-r--r-- 1 root root 280 Apr 9 2015 alternatives.log.1
-rw-r--r-- 1 root root 0 Apr 10 2015 alternatives.log
-rw-r--r-- 1 root root 52428870 Apr 27 2015 checkxmpp.log.3
-rw-r----- 1 root adm 260 Jun 1 2015 apport.log.7.gz
-rw-r--r-- 1 root root 52428870 Jun 4 2015 checkxmpp.log.2
-rw-r----- 1 root adm 259 Aug 6 09:44 apport.log.6.gz
-rw-r----- 1 root adm 262 Aug 28 14:51 apport.log.5.gz
-rw-r----- 1 root adm 381 Sep 15 18:01 apport.log.4.gz
-rw-r----- 1 root adm 259 Oct 8 08:34 apport.log.3.gz
-rw-r--r-- 1 root root 9276141 Oct 16 15:16 accurint.log
-rw-r----- 1 root adm 13544 Oct 22 16:28 dmesg.3.gz
-rw-r----- 1 root adm 13475 Oct 22 16:34 dmesg.2.gz
-rw-r----- 1 root adm 13372 Oct 22 16:51 dmesg.1.gz
-rw-r----- 1 root adm 50771 Oct 22 17:01 dmesg.0
-rw-r--r-- 1 root root 236554 Oct 23 12:51 udev
-rw-r----- 1 root adm 49881 Oct 23 12:51 dmesg
drwxr-xr-x 2 root root 12288 Oct 23 12:51 supervisor
-rw-r--r-- 1 root root 2173 Oct 23 12:51 boot.log
-rw-r--r-- 1 root root 50409649 Oct 23 12:51 xmppgearman.log
-rw-r--r-- 1 root root 5572433 Oct 23 12:51 xmppcontrol.log
drwxr-xr-x 2 root root 4096 Oct 24 06:51 upstart
-rw-r--r-- 1 root root 52428888 Nov 13 11:04 checkxmpp.log.1
-rw-r----- 1 syslog adm 141 Nov 15 10:54 kern.log.4.gz
-rw-r----- 1 syslog adm 196 Nov 28 12:22 kern.log.3.gz
-rw-rw---- 1 root utmp 0 Dec 1 06:34 btmp.1
-rw-r--r-- 1 root root 39578146 Dec 14 16:11 chk_status.log
-rw-r--r-- 1 root root 43862454 Dec 14 16:11 checkxmpp.log
-rw-r----- 1 syslog adm 206339 Dec 20 06:31 auth.log.4.gz
-rw-r----- 1 syslog adm 141 Dec 20 14:23 kern.log.2.gz
-rw-r--r-- 1 root root 808 Dec 21 09:06 dpkg.log.1
drwxr-xr-x 2 root root 4096 Dec 22 06:29 apt
-rw-r--r-- 1 root root 0 Dec 22 06:29 dpkg.log
-rw-r----- 1 syslog adm 97 Dec 22 14:00 kern.log.1
-rw-r----- 1 syslog adm 206359 Dec 27 06:55 auth.log.3.gz
-rw-r----- 1 syslog adm 0 Dec 27 06:55 kern.log
-rw-r----- 1 root adm 262 Dec 31 16:10 apport.log.2.gz
-rw-rw-r-- 1 root utmp 6583296 Jan 1 06:46 wtmp.1
-rw-rw---- 1 root utmp 0 Jan 1 06:50 btmp
-rw-r----- 1 syslog adm 207770 Jan 3 06:42 auth.log.2.gz
-rw-r----- 1 mysql adm 20 Jan 6 06:35 mysql.log.7.gz
-rw-r----- 1 syslog adm 12115 Jan 7 06:43 syslog.7.gz
-rw-r----- 1 mysql adm 20 Jan 7 06:43 mysql.log.6.gz
-rw-r----- 1 syslog adm 12010 Jan 8 06:30 syslog.6.gz
-rw-r----- 1 mysql adm 20 Jan 8 06:31 mysql.log.5.gz
-rw-r----- 1 root adm 534 Jan 8 11:09 apport.log.1
-rw-r----- 1 syslog adm 12216 Jan 9 06:54 syslog.5.gz
-rw-r----- 1 mysql adm 20 Jan 9 06:54 mysql.log.4.gz
-rw-r----- 1 root adm 0 Jan 9 06:54 apport.log
-rw-r----- 1 syslog adm 11868 Jan 10 06:43 syslog.4.gz
-rw-r----- 1 syslog adm 4345850 Jan 10 06:43 auth.log.1
-rw-r----- 1 mysql adm 20 Jan 10 06:43 mysql.log.3.gz
drwxr-x--- 2 root adm 12288 Jan 10 06:43 apache2
drwxr-x--- 3 root adm 4096 Jan 10 06:43 samba
-rw-r----- 1 syslog adm 12074 Jan 11 06:45 syslog.3.gz
-rw-r----- 1 mysql adm 20 Jan 11 06:45 mysql.log.2.gz
-rw-r----- 1 syslog adm 11948 Jan 12 06:46 syslog.2.gz
-rw-r----- 1 mysql adm 20 Jan 12 06:46 mysql.log.1.gz
-rwxrwxrwx 1 www-data www-data 1093 Jan 12 17:08 wkhtmltopdf.err
-rw-r--r-- 1 root root 27306058 Jan 12 19:49 gearmanutils.log
-rw-r----- 1 syslog adm 222411 Jan 13 06:41 syslog.1
-rw-r----- 1 mysql adm 0 Jan 13 06:41 mysql.log
-rw-r----- 1 syslog adm 16299 Jan 13 08:26 syslog
-rw-r----- 1 syslog adm 1390088 Jan 13 08:26 auth.log
-rw-rw-r-- 1 root utmp 4624896 Jan 13 08:26 wtmp
-rw-rw-r-- 1 root utmp 292292 Jan 13 08:26 lastlog |
|
Back to top |
|