CentOS tasks increase day by day

thunn

Verified User
Joined
Mar 13, 2012
Messages
166
Hi Supporters,
This is my top command. The first day (after reboot server), then the task is 180, yesterday it increases to 240 and now I check it shows 267. I'm not sure if this is a server issue or coding issue, but I will need to restart my server after a few day, if not then the task is increased, and server works slowly:
Code:
top - 03:59:01 up 3 days,  3:53,  2 users,  load average: 0.29, 0.29, 0.34
[B]Tasks: 267 total,   1 running, 266 sleeping,   0 stopped,   0 zombie[/B]
Cpu(s): 20.3%us,  1.7%sy,  0.0%ni, 74.6%id,  3.0%wa,  0.2%hi,  0.2%si,  0.0%st
Mem:   2075024k total,  1927884k used,   147140k free,    78416k buffers
Swap:  6144852k total,   231432k used,  5913420k free,  1272588k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                       
16777 apache    15   0 71364  37m  18m S 10.3  1.8   0:09.13 httpd                         
16842 apache    15   0 73656  28m 7380 S  9.0  1.4   0:00.74 httpd                         
16740 apache    17   0 69732  34m  16m S  8.0  1.7   0:15.71 httpd                         
16841 apache    15   0 69676  24m 7080 S  6.6  1.2   0:00.20 httpd                         
16757 apache    15   0 69936  35m  17m S  5.6  1.7   0:13.78 httpd                         
12735 mysql     16   0  589m 304m 4060 S  0.7 15.0   5:30.41 mysqld                        
16792 apache    15   0 70992  34m  15m S  0.7  1.7   0:06.31 httpd                         
10931 mysql     16   0  589m 304m 4060 D  0.3 15.0   5:31.19 mysqld                        
12713 mysql     15   0  589m 304m 4060 S  0.3 15.0   5:38.22 mysqld                        
13543 mysql     16   0  589m 304m 4060 S  0.3 15.0   0:02.24 mysqld                        
16809 apache    15   0 69796  25m 7460 S  0.3  1.2   0:01.14 httpd                         
16840 root      15   0  2428 1120  792 R  0.3  0.1   0:00.14 top                           
    1 root      15   0  2160  636  548 S  0.0  0.0   0:04.12 init                          
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.40 migration/0                   
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.11 ksoftirqd/0                   
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.39 migration/1                   
    5 root      34  19     0    0    0 S  0.0  0.0   0:00.34 ksoftirqd/1                   
    6 root      10  -5     0    0    0 S  0.0  0.0   0:00.51 events/0                      
    7 root      10  -5     0    0    0 S  0.0  0.0   0:00.17 events/1                      
    8 root      10  -5     0    0    0 S  0.0  0.0   0:00.15 khelper                       
    9 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kthread                       
   13 root      15  -5     0    0    0 S  0.0  0.0   0:00.61 kblockd/0                     
   14 root      14  -5     0    0    0 S  0.0  0.0   0:01.09 kblockd/1                     
   15 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid                        
  174 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/0                      
  175 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/1                      
  178 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 khubd                         
  180 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod                       
  249 root      15   0     0    0    0 S  0.0  0.0   0:00.00 khungtaskd                    
  252 root      10  -5     0    0    0 S  0.0  0.0   0:34.63 kswapd0                       
  253 root      14  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0                         
  254 root      14  -5     0    0    0 S  0.0  0.0   0:00.00 aio/1                         
  471 root      12  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused                     
  514 root      10  -5     0    0    0 S  0.0  0.0   0:00.06 mpt_poll_0                    
  515 root      17  -5     0    0    0 S  0.0  0.0   0:00.00 mpt/0                         
  516 root      17  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0

I Perform a netstat statement and I got this:
Code:
[root@ns ~]# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64100 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64097 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64096 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        crawl-66-249-68-78.go:35900 TIME_WAIT   
tcp        0      0 localhost.localdomain:43472 localhost.localdomain:https TIME_WAIT   
tcp        0      0 localhost.localdomain:43471 localhost.localdomain:https TIME_WAIT   
tcp        0      0 localhost.localdomain:43489 localhost.localdomain:https TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        76.72.167.63:55198         TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64070 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64069 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64068 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64067 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64066 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64065 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64079 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64076 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64075 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        14.160.6.90:designspace-lm  TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64080 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64095 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64094 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64092 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        76.72.167.63:46030         TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        94.228.34.10:56470         TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        76.72.167.63:54991         TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        crawl-66-249-68-78.go:52347 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        76.72.167.63:58309         TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64041 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64055 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        crawl-66-249-68-78.go:53089 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64048 TIME_WAIT   
tcp        0      1 ns.superdata.vn:http        crawl-66-249-68-78.go:49760 LAST_ACK    
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64057 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        77-21-36-146-dynip.su:64056 TIME_WAIT   
tcp        0      0 ns.superdata.vn:http        94.228.34.10:54454         TIME_WAIT   
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ]         DGRAM                    1793   @/org/kernel/udev/udevd
unix  2      [ ]         DGRAM                    9455   @/org/freedesktop/hal/udev_event
unix  20     [ ]         DGRAM                    8674   /dev/log
unix  2      [ ]         STREAM     CONNECTED     9174238 
unix  2      [ ]         STREAM     CONNECTED     9174203 
unix  2      [ ]         STREAM     CONNECTED     9174151 
unix  2      [ ]         STREAM     CONNECTED     9174015 
unix  2      [ ]         STREAM     CONNECTED     9173997 
unix  2      [ ]         STREAM     CONNECTED     9173965 
unix  2      [ ]         DGRAM                    9012917 
unix  2      [ ]         DGRAM                    7354717 
unix  3      [ ]         STREAM     CONNECTED     2463024 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     2463023 
unix  3      [ ]         STREAM     CONNECTED     2463022 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     2463021 
unix  3      [ ]         STREAM     CONNECTED     2463018 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     2463017 
unix  3      [ ]         STREAM     CONNECTED     2462971 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     2462970 
unix  3      [ ]         STREAM     CONNECTED     2462969 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     2462968 
unix  3      [ ]         STREAM     CONNECTED     2462965 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     2462964 
unix  2      [ ]         DGRAM                    1463694 
unix  3      [ ]         STREAM     CONNECTED     1391920 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     1391919 
unix  3      [ ]         STREAM     CONNECTED     1391918 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     1391917 
unix  3      [ ]         STREAM     CONNECTED     1391914 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     1391913 
unix  3      [ ]         STREAM     CONNECTED     1389437 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     1389436 
unix  3      [ ]         STREAM     CONNECTED     1389434 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     1389433 
unix  3      [ ]         STREAM     CONNECTED     1389418 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     1389414 
unix  3      [ ]         STREAM     CONNECTED     1389415 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     1389413 
unix  3      [ ]         STREAM     CONNECTED     1389397 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     1389396 
unix  3      [ ]         STREAM     CONNECTED     1389389 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     1389388 
unix  3      [ ]         STREAM     CONNECTED     1386589 /var/run/dovecot/auth-worker
unix  3      [ ]         STREAM     CONNECTED     1386475 
unix  3      [ ]         STREAM     CONNECTED     194877 /var/run/dovecot/anvil-auth-penalty
unix  3      [ ]         STREAM     CONNECTED     194842 
unix  3      [ ]         STREAM     CONNECTED     194874 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194817 
unix  3      [ ]         STREAM     CONNECTED     194833 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194816 
unix  3      [ ]         STREAM     CONNECTED     194873 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194813 
unix  3      [ ]         STREAM     CONNECTED     194832 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194812 
unix  3      [ ]         STREAM     CONNECTED     194872 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194809 
unix  3      [ ]         STREAM     CONNECTED     194831 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194808 
unix  3      [ ]         STREAM     CONNECTED     194871 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194805 
unix  3      [ ]         STREAM     CONNECTED     194830 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194804 
unix  3      [ ]         STREAM     CONNECTED     194869 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194777 
unix  3      [ ]         STREAM     CONNECTED     194828 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194776 
unix  3      [ ]         STREAM     CONNECTED     194868 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194770 
unix  3      [ ]         STREAM     CONNECTED     194827 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194769 
unix  3      [ ]         STREAM     CONNECTED     194867 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194766 
unix  3      [ ]         STREAM     CONNECTED     194826 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194765 
unix  3      [ ]         STREAM     CONNECTED     194866 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194760 
unix  3      [ ]         STREAM     CONNECTED     194825 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194759 
unix  3      [ ]         STREAM     CONNECTED     194865 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194756 
unix  3      [ ]         STREAM     CONNECTED     194824 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194755 
unix  3      [ ]         STREAM     CONNECTED     194864 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194750 
unix  3      [ ]         STREAM     CONNECTED     194823 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194749 
unix  3      [ ]         STREAM     CONNECTED     194863 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194741 
unix  3      [ ]         STREAM     CONNECTED     194822 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194740 
unix  3      [ ]         STREAM     CONNECTED     194862 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194735 
unix  3      [ ]         STREAM     CONNECTED     194821 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194734 
unix  3      [ ]         STREAM     CONNECTED     194861 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194726 
unix  3      [ ]         STREAM     CONNECTED     194820 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194725 
unix  3      [ ]         STREAM     CONNECTED     194860 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194721 
unix  3      [ ]         STREAM     CONNECTED     194801 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194720 
unix  3      [ ]         STREAM     CONNECTED     194859 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194719 
unix  3      [ ]         STREAM     CONNECTED     194800 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194718 
unix  3      [ ]         STREAM     CONNECTED     194857 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194710 
unix  3      [ ]         STREAM     CONNECTED     194798 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194708 
unix  3      [ ]         STREAM     CONNECTED     194855 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194699 
unix  3      [ ]         STREAM     CONNECTED     194796 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194698 
unix  3      [ ]         STREAM     CONNECTED     194854 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194691 
unix  3      [ ]         STREAM     CONNECTED     194795 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194690 
unix  3      [ ]         STREAM     CONNECTED     194853 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194689 
unix  3      [ ]         STREAM     CONNECTED     194794 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194688 
unix  3      [ ]         STREAM     CONNECTED     194852 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194681 
unix  3      [ ]         STREAM     CONNECTED     194793 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194680 
unix  3      [ ]         STREAM     CONNECTED     194851 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194679 
unix  3      [ ]         STREAM     CONNECTED     194792 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194678 
unix  3      [ ]         STREAM     CONNECTED     194850 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194671 
unix  3      [ ]         STREAM     CONNECTED     194849 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194670 
unix  3      [ ]         STREAM     CONNECTED     194791 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194669 
unix  3      [ ]         STREAM     CONNECTED     194790 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194668 
unix  3      [ ]         STREAM     CONNECTED     194848 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194661 
unix  3      [ ]         STREAM     CONNECTED     194847 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194660 
unix  3      [ ]         STREAM     CONNECTED     194789 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194659 
unix  3      [ ]         STREAM     CONNECTED     194788 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194658 
unix  3      [ ]         STREAM     CONNECTED     194846 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194653 
unix  3      [ ]         STREAM     CONNECTED     194845 /var/run/dovecot/login/login
unix  3      [ ]         STREAM     CONNECTED     194651 
unix  3      [ ]         STREAM     CONNECTED     194787 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194650 
unix  3      [ ]         STREAM     CONNECTED     194784 /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     194649 
unix  2      [ ]         DGRAM                    194637 
unix  3      [ ]         STREAM     CONNECTED     194771 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194625 
unix  3      [ ]         STREAM     CONNECTED     194762 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194620 
unix  3      [ ]         STREAM     CONNECTED     194761 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194615 
unix  3      [ ]         STREAM     CONNECTED     194752 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194614 
unix  3      [ ]         STREAM     CONNECTED     194743 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194601 
unix  3      [ ]         STREAM     CONNECTED     194737 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194591 
unix  3      [ ]         STREAM     CONNECTED     194736 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194586 
unix  3      [ ]         STREAM     CONNECTED     194731 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194581 
unix  3      [ ]         STREAM     CONNECTED     194730 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194576 
unix  3      [ ]         STREAM     CONNECTED     194729 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194575 
unix  3      [ ]         STREAM     CONNECTED     194728 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194560 
unix  3      [ ]         STREAM     CONNECTED     194727 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194559 
unix  3      [ ]         STREAM     CONNECTED     194722 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194545 
unix  3      [ ]         STREAM     CONNECTED     194712 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194087 
unix  3      [ ]         STREAM     CONNECTED     194702 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194075 
unix  3      [ ]         STREAM     CONNECTED     194692 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194065 
unix  3      [ ]         STREAM     CONNECTED     194683 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194060 
unix  3      [ ]         STREAM     CONNECTED     194682 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194059 
unix  3      [ ]         STREAM     CONNECTED     194673 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194057 
unix  3      [ ]         STREAM     CONNECTED     194672 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194049 
unix  3      [ ]         STREAM     CONNECTED     194663 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194040 
unix  3      [ ]         STREAM     CONNECTED     194662 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194035 
unix  3      [ ]         STREAM     CONNECTED     194652 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194030 
unix  3      [ ]         STREAM     CONNECTED     194646 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194029 
unix  3      [ ]         STREAM     CONNECTED     194643 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194027 
unix  3      [ ]         STREAM     CONNECTED     194642 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194022 
unix  3      [ ]         STREAM     CONNECTED     194713 /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     194017 
unix  3      [ ]         STREAM     CONNECTED     193563 
unix  3      [ ]         STREAM     CONNECTED     193562 
unix  2      [ ]         DGRAM                    193519 
unix  2      [ ]         DGRAM                    15936  
unix  3      [ ]         STREAM     CONNECTED     14710  @/tmp/fam-root-
unix  3      [ ]         STREAM     CONNECTED     14709  
unix  3      [ ]         STREAM     CONNECTED     14618  /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     14617  
unix  2      [ ]         DGRAM                    12977  
unix  3      [ ]         STREAM     CONNECTED     12722  /opt/avg/avg8/var/run/bd128301-f46c-4499-81db-2ba825f195dc
unix  3      [ ]         STREAM     CONNECTED     12721  
unix  3      [ ]         STREAM     CONNECTED     12718  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     12717  
unix  3      [ ]         STREAM     CONNECTED     12696  /opt/avg/avg8/var/run/fe08f947-1952-442b-a275-47ac43ec5b3e
unix  3      [ ]         STREAM     CONNECTED     12695  
unix  3      [ ]         STREAM     CONNECTED     12692  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     12691  
unix  2      [ ]         DGRAM                    12684  
unix  3      [ ]         STREAM     CONNECTED     12534  /opt/avg/avg8/var/run/3b0e0c5a-da12-47c6-8b9a-9ef1cd6c24a1
unix  3      [ ]         STREAM     CONNECTED     12533  
unix  3      [ ]         STREAM     CONNECTED     12530  /opt/avg/avg8/var/run/68ce18b3-1c63-486d-b13a-deb3f543cb59
unix  3      [ ]         STREAM     CONNECTED     12529  
unix  3      [ ]         STREAM     CONNECTED     12506  /opt/avg/avg8/var/run/e054c009-7837-4771-998a-27937d1ebcae
unix  3      [ ]         STREAM     CONNECTED     12505  
unix  3      [ ]         STREAM     CONNECTED     12502  /opt/avg/avg8/var/run/68ce18b3-1c63-486d-b13a-deb3f543cb59
unix  3      [ ]         STREAM     CONNECTED     12501  
unix  3      [ ]         STREAM     CONNECTED     12499  /opt/avg/avg8/var/run/09b7ebc7-4af6-44d7-8174-14b7bf59738f
unix  3      [ ]         STREAM     CONNECTED     12498  
unix  3      [ ]         STREAM     CONNECTED     12486  /opt/avg/avg8/var/run/05504309-bdd7-4732-8361-857a9028a8d2
unix  3      [ ]         STREAM     CONNECTED     12485  
unix  3      [ ]         STREAM     CONNECTED     12483  /opt/avg/avg8/var/run/avg-7d2a2153-05f2-4a46-8809-45c061807436
unix  3      [ ]         STREAM     CONNECTED     12482  
unix  3      [ ]         STREAM     CONNECTED     12479  /opt/avg/avg8/var/run/68ce18b3-1c63-486d-b13a-deb3f543cb59
unix  3      [ ]         STREAM     CONNECTED     12478  
unix  3      [ ]         STREAM     CONNECTED     12477  /opt/avg/avg8/var/run/avg-7d2a2153-05f2-4a46-8809-45c061807436
unix  3      [ ]         STREAM     CONNECTED     12476  
unix  3      [ ]         STREAM     CONNECTED     12473  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     12472  
unix  3      [ ]         STREAM     CONNECTED     12211  /opt/avg/avg8/var/run/e054c009-7837-4771-998a-27937d1ebcae
unix  3      [ ]         STREAM     CONNECTED     12210  
unix  3      [ ]         STREAM     CONNECTED     12207  /opt/avg/avg8/var/run/d4919074-fe9b-485f-8f26-681a6cb3aab9
unix  3      [ ]         STREAM     CONNECTED     12206  
unix  3      [ ]         STREAM     CONNECTED     12204  /opt/avg/avg8/var/run/3b0e0c5a-da12-47c6-8b9a-9ef1cd6c24a1
unix  3      [ ]         STREAM     CONNECTED     12203  
unix  3      [ ]         STREAM     CONNECTED     12200  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     12199  
unix  3      [ ]         STREAM     CONNECTED     12172  /opt/avg/avg8/var/run/200a51ee-97a9-4ddb-aee2-99125ef36163
unix  3      [ ]         STREAM     CONNECTED     12171  
unix  3      [ ]         STREAM     CONNECTED     12168  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     12167  
unix  3      [ ]         STREAM     CONNECTED     12150  /opt/avg/avg8/var/run/5204dbe6-dead-4bf3-b438-60f6bba6f558
unix  3      [ ]         STREAM     CONNECTED     12149  
unix  3      [ ]         STREAM     CONNECTED     12146  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     12145  
unix  3      [ ]         STREAM     CONNECTED     12137  /opt/avg/avg8/var/run/e054c009-7837-4771-998a-27937d1ebcae
unix  3      [ ]         STREAM     CONNECTED     12136  
unix  3      [ ]         STREAM     CONNECTED     12133  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     12132  
unix  3      [ ]         STREAM     CONNECTED     12121  /opt/avg/avg8/var/run/acf73193-539f-4284-8f14-5be3908b5cbd
unix  3      [ ]         STREAM     CONNECTED     12120  
unix  3      [ ]         STREAM     CONNECTED     12117  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     12116  
unix  2      [ ]         DGRAM                    12109  
unix  2      [ ]         DGRAM                    12007  
unix  3      [ ]         STREAM     CONNECTED     11741  /opt/avg/avg8/var/run/7159d075-81e9-44ec-ab93-0f3629b85291
unix  3      [ ]         STREAM     CONNECTED     11740  
unix  3      [ ]         STREAM     CONNECTED     11737  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     11736  
unix  3      [ ]         STREAM     CONNECTED     11725  /opt/avg/avg8/var/run/871319b2-1199-45e3-b655-586859a32c89
unix  3      [ ]         STREAM     CONNECTED     11724  
unix  3      [ ]         STREAM     CONNECTED     11721  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     11720  
unix  3      [ ]         STREAM     CONNECTED     11695  /opt/avg/avg8/var/run/b9c78712-2923-4a6e-a899-2b8530a1502e
unix  3      [ ]         STREAM     CONNECTED     11694  
unix  3      [ ]         STREAM     CONNECTED     11687  /opt/avg/avg8/var/run/18BDADB7-190D-4251-869F-1A05CD133BC2
unix  3      [ ]         STREAM     CONNECTED     11685  
unix  2      [ ]         DGRAM                    11530  
unix  2      [ ]         DGRAM                    10881  
unix  2      [ ]         DGRAM                    10744  
unix  3      [ ]         STREAM     CONNECTED     10704  /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     10703  
unix  3      [ ]         STREAM     CONNECTED     10497  @/var/run/hald/dbus-CUEW5s1p0q
unix  3      [ ]         STREAM     CONNECTED     10496  
unix  3      [ ]         STREAM     CONNECTED     10462  /var/run/acpid.socket
unix  3      [ ]         STREAM     CONNECTED     10459  
unix  3      [ ]         STREAM     CONNECTED     10453  @/var/run/hald/dbus-CUEW5s1p0q
unix  3      [ ]         STREAM     CONNECTED     10452  
unix  3      [ ]         STREAM     CONNECTED     9450   @/var/run/hald/dbus-rqVLsFafjZ
unix  3      [ ]         STREAM     CONNECTED     9449   
unix  2      [ ]         DGRAM                    9362   
unix  3      [ ]         STREAM     CONNECTED     9243   /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     9242   
unix  2      [ ]         DGRAM                    9220   
unix  2      [ ]         DGRAM                    9210   
unix  3      [ ]         STREAM     CONNECTED     9186   
unix  3      [ ]         STREAM     CONNECTED     9185   
unix  3      [ ]         STREAM     CONNECTED     9102   
unix  3      [ ]         STREAM     CONNECTED     9101   
unix  2      [ ]         DGRAM                    8978   
unix  2      [ ]         DGRAM                    8682   
unix  3      [ ]         STREAM     CONNECTED     8556   
unix  3      [ ]         STREAM     CONNECTED     8555   
unix  3      [ ]         STREAM     CONNECTED     8556   
unix  3      [ ]         STREAM     CONNECTED     8555
 
Hello,

I guess you need to review your Apache settings and scripts of your web-site.

Oh, I have tried to restart mysql, and the number of tasks are 170 which the same as when the server just reboot.

So it may be a coding issue, or it's a mysql config connection state?

Thanks for your help.
 
Enable server-status in APACHE and see what sites are mostly visited and connections to which pages stay running/waiting for a longer time.
 
Thanks Alex, I configured it already:
Enable server status:
Edit this file:
Code:
/etc/httpd/httpd.conf
Add these lines at the bottom:
Code:
<IfModule mod_status.c>
		ExtendedStatus On
		<Location /server-status>
			SetHandler server-status
			Order deny,allow
			Deny from all
			Allow from 58.187.72.170
		</Location>
	</IfModule>

It works great!
 
Back
Top