Results 1 to 12 of 12
  1. #1

    Unhappy Apache Keeps Crashing

    Hi! I've been having problems for the past two weeks. Apache and MySQL kept crashing. I tweaked MySQL, and MySQL stopped crashing. But Apache still crashes, sometimes twice a day, sometimes once every few days. It's driving me crazy. It started around the same time I acquired a new customer, so it's possible the customer has some sort of script or something that is causing problems, but I'm not quite sure how to determine whether the problem is the server itself, or if it's the customer.

    So here am I, asking you experts for whatever assistance you feel willing to render. Even if you only merely read it, I thank you for at the very least taking the time to read it. Thanks in advance for any and all assistance given. That being said, here's the information the "How To: Request help from the experts" sticky recommended giving. I also took the liberty of including httpd.conf and my.cnf. I apologize if that resulted in being too much information, and humbly ask a moderator to "white out", or so to speak, (or at least point out) the information that shouldn't be shown.

    Linux OS: CentOS release 4.6 (Final)
    Kernel Version: 2.6.9-023stab044.4-enterprise
    Control Panel: Plesk 8.2.1
    Hardware information: 20 GB storage, 256MB RAM, 1 TB bandwidth

    Results of "php -v":
    Code:
    PHP 5.2.5 (cli) (built: Jan 19 2008 10:08:24)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
        with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd., and
        with Xdebug v2.0.2-dev, Copyright (c) 2002-2007, by Derick Rethans
    Results of "SELECT VERSION;" in MySQL:
    Code:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 1134
    Server version: 5.0.54 Source distribution
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> SELECT VERSION();
    +-----------+
    | VERSION() |
    +-----------+
    | 5.0.54    |
    +-----------+
    1 row in set (0.00 sec)
    Results of "ps auxf"
    Code:
    USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.0  1628  608 ?        Ss   12:41   0:00 init [3]
    root     27958  0.0  0.0  1532  524 ?        Ss   12:41   0:00 syslogd -m 0
    root     27973  0.0  0.1  4024 1032 ?        Ss   12:41   0:00 /usr/sbin/sshd
    root      9362  0.0  0.3  8544 2500 ?        Ss   13:45   0:00  \_ sshd: kyro [priv]
    kyro      9379  0.0  0.2  8544 1612 ?        S    13:45   0:00      \_ sshd: [email protected]/0
    kyro      9396  0.0  0.1  2160 1276 pts/0    Ss   13:45   0:00          \_ -bash
    kyro     16029  0.0  0.1  2308  780 pts/0    R+   13:48   0:00              \_ ps auxf
    root     27989  0.0  0.1  2084  800 ?        Ss   12:41   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
    root     28036  0.0  0.1  2152 1128 ?        S    12:41   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket
    mysql    28099  0.9  2.4 119308 16848 ?      Sl   12:41   0:39  \_ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysq
    root     28345  0.0  0.1  3496  804 ?        S    12:41   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/us
    root     28347  0.0  0.1  3264  784 ?        S    12:41   0:00 /usr/sbin/courierlogger imapd
    root     28358  0.0  0.1  3496  804 ?        S    12:41   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/us
    root     28360  0.0  0.1  3264  784 ?        S    12:41   0:00 /usr/sbin/courierlogger imapd-ssl
    root     28377  0.0  0.1  3496  804 ?        S    12:41   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/us
    root     28379  0.0  0.1  3264  784 ?        S    12:41   0:00 /usr/sbin/courierlogger pop3d
    root     28400  0.0  0.1  3496  804 ?        S    12:41   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/us
    root     28402  0.0  0.1  3264  784 ?        S    12:41   0:00 /usr/sbin/courierlogger pop3d-ssl
    qmails   28413  0.0  0.0  1508  460 ?        S    12:41   0:00 qmail-send
    qmaill   28418  0.0  0.0  1464  432 ?        S    12:41   0:00  \_ splogger qmail
    root     28419  0.0  0.0  1492  352 ?        S    12:41   0:00  \_ qmail-lspawn ./Maildir/
    qmailr   28420  0.0  0.0  1488  352 ?        S    12:41   0:00  \_ qmail-rspawn
    qmailq   28421  0.0  0.0  1456  324 ?        S    12:41   0:00  \_ qmail-clean
    root     28502  0.0  2.4 34228 16776 ?       Ss   12:42   0:00 /usr/sbin/httpd
    apache   28528  0.0  0.8 21496 5708 ?        S    12:42   0:00  \_ /usr/sbin/httpd
    apache   15660  0.8  2.1 34840 14628 ?       S    13:35   0:06  \_ /usr/sbin/httpd
    apache   26283  0.7  1.9 34832 13480 ?       S    13:39   0:03  \_ /usr/sbin/httpd
    apache    5307  0.6  1.8 34560 13012 ?       S    13:43   0:01  \_ /usr/sbin/httpd
    named    28534  0.0  0.4 67152 2900 ?        Ssl  12:42   0:00 /usr/sbin/named -u named -c /etc/named.conf -u named -t /var/n
    postgres 28601  0.0  0.3 16756 2116 ?        S    12:42   0:00 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
    postgres 28618  0.0  0.1  7556  832 ?        S    12:42   0:00  \_ postgres: stats buffer process
    postgres 28619  0.0  0.1  6564  980 ?        S    12:42   0:00      \_ postgres: stats collector process
    root     29790  0.0  4.0 30256 28008 ?       Ss   12:42   0:01 /usr/bin/spamd --username=popuser --daemonize --nouser-config
    popuser  29805  0.0  3.8 30256 26760 ?       S    12:42   0:00  \_ spamd child
    root     29907  0.0  0.7 35760 4956 ?        Ss   12:42   0:00 /usr/local/psa/admin/bin/httpsd
    psaadm   29911  0.0  1.6 39704 11504 ?       S    12:42   0:00  \_ /usr/local/psa/admin/bin/httpsd
    psaadm   30096  0.0  2.3 41480 16320 ?       S    12:42   0:00  \_ /usr/local/psa/admin/bin/httpsd
    drweb    30140  0.0  2.5 20972 17736 ?       Ss   12:42   0:03 /opt/drweb/drwebd
    root     30149  0.0  0.1  2484  916 ?        Ss   12:42   0:00 crond
    root     30159  0.0  0.1  4060  796 ?        Ss   12:42   0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a shadow -n 2
    root     30160  0.0  0.0  4060  468 ?        S    12:42   0:00  \_ /usr/sbin/saslauthd -m /var/run/saslauthd -a shadow -n 2
    root     30168  0.0  0.2 14640 1920 ?        Ssl  12:42   0:00 /usr/local/bin/monit -Ic /etc/monitrc
    Results of "top" sorted by memory usage (highest to lowest):

    Code:
    top - 13:48:57 up  1:07,  1 user,  load average: 0.03, 0.08, 0.02
    Tasks:  42 total,   1 running,  41 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.2% us,  0.2% sy,  0.0% ni, 99.7% id,  0.0% wa,  0.0% hi,  0.0% si
    Mem:    689496k total,   339088k used,   350408k free,        0k buffers
    Swap:        0k total,        0k used,        0k free,        0k cached
    
      PID USER      PR  NI %CPU    TIME+  %MEM  VIRT  RES  SHR S COMMAND
    29790 root      16   0    0   0:01.12  4.1 30256  27m 2320 S spamd
    29805 popuser   16   0    0   0:00.00  3.9 30256  26m 1072 S spamd
    30140 drweb     15   0    0   0:03.86  2.6 20972  17m 1408 S drwebd
    28099 mysql     16   0    0   0:40.52  2.4  116m  16m 5368 S mysqld
    28502 root      16   0    0   0:00.43  2.4 34228  16m 8396 S httpd
    30096 psaadm    15   0    0   0:00.32  2.4 41480  15m 8812 S httpsd
    15660 apache    15   0    0   0:06.75  2.1 34840  14m 5604 S httpd
    26283 apache    16   0    1   0:03.99  2.0 34832  13m 4440 S httpd
    17433 apache    16   0    0   0:00.04  1.8 34496  11m 3548 S httpd
    29911 psaadm    15   0    0   0:00.41  1.7 39704  11m 5776 S httpsd
    28528 apache    15   0    0   0:00.02  0.8 21496 5708  636 S httpd
    29907 root      16   0    0   0:00.02  0.7 35760 4956 3032 S httpsd
    28534 named     20   0    0   0:00.03  0.4 67152 2900 1824 S named
     9362 root      16   0    0   0:00.01  0.4  8544 2500 1948 S sshd
    28601 postgres  16   0    0   0:00.00  0.3 16756 2116 1756 S postmaster
    30168 root      16   0    0   0:00.08  0.3 14640 1920 1348 S monit
     9379 kyro      16   0    0   0:00.00  0.2  8692 1632 1064 S sshd
     9396 kyro      16   0    0   0:00.00  0.2  2160 1276 1044 S bash
    28036 root      17   0    0   0:00.01  0.2  2152 1128  956 S mysqld_safe
    27973 root      15   0    0   0:00.00  0.1  4024 1032  744 S sshd
    28619 postgres  18   0    0   0:00.00  0.1  6564  980  580 S postmaster
    17848 kyro      16   0    0   0:00.01  0.1  1896  980  788 R top
    30149 root      16   0    0   0:00.00  0.1  2484  916  528 S crond
    28618 postgres  18   0    0   0:00.00  0.1  7556  832  468 S postmaster
    28345 root      18   0    0   0:00.00  0.1  3496  804  600 S couriertcpd
    28358 root      18   0    0   0:00.00  0.1  3496  804  600 S couriertcpd
    28377 root      20   0    0   0:00.00  0.1  3496  804  600 S couriertcpd
    28400 root      22   0    0   0:00.00  0.1  3496  804  600 S couriertcpd
    27989 root      16   0    0   0:00.00  0.1  2084  800  672 S xinetd
    30159 root      18   0    0   0:00.00  0.1  4060  796  568 S saslauthd
    28347 root      19   0    0   0:00.00  0.1  3264  784  604 S courierlogger
    28360 root      19   0    0   0:00.00  0.1  3264  784  604 S courierlogger
    28379 root      18   0    0   0:00.00  0.1  3264  784  604 S courierlogger
    28402 root      19   0    0   0:00.00  0.1  3264  784  604 S courierlogger
        1 root      16   0    0   0:00.03  0.1  1628  608  524 S init
    27958 root      15   0    0   0:00.08  0.1  1532  524  440 S syslogd
    30160 root      18   0    0   0:00.00  0.1  4060  468  240 S saslauthd
    Results of "vmstat 5 5":

    Code:
    procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
     1  0      0 350340      0      0    0    0     0     0    0  1641  1  0 98  1
     0  1      0 351992      0      0    0    0     0     0    0  2405  1  1 97  2
     0  0      0 351992      0      0    0    0     0     0    0  4299  0  0 99  1
     0  0      0 350648      0      0    0    0     0     0    0  4100  1  0 99  0
     0  0      0 350648      0      0    0    0     0     0    0  3042  0  0 100  0
    error_log:
    Code:
    [Sun Feb 24 03:27:55 2008] [notice] Digest: generating secret for digest authentication ...
    [Sun Feb 24 03:27:55 2008] [notice] Digest: done
    [Sun Feb 24 03:27:55 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
    [Sun Feb 24 03:27:55 2008] [notice] LDAP: SSL support unavailable
    [Sun Feb 24 03:27:56 2008] [notice] mod_python: Creating 4 session mutexes based on 50 max processes and 0 max threads.
    [Sun Feb 24 03:27:56 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
    [Sun Feb 24 03:27:56 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
    [Sun Feb 24 03:27:56 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
    [Sun Feb 24 03:27:56 2008] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations
    [Sun Feb 24 13:05:32 2008] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Sun Feb 24 13:05:42 2008] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Sun Feb 24 13:05:52 2008] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Sun Feb 24 13:06:02 2008] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Sun Feb 24 13:06:12 2008] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Sun Feb 24 13:06:22 2008] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Sun Feb 24 13:06:32 2008] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    'import site' failed; use -v for traceback
    [Mon Feb 25 02:08:52 2008] [error] make_obcallback: could not import mod_python.apache.\n
    ImportError: No module named mod_python.apache
    [Mon Feb 25 02:09:07 2008] [error] make_obcallback: could not import mod_python.apache.\n
    Traceback (most recent call last):
      File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 22, in ?
        import time
    ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: failed to map segment from shared object: Cannot allocate memory
    [Mon Feb 25 02:16:21 2008] [error] make_obcallback: could not import mod_python.apache.\n
    Traceback (most recent call last):
      File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 22, in ?
        import time
    ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: failed to map segment from shared object: Cannot allocate memory
    [Mon Feb 25 02:17:32 2008] [error] make_obcallback: could not import mod_python.apache.\n
    Traceback (most recent call last):
      File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 22, in ?
        import time
    ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: failed to map segment from shared object: Cannot allocate memory
    [Mon Feb 25 02:28:28 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:29 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:30 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:31 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:32 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:33 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:34 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:35 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:36 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:37 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:38 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:39 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:40 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:41 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:42 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:43 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:44 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:45 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:46 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:47 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:48 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:49 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:50 2008] [error] make_obcallback: could not import mod_python.apache.\n
    Traceback (most recent call last):
      File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 21, in ?
        import traceback
      File "/usr/lib/python2.3/traceback.py", line 3, in ?
        import linecache
    ImportError: No module named linecache
    [Mon Feb 25 02:28:50 2008] [error] make_obcallback: could not import mod_python.apache.\n
    Traceback (most recent call last):
      File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 22, in ?
        import time
    ImportError: /usr/lib/python2.3/lib-dynload/timemodule.so: failed to map segment from shared object: Cannot allocate memory
    zend_mm_heap corrupted
    [Mon Feb 25 02:38:28 2008] [emerg] (12)Cannot allocate memory: couldn't grab the accept mutex
    [Mon Feb 25 02:38:28 2008] [alert] Child 22062 returned a Fatal error...\nApache is exiting!
    [Mon Feb 25 02:38:28 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 02:38:29 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 02:39:44 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 02:39:54 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 02:40:03 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:09:14 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:14:43 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:21:32 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:22:01 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:24:21 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:29:54 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:30:07 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:30:27 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:30:35 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:32:03 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:32:57 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:44:03 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:45:10 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:55:54 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:57:40 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 03:58:51 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 04:09:39 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 04:17:17 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    [Mon Feb 25 04:26:27 2008] [emerg] (22)Invalid argument: couldn't grab the accept mutex
    access_log file was empty when I looked inside it.

    In interests of avoiding information overload, if you need to see the contents of my httpd.conf or my.cnf, feel free to view them at:

    httpd.conf: doncullen.net/httpd.conf.txt
    my.cnf: doncullen.net/my.cnf.txt

    Any ideas?

  2. #2
    look like out of memory problem. Not Seg Fault. I notice you do not have SWAP on. Are you on VPS? If yes, then you probably using VZ hosting. What is your guarantee RAM and burstable RAM? If you overuse your guarantee RAM, the host machine will random kill your process that are using the burstable RAM when the host machine need it. It is better to host on XEN platform. It offer both Real Physcial RAM + SWAP. Which mean much more stable, and ISP can not oversell RAM.

  3. #3
    Join Date
    Nov 2001
    Location
    Ann Arbor, MI
    Posts
    2,978
    Can you define "crash"?
    -Mark Adams
    www.bitserve.com - Secure Michigan web hosting for your business.
    Only host still offering a full money back uptime guarantee and prorated refunds.
    Offering advanced server management and security incident response!

  4. #4
    Quote Originally Posted by jamesmoey View Post
    look like out of memory problem. Not Seg Fault. I notice you do not have SWAP on. Are you on VPS? If yes, then you probably using VZ hosting. What is your guarantee RAM and burstable RAM? If you overuse your guarantee RAM, the host machine will random kill your process that are using the burstable RAM when the host machine need it. It is better to host on XEN platform. It offer both Real Physcial RAM + SWAP. Which mean much more stable, and ISP can not oversell RAM.
    I'm using MediaTemple's Virtual Dedicated Server.

    I have no idea what my guaranteed RAM and burstable RAM is. I don't even know if I have SWAP ability, how do I find out, and how do I turn it on?

    @bitserve: crash as in Apache emits a fatal error in the log and terminates, resulting in my having to log in and restart apache. The errors preceding the termination are in my first post in the error_log paste.

  5. #5
    Join Date
    Nov 2001
    Location
    Ann Arbor, MI
    Posts
    2,978
    Sorry, you did include all the information needed for a diagnosis. Sorry, I stopped before I got that far. The error message does seem pretty plain English to me, and I think James' interpretation of it is spot on. As he said, your platform many not support swap, but your host should know.

    Good luck.
    -Mark Adams
    www.bitserve.com - Secure Michigan web hosting for your business.
    Only host still offering a full money back uptime guarantee and prorated refunds.
    Offering advanced server management and security incident response!

  6. #6
    But I'm the host. While I don't have physical access to it, I do have access via ssh, complete with root, I have total control over the server. And I have no idea how to determine whether it supports swap. How can I determine that?

  7. #7
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    Seems like you are out of memory in your server. Time to think about an upgrade


    ----
    [Mon Feb 25 02:28:40 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:41 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:42 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:43 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:44 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:45 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:46 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    [Mon Feb 25 02:28:47 2008] [warn] (12)Cannot allocate memory: get socket to connect to listener
    -------
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

  8. #8
    You have virtual server there, not a dedicated server. In short, you have 2 option,
    1 - Upgrade your hosting package. Staying with VZ, but the same thing will happen again if you overuse your guarantee RAM.
    2 - Switch to a ISP that use XEN technology, which will give you more stability.

    Other than that, you can try to optimize packages on your host to use less RAM. But that won't be an easy task, specially you got ton of stuff running DNS, 2 type of HTTP, SMTP, Spam assassin, mySQL, IMAP..... Too much on 256 plan. You need at least 512RAM + 1GBSWAP minimum for XEN. Don't know about VZ though.

  9. #9
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    Quote Originally Posted by jamesmoey View Post
    Too much on 256 plan. You need at least 512RAM + 1GBSWAP minimum for XEN. Don't know about VZ though.

    Same goes for that too
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

  10. #10
    Honestly, I had tons of problems trying to get to work PHP, apache, mysql together, and finally I decided to use xampp. Google it, I can't post links yet :-(, too few posts.

  11. #11
    Is there any way to determine what exactly is consuming all of the RAM?

  12. #12
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    Since you are on a VPS

    check out /proc/user_beancounters and verify your failcount. If you have too many, best option is to upgrade.

    to find out what is causing the memory usage, you must monitor your VPS over a period of 24 hours and see whats taking up the cpu/ram. Top command should be good enough.
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •