Some Websites Load Slow + Mysql Timeout
I'm hosting about 6 private websites on my server, and some have problems.
My biggest website is a vb forum with 30.000 members and 1.5 million posts.
When i browse with firefox i see that vb forum loads fast, but phpads which is integrated on the top and footer loads very slow. When i browse with IE, it takes like 10 seconds before the whole site is loaded and sometimes IE even crashes.
When i try to login on another website / admin panel (oscommerce), i get a mysql gone away error, that means timeout. But why does it show that? I ran mysqlreport and can't find anything why it should display mysql gone away.
# ./mysqlreport
MySQL 5.0.15-standard uptime 3 19:36:47 Mon Feb 5 11:08:10 2007
__ Key _________________________________________________________________
Buffer usage 78.94M of 96.00M %Used: 82.23
Write ratio 0.60
Read ratio 0.00
__ Questions ___________________________________________________________
Total 19.61M 59.47/s
Slow 9 0.00/s %Total: 0.00 %DMS: 0.00
DMS 7.17M 21.74/s 36.56
__ Table Locks _________________________________________________________
Waited 7.57k 0.02/s %Total: 0.05
Immediate 16.50M 50.03/s
__ Tables ______________________________________________________________
Open 1.27k of 1800 %Cache: 70.56
Opened 1.82k 0.01/s
__ Connections _________________________________________________________
Max used 47 of 500 %Max: 9.40
Total 2.62M 7.95/s
__ Created Temp ________________________________________________________
Disk table 6.77k 0.02/s
Table 635.25k 1.93/s
File 50.37k 0.15/s
I can't find any problems on the server which may lead to this strange problem.
The server load is normal, around 1 to 1.5. No weird errors in the apache error log or system log.
This strange behaviour started 2 weeks ago, and appears 2 to 3 time a week.
The system is running:
centos 4.3 64-bit
kernel 2.6.16.17 #1 SMP
directadmin 1.29.0
mysql 5.0.15
php 5.2
apache 2
Zend optimizer 3.2.0
Eaccelerator 1.95
One thing i noticed is that every night when the directadmin cron finished, the server acts normal again.
The directadmin cronjobs are:
* * * * * root /usr/local/directadmin/dataskq
2 0-23/6 * * * root echo 'action=vacation&value=all' >> /usr/local/directadmin/data/task.queue;
#5 5 * * 0 root /sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a;
20 4 1 * * root echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
0 4 * * * root echo 'action=check&value=license' >> /usr/local/directadmin/data/task.queue
10 0 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Websites Open Slow
all websites on one of my server open very slow..in firefox it just kep saying Waiting.. for at least 10 secs and data is transfered. contents of my.cnf [mysqld] safe-show-database #old_passwords back_log = 50 skip-innodb max_connections = 500 key_buffer_size = 144M myisam_sort_buffer_size = 64M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 5000 thread_cache_size = 256 wait_timeout = 20 connect_timeout = 10 tmp_table_size = 64M max_heap_table_size = 64M max_allowed_packet = 64M net_buffer_length = 16384 max_connect_errors = 10 thread_concurrency = 4 concurrent_insert = 2 table_lock_wait_timeout = 30 read_rnd_buffer_size = 786432 bulk_insert_buffer_size = 8M query_cache_limit = 6M query_cache_size = 128M query_cache_type = 1 query_prealloc_size = 262144 query_alloc_block_size = 65536 transaction_alloc_block_size = 8192 transaction_prealloc_size = 4096 default-storage-engine = MyISAM max_write_lock_count = 16 [mysqld_safe] nice = -10 open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 384M sort_buffer = 384M read_buffer = 256M write_buffer = 256M httpd.conf KeepAlive: Off MaxKeepAliveRequests: 100 KeepAliveTimeout: 1 MinSpareServers: 10 MaxSpareServers: 15 StartServers: 10 MaxClients: 150 MaxRequestsPerChild: 1000
View Replies!
View Related
VPS Incredibly Slow, Huge Numbers Of Slow MySQL Queries For Plesk/Watchdog
I've got 25 domains on a Virtuozzo/Plesk8.6/CentOS5 VPS. Each domain has one up-to-date install of WordPress, most have very little traffic (average 200mb per month), maybe 2 domains get 5-7gb traffic per month. I monitor port 80 connections and rarely see more than 10 at a time. That should in my opinion be no problem at all for a VPS with 768mb guaranteed ram and 2.4ghz cpu. I've got 30gb hard drive spare too. But.... about 8 or 10 times a day it grinds to a complete halt: server load at 500-1000%, sites timing out, plesk takes 3mins to load, often I can't even connect with SSH, and the plesk web server, apache INSERT INTO module_watchdog_sys_stat (time, type, value, service_id) VALUES(FROM_UNIXTIME(1226404705), 'MAINMEM_USAGE', 17472, 11); 80 seconds sounds like a huge amount of time for a MySQL insert to me! Does anyone know if this is likely to be the cause of my trouble? Some problem with Plesk and the database? Or could it be something else?
View Replies!
View Related
Website Extremely Slow To Load/doesn't Load (numtcpsock)
I've been having trouble with my VPS for a while now. In the QoS alerts page in Virtuozzo it seems to be a problem with numtcpsock and tcprcvbuf, mainly numtcpsock. Copy these into the browser: i18.photobucket.com/albums/b106/gnatfish/qosnumtcpsock2.jpg And when i run cat /proc/user_beancounters: i18.photobucket.com/albums/b106/gnatfish/beancounters2.jpg This line is particularly scary: numtcpsock 164 164 166 166 7321 What do i need to do, to get the website running again? It's only one site on the vps a proxy. So i thought a vps would be able to handle one proxy.
View Replies!
View Related
DNS - Websites Load Very Slowly
We have an issue with websites load very slowly in a new server (centos) and we recieve an email from the server stating the following: IMPORTANT: Do not ignore this email. The hostname (ns.domain.com) resolves to . It should resolve to xx.xxx.xxx.90. Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain. Some are all of these problems can be caused by /etc/resolv.conf being setup incorrectly. Please check this file if you believe everything else is correct. You may be able to automaticly correct this problem by using the ' Add an A entry for your hostname ' under ' Dns Functions ' in your Web Host Manager and when we restart "DNS Server (BIND)" or "named" we get as part of the output the following: view localhost_resolver: received notify for zone 'domain.com': not authoritative Please find below the contents of /etc/hosts , /etc/resolv.conf and /etc/sysconfig/network: /etc/hosts: ::1 localhost6.localdomain6 localhost6 # Do not remove the following line, or various programs # that require network functionality will fail. XX.xxx.xxx.90 ns.domain.com ns 127.0.0.1 localhost /etc/resolv.conf : #domain domain.com #search domain.com #nameserver 127.0.0.1 nameserver xx.xxx.xxx.92 nameserver xx.xxx.xxx.93 /etc/sysconfig/network: NETWORKING=yes NETWORKING_IPV6=yes GATEWAY=xx.xxx.xxx.xx HOSTNAME=ns.domain.com DOMAINNAME=domain.com So what could be wrong with the above settings?
View Replies!
View Related
MySQL Timeout On Active Connections
unfortunately my server crashes a lot recently. What happens is that some application creates a MySQL connection which hangs and then MySQL gets overloaded and takes the whole server down. My question: 1. How do I configure MySQL to time out even on active connections ? I.e. after 30 seconds kill the process no matter if it is still active or not. Is that possible ? 2. How do I exclude the root user from that?
View Replies!
View Related
Timeout Error Starting MySQL
I'm having a bit of trouble here with MySQL, I don't know what to do. Centos 4.3, Mysql 4.1 Data is stored in /var/lib/mysql/ I'm looking to move that information to a second hard drive soon, and did a quick test of just copying it to another place on my existing drive. It won't start. Quote: [root@localhost ~]# service mysqld start Timeout error occurred trying to start MySQL Daemon. Starting MySQL: [FAILED] Error logs Code: 071106 12:14:33 mysqld started 071106 12:14:33 [Warning] Can't create test file /var/lib/mysqltf/localhost.lower-test /usr/libexec/mysqld: Can't change dir to '/var/lib/mysqltf/' (Errcode: 13) 071106 12:14:33 [ERROR] Aborting 071106 12:14:33 [Note] /usr/libexec/mysqld: Shutdown complete 071106 12:14:33 mysqld ended 071106 12:17:00 mysqld started 071106 12:17:00 [Warning] Can't create test file /var/lib/mysqltf/localhost.lower-test /usr/libexec/mysqld: Can't change dir to '/var/lib/mysqltf/' (Errcode: 13) 071106 12:17:00 [ERROR] Aborting 071106 12:17:00 [Note] /usr/libexec/mysqld: Shutdown complete 071106 12:17:00 mysqld ended I have tried even chmod 777ing the msyqltf folder (my copy) to no avail. my.cnf Code: [mysqld] datadir=/var/lib/mysqltf/ socket=/var/lib/mysqltf/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid I've tried moving it to different locations. I even tried moving the original folder and renaming it, and still get this problem.
View Replies!
View Related
Timeout Error Occured Trying To Start MySQL Daemon
I am getting the error (as listed in the title) on my server. This is a BRAND NEW FRESH install on a brand new server... OS: Unix Fedora Kernel Version: Kernel 2.6.18-1/2798.fc6 on an i686 Hardware Information: Brand new Dell SC1435 Server Software Version: MySQl 5 Control Panel: Nothing yet Apache starts ok but when I go to strart MySQL I get the following error... [root@server112]# /etc/rc.d/init.d/mysqld start Timeout error occurred trying to start MySQL Daemon Starting MySQL: [FAILED] Does anyone have any ideas? I did some pretty extensive searching... Web Hosting Talk article that basically describes the same error. I followed everything as listed in his suggestion and it didn't change anything. Also Checked here but this didn't work either.
View Replies!
View Related
Server Slow To Load
I dont know much about what could be cuasing this so i come to you for advice, i am currently at wired tree on their VPS384 package with 348MB of ram and my site is really slow to load [url]sometimes it is so embaressing to show people i just dont bother, i am sure this is deferring visitors from my content how can i speed this up? I can add more ram but it will push the price and if the price goes too high i might aswell move to a Hybrid with wiredtree.
View Replies!
View Related
Some Sites Load Slow, Some Sites Load Fine, Server Load Is Fine
I'm having the oddest issue. For some reason, some of the websites on my server load fine, and some take a really long time to load (2 minutes). Now, the server load is fine, and the size of the sites aren't the issue either. I've restarted Apache and a couple more services, and still the same sites seem to load very slow. What could be causing this since it's only effecting certain websites?
View Replies!
View Related
High Server Load And Slow Performance
I am currently hosting my website on one server with the specs: 2.8ghz Dual Quad-Core processor + 8 gigs of ram + two 500 hard drives with a 50 mbps unmetered bandwidth package. My current problem lies in high server loads and very slow server performance throughout the day. I am considering migrating over to The Planet onto server with the specs: 3.0ghz Dual Quad-Core + 18 gigs of ram + two 50gb hard drives with 2TB of monthly bandwidth transfer. In an attempt to have great bandwidth pricing and server performance, I plan on downgrading my current server with my current host to a lowe-end server and keeping it only to host my VIDEO and MUSIC files with the 50mbps unmetered package. The Planet will then host my database and all other web related files on their new server. Is this a good idea as an attempt to save money in bandwidth costs and eliminating my server lag issues? I was offered a setup of a separate web and database server at my current host but from what I have read, no one touches the performance and reliability The Planet has to offer.
View Replies!
View Related
My Server Has A Low Load, And Still Runs Slow.
My server has a small load (about 30% of it is being used) and it is still running very slow. When I reboot it runs fast for about 5-10 min, and then it is back to slow. I reported this to hivelocity and the responded with " The problem was one of your apache process was pegged out. Restarting apache resolved this issue. If you still have issues check top and run lsof on the process ID that is pegged out." and after it continued "It will continur to happen until you isolate the source of the issue and stop it. The load looked fine just now, so I am not seeing an issue. What you can do is when it pegs out (simply restarting webserver will get it back up but not resolve) run the following command: ps -aux Look through the processes to see what is calling it." Whn I run ps -aux i see a username on my server. i suspended that username but the problem is still happening.
View Replies!
View Related
Server Load Is Low But Site Is VERY Slow
My machine is pretty good. Here are the specs: Intel Xeon-Woodcrest 5148-DualCore 3 gigs of ram 250GB Western Digital WD Cavia I run a forum with a modest amount of traffic along with a content management system handling the other sections of the website. I'm pretty sure the forum isn't the problem though. The server load for this machine is almost never above a 1. Right now as I type this the load is at 0.17, but it's unbearably slow! Taking up to 16 seconds to load a single page. What could be causing this? I'm a server n00b. Is there a setting I should be doing to one of my servers configuration files to make it run faster? My website gets 30-40,000 visitors a day and these problems always occur during peak hours. It would be easier to deal with this though if not for the fact that the server load is always so low. How is it possible for the site to get so slow while the server load is always so low?
View Replies!
View Related
VBulletin Forum Very Slow Under High Load
I recently started hosting a large vBulletin forum (14,014 registered users... 30-60 online at a time) on one of my dedicated servers. When there's a lot of activity on the forums, things start getting really slow. There will be like 50 php-cgi processes running. Some users get blank pages, others get this message: Notice: Undefined variable: errfile in [path]/forums/includes/functions_log_error.php on line 163 Specs of the server are: AMD Athlon 64 3000+ 160GB SATA HDD 2GB DDR2 RAM FreeBSD 6.2 (Hosted at AwkNet) Could there be any Apache modifications I can make to increase performance, or anything else I could try?
View Replies!
View Related
CPU Load Low, Server Slow, Need More Ram
My server gets 300 - 600 concurrent connections to http port 80, has a CPU load of 1 - 2%, has practically all RAM of 1 GB used, is running apache 2 and centos 5. It tends to get slow and when I ban IPs that use many connections to my server (raping it), it becomes fast again. But soon after that new ******* users come which I again ban and the process repeats itself I'm starting to think that maybe I just don't have enough RAM to handle them because it seems at least some of those users are legit. I don't however have even that much content that needs to be cached so I'm not sure what good RAM would do but perhaps apache just needs more.
View Replies!
View Related
Dual Server Setup For Vbulletin Result Slow Load
I just added a database server in private network and moved the database for Vbulletin Forum to this server. But some how, the Forum is loading extremely slow compare to before ( when it was on the localhost). Also, Compare to another website on server (using local database) it is much slower. One thing good is the load is lower 2 servers are connected via 10mbs private link, both servers are at Softlayer. webserver: Opteron 170, 2GB RAM, 73GB SCSI 15K database: Quad Xeon 3220, 2GB RAM, 73GB SCSI 15K.
View Replies!
View Related
Mysql Loading Very Slow
I'm running a forum system on my server. Loading pages that don't connect to the forum database load normal. Whenever I browse any page that connects to the forum database on my forum, the page either takes ages to load or times out loading. I never exceed using 14% of one of my two cores, I'm using a quarter of my 1.5GB ram. It's only been loading slow like this since I've switched from running Windows to Ubuntu Server 8.10. I enabled logging slow queries on SQL, but nothing's been recorded. I've installed the server packages through Webmin, when I access the server through its local IP address it's still very slow.
View Replies!
View Related
Mysql Slow Queries
I added the following to my.cnf and restarted mysql log_slow_queries=/var/log/mysql/mysql_slow-queries.log I saw at leat 53 slow queries, however, there is no such file in that folder.
View Replies!
View Related
Modernbill Is Really Slow / Mysql Optimizations
Modernbill v5 is extremely slow. It takes about 2-3 seconds to get to the next page or refresh. It took 5 seconds after clicking 'reports' tab. In order process, it takes 3-5 seconds just to show the add-ons or update them after hitting "save add-ons". This is unbelievable. I'm using Firefox. I'm on a cable connection Server specs: Dual Xeon 3.4GHz HT 4GB Memory MySql 5 PHP 5.2.5 Apache 2.2 I applied these optimizations as suggested by an MB tech Quote: At the ModernBill level, We have the following custom configurations in our /lib-modernbill/include/config/config.php file: $CONF["dbType"] = "mysqli"; $CONF["forceCLICurl"] = 0; $CONF["enableSharedMemoryLocaleCache"] = true; $CONF["enableSharedMemoryAdminCache"] = true; $CONF["adminCacheSeconds"] = 300; $CONF["enableSharedMemoryMBPathCache"] = true; $CONF["smarty"]["enableCaching"] = true; $CONF["smarty"]["cacheLifetime"] = 0; $CONF["smarty"]["enableCompileChecking"] = false; At the PHP level, we have the following in our php.ini (some of these were recommended in our documentation to start with): max_execution_time = 300 memory_limit = 128M error_reporting = 2039 display_errors = Off register_globals = Off /etc/my.cnf [mysqld] local-infile=0 datadir=/var/lib/mysql skip-locking skip-innodb skip-networking safe-show-database query_cache_limit=1M query_cache_size=32M ## 32MB for every 1GB of RAM query_cache_type=1 max_user_connections=500 max_connections=1500 interactive_timeout=10 wait_timeout=28800 connect_timeout=20 thread_cache_size=128 key_buffer=512M ## 128MB for every 1GB of RAM join_buffer=4M max_connect_errors=20 max_allowed_packet=16M table_cache=1024 record_buffer=4M sort_buffer_size=4M ## 1MB for every 1GB of RAM read_buffer_size=4M ## 1MB for every 1GB of RAM read_rnd_buffer_size=4M ## 1MB for every 1GB of RAM thread_concurrency=8 ## Number of CPUs x 2 myisam_sort_buffer_size=64M server-id=1 collation-server=latin1_general_ci [mysql.server] user=mysql [safe_mysqld] err-log=/var/log/mysqld.log pid-file=/var/lib/mysql/mysql.pid open_files_limit=8192 [mysqldump] quick max_allowed_packet=16M [mysql] no-auto-rehash #safe-updates [isamchk] key_buffer=64M sort_buffer=64M read_buffer=16M write_buffer=16M [myisamchk] key_buffer=64M sort_buffer=64M read_buffer=16M write_buffer=16M [mysqlhotcopy] interactive-timeout
View Replies!
View Related
Very Slow Query Time After Upgrade To Mysql 5
We have a dedicated server and we host 4 news portals based on e107 and joomla. My partner on Sunday has upgraded mysql from version 4 to 5. Now the server experiences very high CPU usage and query time on portals has been increased very much. We used to have query times lower than 1 sec for the main page of [url](which is a site that receives about 2000 visits/day) and now query times are 5-15sec ! Does anybody know if this is makes sense ? Below is the server Status from WHM : ------------------------------------- cpdavd up cpsrvd up exim (exim-4.69-15.1_cpanel_maildir) up ftpd up httpd (2.2.11 (Unix)) up imap up interval up mysql (5.0.67-community-log) up named (9.3.4) up pop up rsyslogd up spamd up syslogd up Server Load 6.97 (1 cpu) Memory Used 49.4 % Swap Used 0.23 % Disk /dev/hda3 (/tmp) DMA+ 70 % Disk /dev/hda5 (/) DMA+ 22 % Disk /dev/hda1 (/boot) DMA+ 14 % Below is the Server Information from WHM : ------------------------------------------ Processor #1 Vendor: GenuineIntel Processor #1 Name: Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz Processor #1 speed: 2394.068 MHz Processor #1 cache size: 2048 KB Memory Information Memory: 2064420k/2087424k available (2091k kernel code, 21752k reserved, 846k data, 236k init, 1169920k highmem) System Information Linux server.aktoweb.biz 2.6.20-1.2319.fc5 #1 Mon May 21 19:52:13 EDT 2007 i686 i686 i386 GNU/Linux Physical Disks hda: WDC WD3200AAJB-00TYA0, ATA DISK drive hda: hw_config=600d hda: hw_config=600d hda: max request size: 512KiB hda: 625142448 sectors (320072 MB) w/8192KiB Cache, CHS=38913/255/63<6>hda: hw_config=600d hda: cache flushes supported Current Memory Usage total used free shared buffers cached Mem: 2066428 1756324 310104 0 339576 486636 -/+ buffers/cache: 930112 1136316 Swap: 1052248 2428 1049820 Total: 3118676 1758752 1359924 Current Disk Usage Filesystem Size Used Avail Use% Mounted on /dev/hda5 288G 60G 213G 22% / /dev/hda1 99M 13M 82M 14% /boot tmpfs 1009M 0 1009M 0% /dev/shm /dev/hda3 494M 215M 254M 46% /tmp Below is the CPU/Memmory/Mysql Usage from WHM : ------------------------------------------------- mysql42.707.300.0 Top Process%CPU 42.7/usr/sbin/mysqld --basedir/ --datadir/var/lib/mysql --usermysql --pid-file/var/lib/mysql/server.aktoweb.biz.pid --skip-external-locking Top Process%CPU 42.6/usr/sbin/mysqld --basedir/ --datadir/var/lib/mysql --usermysql --pid-file/var/lib/mysql/server.aktoweb.biz.pid --skip-external-locking giaprakigiapraki.com2.7012.111.7 Top Process%CPU 1.3httpd [urll] [/e107_plugins/pm/pm.php?inbox] Top Process%CPU 1.1httpd [url] [/e107_plugins/forum/forum_viewforum.php?87] Top Process%CPU 1.0httpd [url] [/e107_plugins/chatbox_menu/chatbox_iframe.php] adsnetadsnet.gr1.177.900.7 Top Process%CPU 0.5httpd [adsnet.gr] [/www/delivery/lg.php?bannerid16&campaignid4&zoneid5&chan] Top Process%CPU 0.4httpd [adsnet.gr] [/www/delivery/lg.php?bannerid50&campaignid6&zoneid15&cha] Top Process%CPU 0.3httpd [adsnet.gr] [/www/delivery/lg.php?bannerid183&campaignid77&zoneid1&ch] r40r40.gr1.073.340.0 Top Process%CPU 1.1httpd [r40.gr] [/index.php?optioncom_fireboard&Itemid188&funcshowcat&cat] Top Process%CPU 0.5httpd [r40.gr] [/images/fbfiles/avatars/s_64.png] Top Process%CPU 0.3httpd [r40.gr] [/index2.php?optioncom_jim&taskxml&no_html1] root0.278.532.0 Top Process%CPU 0.2[kjournald] alex123alexandroupoli.net0.030.270.0 Top Process%CPU 0.1httpd [alexandroupoli.net] [/e107_images/banners/banner468x60-alexandroupolinet.gif] galfasgalfas.gr0.030.270.0 Top Process%CPU 0.1httpd [galfas.gr] [/racing/images/galfas_R40_banner.jpg] eximstats0.000.000.3 nobody0.001.100.0 mailnull0.000.000.0 unauthenticated0.000.000.0 named0.000.10
View Replies!
View Related
Optimizing These Particular MySQL Slow Queries In WordPress
What I did here was create /var/log/mysqld.slow.log for queries that are taking one second or longer. After around 36 hours, here is what I came up with. Since the file size of /var/log/mysqld.slow.log was 219KB, posting it in its entirety it not practical. Therefore, I used a program, the perl script known as mysql_slow_log_parser found on www.retards.org, to parse the mysqld.slow.log to make it easier to interpret and read. The result was that the original filesize of 219KB was converted to the smaller size of 14KB....
View Replies!
View Related
My Server Is Very Slow, High CPU, High Apache Load
My server is very slow, High CPU, High Apache load.... I got a new server and i had setup a script on it. No server tweaks has been done. I run a filehosting site so it gets very slow when traffic is high. Here is some info: Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4135 filedip 19 0 12812 8892 2212 R 18.9 0.4 0:00.74 index.cgi 3140 apache 15 0 22624 9604 2768 S 17.3 0.5 1:54.45 httpd 3556 apache 15 0 22792 9592 2768 S 17.3 0.5 0:43.53 httpd 3739 apache 15 0 22672 9556 2744 S 17.3 0.5 1:09.67 httpd 3884 apache 15 0 22664 9560 2744 S 17.3 0.5 0:23.98 httpd 3474 apache 15 0 22672 9572 2756 R 16.1 0.5 1:34.09 httpd 3548 apache 15 0 22792 9560 2740 S 16.1 0.5 1:33.67 httpd 3991 apache 15 0 22640 9588 2756 S 15.1 0.5 0:22.44 httpd 3475 apache 15 0 22672 9580 2756 S 13.2 0.5 1:31.42 httpd 3493 apache 15 0 22664 9592 2768 S 12.9 0.5 1:15.52 httpd 3769 apache 15 0 22664 9580 2756 S 12.9 0.5 0:45.19 httpd 3638 apache 15 0 22664 9576 2756 S 12.3 0.5 0:32.82 httpd 3724 apache 16 0 22664 9580 2756 R 12.3 0.5 0:34.25 httpd 3626 apache 15 0 22672 9580 2756 S 11.7 0.5 0:52.54 httpd 4023 apache 16 0 22792 9560 2740 R 11.3 0.5 0:13.16 httpd 3882 apache 15 0 22664 9576 2756 S 10.1 0.5 0:38.56 httpd 3005 apache 15 0 22672 9588 2768 R 9.1 0.5 2:06.61 httpd I dont know much about server managment... how to fix this so server doesnt go slow?
View Replies!
View Related
MYSQL High Load!
I am just a beginner and it is about a month that the mysql loads on my server is so high , I have checked the mysql processlist via cpanel and there is no account that takes high mysql and make it high , and even I have checked for any possible rotten databases. but still the server load is so high and I can not control it , even when I restart it just after a minute it goes up again. just the spamd command takes a high CPU usage sometimes. what it should be from? the spamd for a special account! I need to optimize mysql , and need help. please do not tell me to hire an expert , just help me thanks and another question is that how can I check which account is sending spam and stop it?
View Replies!
View Related
High Load From Mysql
I have a dual xeon server that host around 15 small website, but these days I see that the load generated from mysql is very high as you can see below is consumes 32.6 CPU mysql 32.60 1.20 0.0 how I can know what is the cause of this load?
View Replies!
View Related
High MySQL Load
MySQL. Quote: top - 18:43:24 up 18 days, 18:05, 1 user, load average: 145.13, 92.77, 40.84 Tasks: 145 total, 10 running, 134 sleeping, 0 stopped, 1 zombie Cpu(s): 28.7% us, 70.6% sy, 0.0% ni, 0.0% id, 0.7% wa, 0.1% hi, 0.0% si Mem: 1034060k total, 605968k used, 428092k free, 21400k buffers Swap: 1020088k total, 165076k used, 855012k free, 119448k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6102 mysql 16 0 343m 146m 2868 S 364 14.5 1441:52 mysqld My server almost went dead... until I rebooted MySQL.
View Replies!
View Related
Server Load And Mysql
There is a problem with mysql and server load. Some how mysql usage is going to over 100, but server load is not increasing, but it is crashing more often. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5931 mysql 16 0 111m 20m 3888 S 71 2.1 10488:45 /usr/sbin/mysqld --basedir=/ --datadir=/var What could cause the problem? I did mysqladmin pr and only 2 database connections are existing.
View Replies!
View Related
High Mysql Load After Upgrade
it was very fast until mysql upgraded to 5.0.45 it was 4.. i can’t even turn my forum if it is a busy time cos it is so slow i get page not found after a while but when it is quiet it is not too bad... but it was alot more faster with mysql 4 i don't really want to downgrade please give me some ideas to fix this issue ...........
View Replies!
View Related
MySQL High Server Load
MySQL the last few days seems to be constantly the most demanding process in top, which it never was before. As far as I can tell, nothing has substantially changed with regards to traffic to MySQL driven sites on the server. Is there anything that might be wrong with the databases, etc., that might throw MySQL into a tizzy?
View Replies!
View Related
MySql Die With High Load
MySql die with high load problem? My server running: Server Load124.40 (2 cpus)[url] Memory Used70 %[url] Server info: Processor #1 Vendor: GenuineIntel Processor #1 Name: Intel(R) Xeon(R) CPU 3060 @ 2.40GHz Processor #1 speed: 2394.840 MHz Processor #1 cache size: 4096 KB Processor #2 Vendor: GenuineIntel Processor #2 Name: Intel(R) Xeon(R) CPU 3060 @ 2.40GHz Processor #2 speed: 2394.840 MHz Processor #2 cache size: 4096 KB Memory Information Memory: 4148800k/4718592k available (1883k kernel code, 43336k reserved, 761k data, 188k init, 3275648k highmem)
View Replies!
View Related
VISTA: Can't Load Mysql 5.0.27 On PHP 5.2.0
i'm using Vista RTM, and so then my PHP module can load mysql 5.0.27. Apache version: 2.0.55 ( ok ) PHP version: 5.2.0 ( unzip package - ok) MySQL version: 5.0.27 ( connection is ok only with cmd line ) so, what's the problem. i tried with this solution: [url] but it's take no effect. what's the step i have been lost?
View Replies!
View Related
HIGH LOAD Because Of MySQL. [merged]
my server Intel(R) Xeon(R) CPU E5310 1g when i use a software update my site.maybe the sofe use mysql and httpd much. the load of the server ofen goes high.i can only restart httped or mysql . some info about the server when load is high. [root@server ~]# free total used free shared buffers cached Mem: 1033676 1018980 14696 0 4352 428756 -/+ buffers/cache: 585872 447804 Swap: 2040244 132660 1907584 [root@server ~]# ps aux | grep mysql | wc -l 3 [root@server ~]# ps aux | grep httpd | wc -l 66 [root@server ~]# mysqladmin -u root -p extended-status Enter password: +----------------------------+-----------+ | Variable_name | Value | +----------------------------+-----------+ | Aborted_clients | 2 | | Aborted_connects | 89 | | Binlog_cache_disk_use | 0 | | Binlog_cache_use | 0 | | Bytes_received | 61741575 | | Bytes_sent | 11783074 | | Com_admin_commands | 150 | | Com_alter_db | 0 | | Com_alter_table | 0 | | Com_analyze | 0 | | Com_backup_table | 0 | | Com_begin | 0 | | Com_change_db | 33678 | | Com_change_master | 0 | | Com_check | 0 | | Com_checksum | 0 | | Com_commit | 0 | | Com_create_db | 0 | | Com_create_function | 0 | | Com_create_index | 0 | | Com_create_table | 0 | | Com_dealloc_sql | 0 | | Com_delete | 3327 | | Com_delete_multi | 0 | | Com_do | 0 | | Com_drop_db | 0 | | Com_drop_function | 0 | | Com_drop_index | 0 | | Com_drop_table | 0 | | Com_drop_user | 0 | | Com_execute_sql | 0 | | Com_flush | 0 | | Com_grant | 0 | | Com_ha_close | 0 | | Com_ha_open | 0 | | Com_ha_read | 0 | | Com_help | 0 | | Com_insert | 6939 | | Com_insert_select | 0 | | Com_kill | 0 | | Com_load | 0 | | Com_load_master_data | 0 | | Com_load_master_table | 0 | | Com_lock_tables | 96 | | Com_optimize | 1 | | Com_preload_keys | 0 | | Com_prepare_sql | 0 | | Com_purge | 0 | | Com_purge_before_date | 0 | | Com_rename_table | 0 | | Com_repair | 0 | | Com_replace | 110 | | Com_replace_select | 0 | | Com_reset | 0 | | Com_restore_table | 0 | | Com_revoke | 0 | | Com_revoke_all | 0 | | Com_rollback | 0 | | Com_savepoint | 0 | | Com_select | 122075 | | Com_set_option | 32609 | | Com_show_binlog_events | 0 | | Com_show_binlogs | 0 | | Com_show_charsets | 0 | | Com_show_collations | 0 | | Com_show_column_types | 0 | | Com_show_create_db | 0 |
View Replies!
View Related
Where Do I Start To Improve Mysql Load
I have a cheap managed server and support is of little help BUT they will do what I tell them, where should I tell them to start to fix high mysql load? The server currently has a large IPB forum, a large 4images gallery, and a couple popular Wordpress blogs, and this combo keeps taking mysql down. What can I do server side to help this? And what shouldn't I do?
View Replies!
View Related
High Load And Mysql Errors
My server very slow and the is very loaded. How can I fix this problem? My server specialities and loaded softwares which are below. And sometimes there is "mysql connect failed", "Lost connection to MySQL server during query" errors. Thanks for kinds... --- Speed: 100Mbs LOAD: Load avarage : 5-30 + Cpu usage: %30-95 + Ram usage: %70-95 + SYSTEM INFO: 2gb ram, P4 3200 cpu, 2x250 GB SATAII hdd, Plesk 8.1.1, centos 4.5 os, apache 2.0.59, php 4.4.7, mysql 4.1.21(client), mysql 5.0.41(server), zend optimizer, kernel 2.6.19.1.SM #5 SMP, mod_evasive, plesk firewall, qscanq+clamav, spamassain and system up-to-date. SOFTWARE: phpbb 2.0.22 4images 1.7.4 joomla 1.0.12 ONLINE USER: 100-500 user online on 2 website How to optimization? I installed tuning-primer.sh but I can’t understand this code: I don’t know. How to set values, example? NOTE: Red value ------------------------- [root@lavinya bin]# tuning-primer.sh -- MYSQL PERFORMANCE TUNING PRIMER -- - By: Matthew Montgomery - MySQL Version 5.0.41-log i686 Uptime = 3 days 4 hrs 34 min 17 sec Avg. qps = 92 Total Questions = 25406284 Threads Connected = 1 Server has been running for over 48hrs. It should be safe to follow these recommendations To find out more information on how each of these runtime variables effects performance visit: ............. SLOW QUERIES Current long_query_time = 5 sec. You have 115 out of 25406302 that take longer than 5 sec. to complete The slow query log is enabled. Your long_query_time seems to be fine WORKER THREADS Current thread_cache_size = 8 Current threads_cached = 7 Current threads_per_sec = 0 Historic threads_per_sec = 0 Your thread_cache_size is fine MAX CONNECTIONS Current max_connections = 500 Current threads_connected = 2 Historic max_used_connections = 110 The number of used connections is 22% of the configured maximum. Your max_connections variable seems to be fine. MEMORY USAGE Max Memory Ever Allocated : 835 M Configured Max Per-thread Buffers : 3 G Configured Max Global Buffers : 46 M Configured Max Memory Limit : 3 G Total System Memory : 3.96 G Max memory limit exceeds 85% of total system memory KEY BUFFER Current MyISAM index space = 35 M Current key_buffer_size = 32 M Key cache miss rate is 1 : 73658 Key buffer fill ratio = 34.00 % Your key_buffer_size seems to be too high. Perhaps you can use these resources elsewhere QUERY CACHE Query cache is enabled Current query_cache_size = 4 M Current query_cache_used = 1 M Current query_cach_limit = 1 M Current Query cache fill ratio = 29.83 % MySQL won't cache query results that are larger than query_cache_limit in size SORT OPERATIONS Current sort_buffer_size = 2 M Current record/read_rnd_buffer_size = 1 M Sort buffer seems to be fine JOINS Current join_buffer_size = 1.00 M You have had 14127 queries where a join could not use an index properly You should enable "log-queries-not-using-indexes" Then look for non indexed joins in the slow query log. If you are unable to optimize your queries you may want to increase your join_buffer_size to accommodate larger joins in one pass. Note! This script will still suggest raising the join_buffer_size when ANY joins not using indexes are found. OPEN FILES LIMIT Current open_files_limit = 2500 files The open_files_limit should typically be set to at least 2x-3x that of table_cache if you have heavy MyISAM usage. Your open_files_limit value seems to be fine TABLE CACHE Current table_cache value = 256 tables You have a total of 636 tables You have 256 open tables. Current table_cache hit rate is 1% , while 100% of your table cache is in use You should probably increase your table_cache TEMP TABLES Current max_heap_table_size = 16 M Current tmp_table_size = 32 M Of 2271787 temp tables, 3% were created on disk Effective in-memory tmp_table_size is limited to max_heap_table_size. Created disk tmp tables ratio seems fine TABLE SCANS Current read_buffer_size = 1 M Current table scan ratio = 28 : 1 read_buffer_size seems to be fine TABLE LOCKING Current Lock Wait ratio =1 : 112 You may benefit from selective use of InnoDB. If you have long running SELECT's against MyISAM tables and perform frequent updates consider setting 'low_priority_updates=1' If you have a high concurrentcy of inserts on Dynamic row-length tables consider setting 'concurrent_insert=2'. [root@lavinya bin]# ---------------------- if your reply me message I will be happy
View Replies!
View Related
High Server Load ... With Mysql Optimization
So the site got featured on [url]and now the server is drowning... The Coppermine Gallery usually hovers around 30~50 users daily and now, 1800, and im at a lost as how I should configure mysql to take on such a load. right now it takes about 10 secs or more to load a page and sometimes it would time out. Because it si coppermine, all pages are dynamic and can't be cached -_-" Here's the my.cnf right now after i played around with the numbers server spec Opteron 170 (2ghz) 2gb ram 250 7200rpm [mysqld] set-variable=local-infile=0 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 #skip-networking back_log = 75 key_buffer = 256M 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 = 7200 max_connections = 600 connect_timeout = 100 wait_timeout = 12000 tmp_table_size = 100M max_heap_table_size = 64M max_allowed_packet = 15M max_connect_errors = 9999999 read_rnd_buffer_size = 524288 bulk_insert_buffer_size = 8M query_cache_limit = 40M query_cache_size = 150M query_cache_type = 1 query_prealloc_size = 65536 tmp_table_size = 64M query_alloc_block_size = 131072 default-storage-engine = MyISAM [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid nice = -5 open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16M httpd.conf Timeout 20 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # ServerLimit: maximum value for MaxClients for the lifetime of the server # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 200 MaxClients 200 MaxRequestsPerChild 1500 </IfModule> # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
View Replies!
View Related
Apache: Load Vhosts From MySQL Database
if it was possible to load vhosts from a MySQL database and the only solutions i found didnt work for me. Im running Apache on Windows. Has anyone seen anything that would work with Windows? The only alternative i can think of is to read the database info using PHP and output it to a vhosts config file. I dont want to do that though because it means restarting the server to load the new config and i hear that a lot of vhosts slows the server down
View Replies!
View Related
How To Check Which Mysql Databases Cause Server Load
How can i check (using SSH) which databases/users cause server load to mysql ? I've tried "mysqladmin proc stat" but it shows just the current. How can i get stats of the last 24 hours for example ? I've also seen slow connections stats. What is the command to check more detailed report of the slow connections; which databases caused it etc', in the last 24 hours for example as well.
View Replies!
View Related
Server Very Slow, But Server Load Is Near Zero
I'm having trouble with a new server. It's a dedicated (Q6600 + 8 gig RAM + 4 x 250gig in Raid 10 + Centos 5.3 64bit + Cpanel). The machine is way overpowered for the traffic going to the site. The server load is rarely above .10 and often closer to zero. I'm getting periodic extreme slow downs. Web pages will take 30-60 seconds to load (or longer). SSH will timeout, or if I can connect, it will take seconds (sometimes 10-15 seconds) for key press to register in the SSH terminal. Pop3 times out, etc. This might last for 15 minutes or 3-4 hours. Then, everything will start running like a champ again. Traceroutes to the server during the slow downs haven't shown a problem between the server and where I am testing from (have connected from multiple proxies and remote sites to eliminate my local internet connection). I'm looking for any advice on how to trouble shoot this. Hardware? Software? Configuration issue? It is definitely not a capacity/load issue. There have been no spikes in web traffic. The opposite, this is a very slow time for my site, which is why I moved to a new server in May.
View Replies!
View Related
Mysql High CPU Load - Totally Stumped
Quad Core server, 4GB ram. MySQL runs at all times between 200 - 300% CPU. Server does only 5K unique per day, and runs zen cart. I am at a loss, I have experiece with tracking dowen reasons for this but this one has stumpped me. So I was hoping to get new eyes on this and see if anyone had any ideas. my.cnf [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock #old_passwords=1 skip-locking skip-name-resolve skip-bdb key_buffer = 64M max_allowed_packet = 16M table_cache = 2048 sort_buffer_size = 1M read_buffer_size = 1M read_rnd_buffer_size = 8M myisam_sort_buffer_size = 64M thread_cache_size = 16 thread_concurrency = 8 query_cache_size = 25M query_cache_type = 1 tmp_table_size=64M back_log = 100 max_connect_errors = 10000 join_buffer_size=1M open-files = 20000 interactive_timeout = 300 wait_timeout = 300 max_connections=200 # The following directives should be commented out # but included as they are things that get added # very frequently on tickets. These are more in a # need-this-feature basis. # The below 2 cannot be set on the fly. If the customer already has # InnoDB tables and wants to change the size of the InnoDB tablespace # and InnoDB logs, then: # 1. Run a full backup with mysqldump # 2. Stop MySQL # 3. Move current ibdata and ib_logfiles out of /var/lib/mysql # 4. Uncomment the below innodb_data_file_path and innodb_log_file_size # 5. Start MySQL (it will recreate new InnoDB files) # 6. Restore data from backup #innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend #innodb_log_file_size = 100M innodb_buffer_pool_size = 64M innodb_additional_mem_pool_size = 8M #log-slow-queries=/var/lib/mysqllogs/slow-log #long_query_time=2 #log-queries-not-using-indexes #log-bin=/var/lib/mysqllogs/bin-log #log-slave-updates #expire_logs_days = 14 server-id = 1 [mysql.server] user=mysql #basedir=/var/lib [mysqld_safe] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid open_files_limit=65536 mysqladmin status Uptime: 1458 Threads: 1 Questions: 366975 Slow queries: 0 Opens: 401 Flush tables: 1 Open tables: 395 Queries per second avg: 251.698 SHOW STATUS; mysql> SHOW STATUS; +-----------------------------------+----------+ | Variable_name | Value | +-----------------------------------+----------+ | Aborted_clients | 0 | | Aborted_connects | 8 | | Binlog_cache_disk_use | 0 | | Binlog_cache_use | 0 | | Bytes_received | 116 | | Bytes_sent | 157 | | Com_admin_commands | 0 | | Com_alter_db | 0 | | Com_alter_table | 0 | | Com_analyze | 0 | | Com_backup_table | 0 | | Com_begin | 0 | | Com_call_procedure | 0 | | Com_change_db | 0 | | Com_change_master | 0 | | Com_check | 0 | | Com_checksum | 0 | | Com_commit | 0 | | Com_create_db | 0 | | Com_create_function | 0 | | Com_create_index | 0 | | Com_create_table | 0 | | Com_create_user | 0 | | Com_dealloc_sql | 0 | | Com_delete | 0 | | Com_delete_multi | 0 | | Com_do | 0 | | Com_drop_db | 0 | | Com_drop_function | 0 | | Com_drop_index | 0 | | Com_drop_table | 0 | | Com_drop_user | 0 | | Com_execute_sql | 0 | | Com_flush | 0 | | Com_grant | 0 | | Com_ha_close | 0 | | Com_ha_open | 0 | | Com_ha_read | 0 | | Com_help | 0 | | Com_insert | 0 | | Com_insert_select | 0 | | Com_kill | 0 | | Com_load | 0 | | Com_load_master_data | 0 | | Com_load_master_table | 0 | | Com_lock_tables | 0 | | Com_optimize | 0 | | Com_preload_keys | 0 | | Com_prepare_sql | 0 | | Com_purge | 0 | | Com_purge_before_date | 0 | | Com_rename_table | 0 | | Com_repair | 0 | | Com_replace | 0 | | Com_replace_select | 0 | | Com_reset | 0 | | Com_restore_table | 0 | | Com_revoke | 0 | | Com_revoke_all | 0 | | Com_rollback | 0 | | Com_savepoint | 0 | | Com_select | 1 | | Com_set_option | 0 | | Com_show_binlog_events | 0 | | Com_show_binlogs | 0 | | Com_show_charsets | 0 | | Com_show_collations | 0 | | Com_show_column_types | 0 | | Com_show_create_db | 0 | | Com_show_create_table | 0 | | Com_show_databases | 0 | | Com_show_errors | 0 | | Com_show_fields | 0 | | Com_show_grants | 0 | | Com_show_innodb_status | 0 | | Com_show_keys | 0 | | Com_show_logs | 0 | | Com_show_master_status | 0 | | Com_show_ndb_status | 0 | | Com_show_new_master | 0 | | Com_show_open_tables | 0 | | Com_show_privileges | 0 | | Com_show_processlist | 0 | | Com_show_slave_hosts | 0 | | Com_show_slave_status | 0 | | Com_show_status | 1 | | Com_show_storage_engines | 0 | | Com_show_tables | 0 | | Com_show_triggers | 0 | | Com_show_variables | 0 | | Com_show_warnings | 0 | | Com_slave_start | 0 | | Com_slave_stop | 0 | | Com_stmt_close | 0 | | Com_stmt_execute | 0 | | Com_stmt_fetch | 0 | | Com_stmt_prepare | 0 | | Com_stmt_reset | 0 | | Com_stmt_send_long_data | 0 | | Com_truncate | 0 | | Com_unlock_tables | 0 | | Com_update | 0 | | Com_update_multi | 0 | | Com_xa_commit | 0 | | Com_xa_end | 0 | | Com_xa_prepare | 0 | | Com_xa_recover | 0 | | Com_xa_rollback | 0 | | Com_xa_start | 0 | | Compression | OFF | | Connections | 1569 | | Created_tmp_disk_tables | 0 | | Created_tmp_files | 5 | | Created_tmp_tables | 1 | | Delayed_errors | 0 | | Delayed_insert_threads | 0 | | Delayed_writes | 0 | | Flush_commands | 1 | | Handler_commit | 0 | | Handler_delete | 0 | | Handler_discover | 0 | | Handler_prepare | 0 | | Handler_read_first | 0 | | Handler_read_key | 0 | | Handler_read_next | 0 | | Handler_read_prev | 0 | | Handler_read_rnd | 0 | | Handler_read_rnd_next | 0 | | Handler_rollback | 0 | | Handler_savepoint | 0 | | Handler_savepoint_rollback | 0 | | Handler_update | 0 | | Handler_write | 132 | | Innodb_buffer_pool_pages_data | 307 | | Innodb_buffer_pool_pages_dirty | 0 | | Innodb_buffer_pool_pages_flushed | 1 | | Innodb_buffer_pool_pages_free | 3787 | | Innodb_buffer_pool_pages_latched | 0 | | Innodb_buffer_pool_pages_misc | 2 | | Innodb_buffer_pool_pages_total | 4096 | | Innodb_buffer_pool_read_ahead_rnd | 2 | | Innodb_buffer_pool_read_ahead_seq | 0 | | Innodb_buffer_pool_read_requests | 48197 | | Innodb_buffer_pool_reads | 205 | | Innodb_buffer_pool_wait_free | 0 | | Innodb_buffer_pool_write_requests | 1 | | Innodb_data_fsyncs | 7 | | Innodb_data_pending_fsyncs | 0 | | Innodb_data_pending_reads | 0 | | Innodb_data_pending_writes | 0 | | Innodb_data_read | 7213056 | | Innodb_data_reads | 221 | | Innodb_data_writes | 7 | | Innodb_data_written | 35328 | | Innodb_dblwr_pages_written | 1 | | Innodb_dblwr_writes | 1 | | Innodb_log_waits | 0 | | Innodb_log_write_requests | 0 | | Innodb_log_writes | 2 | | Innodb_os_log_fsyncs | 5 | | Innodb_os_log_pending_fsyncs | 0 | | Innodb_os_log_pending_writes | 0 | | Innodb_os_log_written | 1024 | | Innodb_page_size | 16384 | | Innodb_pages_created | 0 | | Innodb_pages_read | 307 | | Innodb_pages_written | 1 | | Innodb_row_lock_current_waits | 0 | | Innodb_row_lock_time | 0 | | Innodb_row_lock_time_avg | 0 | | Innodb_row_lock_time_max | 0 | | Innodb_row_lock_waits | 0 | | Innodb_rows_deleted | 0 | | Innodb_rows_inserted | 0 | | Innodb_rows_read | 165 | | Innodb_rows_updated | 0 | | Key_blocks_not_flushed | 0 | | Key_blocks_unused | 52512 | | Key_blocks_used | 1074 | | Key_read_requests | 24616475 | | Key_reads | 1170 | | Key_write_requests | 11301 | | Key_writes | 4948 | | Last_query_cost | 0.000000 | | Max_used_connections | 13 | | Not_flushed_delayed_rows | 0 | | Open_files | 495 | | Open_streams | 0 | | Open_tables | 395 | | Opened_tables | 0 | | Prepared_stmt_count | 0 | | Qcache_free_blocks | 440 | | Qcache_free_memory | 2620672 | | Qcache_hits | 293141 | | Qcache_inserts | 69381 | | Qcache_lowmem_prunes | 60094 | | Qcache_not_cached | 20918 | | Qcache_queries_in_cache | 1338 | | Qcache_total_blocks | 5755 | | Questions | 394590 | | Rpl_status | NULL | | Select_full_join | 0 | | Select_full_range_join | 0 | | Select_range | 0 | | Select_range_check | 0 | | Select_scan | 1 | | Slave_open_temp_tables | 0 | | Slave_retried_transactions | 0 | | Slave_running | OFF | | Slow_launch_threads | 0 | | Slow_queries | 0 | | Sort_merge_passes | 0 | | Sort_range | 0 | | Sort_rows | 0 | | Sort_scan | 0 | | Ssl_accept_renegotiates | 0 | | Ssl_accepts | 0 | | Ssl_callback_cache_hits | 0 | | Ssl_cipher | | | Ssl_cipher_list | | | Ssl_client_connects | 0 | | Ssl_connect_renegotiates | 0 | | Ssl_ctx_verify_depth | 0 | | Ssl_ctx_verify_mode | 0 | | Ssl_default_timeout | 0 | | Ssl_finished_accepts | 0 | | Ssl_finished_connects | 0 | | Ssl_session_cache_hits | 0 | | Ssl_session_cache_misses | 0 | | Ssl_session_cache_mode | NONE | | Ssl_session_cache_overflows | 0 | | Ssl_session_cache_size | 0 | | Ssl_session_cache_timeouts | 0 | | Ssl_sessions_reused | 0 | | Ssl_used_session_cache_entries | 0 | | Ssl_verify_depth | 0 | | Ssl_verify_mode | 0 | | Ssl_version | | | Table_locks_immediate | 173929 | | Table_locks_waited | 3 | | Tc_log_max_pages_used | 0 | | Tc_log_page_size | 0 | | Tc_log_page_waits | 0 | | Threads_cached | 11 | | Threads_connected | 2 | | Threads_created | 13 | | Threads_running | 2 | | Uptime | 1540 | | Uptime_since_flush_status | 1540 | +-----------------------------------+----------+
View Replies!
View Related
WHM Load Averages Display And MySQL Stats
I have one server where cPanel WHM displays the load averages at the top right, but another server where it doesn't. How do I enable this? And what do the three different numbers shown (e.g. "Load Averages: 0.99 1.17 1.43") stand for? way to get MySQL stats such as queries per day and things like that?
View Replies!
View Related
Load Balanced Servers Or Seperate Apache/MySQL
I currently have one server a Dual Xeon 5130 2GHZ (woodcrest) 2GB Ram. Running cPanel/WHM Now I run a website that is VERY PHP & MySQL Intensive and MySQL is ALWAYS the top of the process list, hogging a ton of usage. It's getting to the point where the site is needed a second server and I know there's a few options; but I'm not sure which one would be the best. They way I see it my two options are getting a 2nd server and setting up the two to do load balancing, or getting a 2nd server and setting one up for just Apache and the Other for MySQL and using the 2nd as a remote SQL server. If I do the Apache on a seperate server would I need such a powerful server? And if I also would want to upgrade this server along with getting a 2nd server would I be better of upgrading to 4GB of RAM or upgrading the processors?
View Replies!
View Related
Mysql Deleted Several Tables Under High Server Load
we have mysql 5 setup and this morning at around 10:07 tables started disappearing as they were being accessed by different clients. Databases that had 40 tables now had 30, etc. Only the tables that were attempted to be accessed were gone. This is the first time something like this has happened. The following output was given: This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=8388600 read_buffer_size=131072 max_used_connections=208 max_connections=500 threads_connected=156 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 1096188 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd=0xaf82930 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... Cannot determine thread, fp=0xb143932c, backtrace may not be correct. Stack range sanity check OK, backtrace follows: 0x816b1a0 0xaf1898 0x20 0x81ac49d 0x8182914 0x8189010 0x8189df1 0x818a738 0x818ae5c 0xaeb371 0x9c4ffe New value of fp=(nil) failed sanity check, terminating stack trace! Please read [url]and follow instructions on how to resolve the stack trace. Resolved stack trace is much more helpful in diagnosing the problem, so please do resolve it Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0xaf36620 = SELECT * FROM `sessions` WHERE `PHPSESSID` = '5e6775cd3c6f187d8c575127ba73be19' thd->thread_id=113407 The manual page at [url]contains information that should help you find out what is causing the crash. mysqld: my_new.cc:51: int __cxa_pure_virtual(): Assertion `"Pure virtual method called." == "Aborted"' failed. Number of processes running now: 0 070427 10:07:49 mysqld restarted 070427 10:07:50 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... 070427 10:07:53 InnoDB: Starting log scan based on checkpoint at InnoDB: log sequence number 0 227822203. InnoDB: Doing recovery: scanned up to log sequence number 0 227822203 070427 10:07:53 InnoDB: Started; log sequence number 0 227822203 070427 10:07:54 [Note] /usr/sbin/mysqld: ready for connections.
View Replies!
View Related
Load Balancing 2 Web Servers And 2 MySQL Servers
I was wondering if it is possible to cluster 2 web servers and 2 mysql servers with only one server working as load balancer. I am planning to use LVS (ldirectord and heartbeat). Let's say I have 3 IPs allocated to the load balancing server. 111.222.111.222 (Main IP) 111.222.111.223 (Web Load Balancing IP) 111.222.111.224 (MySQL Load Balancing IP) If a connection is made to .223 it would pass the request to one of the web nodes. If a connection is made to .224 it would pass the request to one of the MySQL nodes. Is it possible to do this? If not, can I run, for example, nginx on 223 IP address to provide forward proxy? (Then it would not be able to HA but the main point is to load balance so) Also, what would be the best way to keep the data same on both web servers? This is a web cluster for a very high traffic forum with a lot of uploads every hour so it has to do real time synchronization. I heard that DRDB is only one way and not two way so I'm not going to be able to use this.
View Replies!
View Related
Server High Load/high Mysql Usage
I have a site that is eating up my server resources and need to know what the best solution for this is. I'm thinking of getting another server just for mysql but do not know what specs the server should be to handle the current traffic/database load and have the site run smoothly without slowing down to a snail's pace. An alternative is to get another server just for the videos being served and leave the database and html on the current server. This is where I'm stuck and don't know what route to take with this. My current server stats: Dual Xeon 5130 4GB RAM 250GB 50 Mbit/sec CentOS 3.9 Website traffic stats: 15,000 visitors/day 150,000 pageviews/day Serving videos I've attached screenshots of top and bandwidth usage per day. Hopefully with this information you could tell me if I need another server or if there are any things I can do to the current server to help things move faster.
View Replies!
View Related
Does Cron Timeout?
Simply wondering, does cron timeout? I have heard mixed reports and can't find any good info. Personally i've run a cronjob for up to 6 minutes, but as my best method was sending myself emails through php, its not exactly a highly accurate testing method. On the same note, what would happen if one cronjob is running a php script for over 10 minutes, then another cron job starts on the same script, before the first one has finished?
View Replies!
View Related
|