LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-17-2005, 04:32 PM   #1
I_AM
Member
 
Registered: Mar 2005
Posts: 103

Rep: Reputation: 15
Server lockup every minute or two..URGENT


I have this server:

Dual Xeon 3.4GHz HT
4GB Memory
100MBit Uplink
2x300GB SCSI 10k Disks

Software
Apache 1.33
PHP 4.4.0
MySQL 4.1.13
cpanel 10.8x Current

APF
BFD
LSM
SIM
LES
mod dosevasive
mod throttle
zend optimizer
eaccelerator
nessus

Server Load:
CPU: always less than 0.25
Memory: always less than 20%
Disk: 10% usage
tmp: 2% usage

Problem: server is loading sites on/off. Half the time the pages lock u and give "page not found". This appies to all sites on the server (just a few as well).
1. Vbulletin forum (no more than 10-15 concurrent users max) about 300 unique hits per day
2. Business site (simple flash / php) about 300 unique hits per day

I do not know why it is happening but I am asking if maybe anything I installed above may cause this? Nothing was customized after the default installation (other than php/my.cnf mentioned)

Please let me know what could use the sites to act abnormally like the following

1. no page found
2. slow page load
3. normal page load (becomming almost rare).

I tried: Avant browser, IE 6.x (completely cleared cache/cookies and all). I'm on a cable LAN modem (extremely fast).

/etc/my.cnf

[mysqld]
datadir=/var/lib/mysql
skip-locking
skip-innodb
max_connections = 500
key_buffer = 128M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 384
wait_timeout = 900
connect_timeout = 10
tmp_table_size = 256M
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 8M
max_allowed_packet = 64M
max_connect_errors = 10
query_cache_limit = 3M
query_cache_size = 256M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384
old-passwords

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192

[mysqldump]
quick
max_allowed_packet=32M

[mysql]
no-auto-rehash
#safe-updates

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=256M
sort_buffer=256M
read_buffer=128M
write_buffer=128M

[mysqlhotcopy]
interactive-timeout

php.ini (Zend / eaccelerator)

zend_extension="/ea/eaccelerator-0.9.3/modules/eaccelerator.so"
eaccelerator.shm_size="1024"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="5"

[Zend]
zend_optimizer.optimization_level=5
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.10
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.10
zend_optimizer.version=2.5.10a
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

max_execution_time = 30 ; Maximum execution time of each script, in seconds
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

httpd.conf

Timeout 300
KeepAlive On
MaxKeepAliveRequests 120
KeepAliveTimeout 15
MinSpareServers 15
MaxSpareServers 20
StartServers 10
MaxClients 150
MaxRequestsPerChild 1000
#Listen 3000
#Listen 12.34.56.78:80

/etc/resolv.conf
confirmed with data center correct

TOP

Code:
17647 root      17   0  5780 1348   908 R     0.9  0.0   0:00   3 top
    1 root      16   0  2100  572   488 S     0.0  0.0   0:10   0 init
    2 root      RT   0     0    0     0 SW    0.0  0.0   0:07   0 migration/0
    3 root      34  19     0    0     0 SWN   0.0  0.0   0:02   0 ksoftirqd/0
    4 root      RT   0     0    0     0 SW    0.0  0.0   0:05   1 migration/1
    5 root      34  19     0    0     0 SWN   0.0  0.0   0:02   1 ksoftirqd/1
    6 root      RT   0     0    0     0 SW    0.0  0.0   0:09   2 migration/2
    7 root      34  19     0    0     0 SWN   0.0  0.0   0:09   2 ksoftirqd/2
    8 root      RT   0     0    0     0 SW    0.0  0.0   0:09   3 migration/3
    9 root      34  19     0    0     0 SWN   0.0  0.0   0:03   3 ksoftirqd/3
   10 root       5 -10     0    0     0 SW<   0.0  0.0   0:00   0 events/0
   11 root       5 -10     0    0     0 SW<   0.0  0.0   0:00   1 events/1
   12 root       5 -10     0    0     0 SW<   0.0  0.0   0:00   2 events/2
   13 root       5 -10     0    0     0 SW<   0.0  0.0   0:00   3 events/3
   14 root      12 -10     0    0     0 SW<   0.0  0.0   0:00   3 khelper
   15 root      15 -10     0    0     0 SW<   0.0  0.0   0:00   0 kacpid
   38 root       5 -10     0    0     0 SW<   0.0  0.0   0:00   0 kblockd/0
   39 root       5 -10     0    0     0 SW<   0.0  0.0   0:00   1 kblockd/1
   40 root       5 -10     0    0     0 SW<   0.0  0.0   0:00   2 kblockd/2
   41 root       5 -10     0    0     0 SW<   0.0  0.0   0:00   3 kblockd/3
   42 root      15   0     0    0     0 SW    0.0  0.0   0:00   3 khubd
   54 root      14 -10     0    0     0 SW<   0.0  0.0   0:00   0 aio/0
   55 root      14 -10     0    0     0 SW<   0.0  0.0   0:00   1 aio/1
I modified php.ini to up the memory allowance to 32mb and even 64mb but that was not the problem. I disabled APF firewall and SIM (uninstalled) to est but also not the problem.

Any help is appreciated.
 
Old 11-17-2005, 05:59 PM   #2
I_AM
Member
 
Registered: Mar 2005
Posts: 103

Original Poster
Rep: Reputation: 15
Found this in the logs....

Nov 13 13:58:57 server3 pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Nov 13 13:58:57 server3 pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Nov 13 13:59:42 server3 nagios: Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:00:42 server3 nagios: Warning: Return code of 127 for check of service 'Total Processes' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:01:42 server3 nagios: Warning: Return code of 127 for check of service 'Current Load' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:02:42 server3 nagios: Warning: Return code of 127 for check of service 'Current Users' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:03:42 server3 nagios: Warning: Return code of 127 for check of service 'PING' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:04:42 server3 nagios: Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:05:42 server3 nagios: Warning: Return code of 127 for check of service 'Total Processes' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:06:42 server3 nagios: Warning: Return code of 127 for check of service 'Current Load' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:07:19 server3 pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Nov 13 14:07:19 server3 pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Nov 13 14:07:42 server3 nagios: Warning: Return code of 127 for check of service 'Current Users' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:08:42 server3 nagios: Warning: Return code of 127 for check of service 'PING' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:09:42 server3 nagios: Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:10:42 server3 nagios: Warning: Return code of 127 for check of service 'Total Processes' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:11:42 server3 nagios: Warning: Return code of 127 for check of service 'Current Load' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:12:42 server3 nagios: Warning: Return code of 127 for check of service 'Current Users' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:13:42 server3 nagios: Warning: Return code of 127 for check of service 'PING' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Nov 13 14:14:42 server3 nagios: Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.




Anyone know a way of perfectly uninstalling Nagios? It is not running anyway. Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
server lockups: urgent I_AM Linux - Software 1 11-30-2005 05:47 AM
urgent: mail server down 2 days I_AM Linux - General 2 07-29-2005 09:59 AM
Urgent : help needed on web server implemenation kbsadiga Programming 4 11-29-2004 12:05 PM
FTP Server Setup-URGENT REQUEST FOR HELP! scottpioso Linux - Networking 19 12-28-2003 09:33 PM
NFS lockup on data server Paul_assheton Linux - Networking 4 08-30-2002 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration