The my sql seems to take much load in my VPs, configuration file is as follows
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
it's getting to the point where I need to optimize MySQL to better handle a busy server.
These days it seems MySQL is using 30% - 60% CPU almost constantly. But, the good news is that I've got 4 gigs of ram on this box and their seems to be an access of 600mb free constantly throughout the day.
Is it possible to tweak MySQL to a little more RAM dependent and take some of the load off the CPU? It seems MySQL wont go over 300mb of ram at any given time.. I'm already working on optimizing the SQL Querys on the web page itself.
my.cnf (4.1.22-standard):
# Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). # old_passwords=1
Are there any services where an ADMIN can monitor DB usage on system and make some recommendations or even find SQL that is poorly written ...
I have a DUAL harpertown, 10GB RAM, and RAID
I have a typical, gallery, busy VB forum, and video script...
THe site traffic has not increased much but my Memory keeps getting chewed up... i already did some tuning that VBULLLETIN suggested... but the memory still goes... i need a tool or someone to just monitor the server for a day and grab as much diagnostic info as possible..
I suspect that its a single query giving problems cuz i have some custom coded pages...
I don't want to split the DB and HTTP request on diff servers cuz the traffic that i get shouldn't warrant it... for now...
I optimized a mysql table of 2 million records and about 500MB.. it took about 15 minutes.. However, on the same DB now i have another huge table of 88 million records, it size is 2.2 GB and it has about 30 MB to optimize... my questions..
1.- How can I speed up the optimization process so it can take the less possible time? any tweaks to my.cnf?
2.- Should I repair it using phpmyadmin or just from the shell?
3.- Should I stop http traffic during this optimization?
This is a dedicated db mysql server that handles a large VB forum with 5-8 users online average:
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....
Are there some simple things that we can do or perhaps request our server management to do to optimize our server? Not sure where to start or what to ask so would like to learn some more before speaking with the server management company. Often times, you need to know the right questions to ask.
I am having problems with apache going down at least once a day. In Plesk there is a watchdog that monitors the service and then restarts it, but tries 5 times and fails, so apache will still be down and monitoring released. I really don't know what is causing this problem, maybe I could get some help? (Server specs at bottom of post, hope this is all you need)
error_log shows:
Code: [Thu Oct 04 12:05:43 2007] [notice] caught SIGTERM, shutting down [Thu Oct 04 12:05:48 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] Init: SSL server IP/port conflict: default-69-64-36-86:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:271) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:344) [Thu Oct 04 12:05:48 2007] [warn] Init: SSL server IP/port conflict: default-69-64-37-16:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:111) vs. *****:443 (/var/www/vhosts/*****/conf/httpd.include:12) [Thu Oct 04 12:05:48 2007] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Thu Oct 04 12:05:48 2007] [notice] Digest: generating secret for digest authentication ... [Thu Oct 04 12:05:48 2007] [notice] Digest: done [Thu Oct 04 12:05:48 2007] [notice] mod_python: Creating 4 session mutexes based on 512 max processes and 0 max threads. [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:05:48 2007] [warn] Init: SSL server IP/port conflict: default-69-64-36-86:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:271) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:344) [Thu Oct 04 12:05:48 2007] [warn] Init: SSL server IP/port conflict: default-69-64-37-16:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:111) vs. *****:443 (/var/www/vhosts/*****/conf/httpd.include:12) [Thu Oct 04 12:05:48 2007] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Thu Oct 04 12:05:48 2007] [notice] Apache configured -- resuming normal operations [Thu Oct 04 12:06:40 2007] [warn] child process 25195 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25197 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25204 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25207 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25219 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25228 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25232 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25244 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25246 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25257 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25261 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25262 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25265 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25275 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25278 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25281 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25283 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25287 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25351 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25291 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25300 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25302 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25307 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25355 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25365 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25374 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25376 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25377 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25408 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25412 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25423 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25430 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25434 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25437 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25460 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25463 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25474 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25475 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25476 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25565 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25478 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25480 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25481 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25483 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25484 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25485 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25486 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25583 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25489 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25490 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25491 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25493 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25590 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:40 2007] [warn] child process 25591 still did not exit, sending a SIGTERM [Thu Oct 04 12:06:42 2007] [notice] caught SIGTERM, shutting down [Thu Oct 04 12:06:46 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Thu Oct 04 12:06:46 2007] [warn] Init: SSL server IP/port conflict: default-69-64-36-86:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:272) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:345)
i have a Pentium D 820, 2GB Ram at LT where i am hosting a few proxies. Using Centos and Directadmin.
It's realy fast and i am happy with it. The only problem i am facing is that load is jumping up to 60 sometimes but just for a few seconds. Especially when a lot of people are using the proxy and it slows down a bit. That affects only the proxified pages and not a few personal html sites i also host there.
At the moment i am seeing in top that the CPU usage varies from 0,2 to 8, 12, 21 etc but just for a second or two
I have a Win2003 dedicated server (with The Planet) that i use to host a large IPB forum site.
I got it about 3yrs ago and as I was a complete newbie to server management I got Plesk CP installed so that it would take care of all the SQL, PHP and mail installation and setup in one easy go.
I've since found Plesk for Windows to be a complete waste of space.. but it's still on there and has never been upgraded. I don't actually use it as a CP.
Similarly PHP and mySQL have never been upgraded.
Now I've got to the stage where, to upgrade the IPB forum software, I need to upgrade PHP and mySQL.. but looking at the installation, they seem to be embedded in the Plesk installation. They're inside the SWSoft/Plesk/ folders and none of the ini or config files appear to be in the places you'd expect them to be.
My question -
Would these upgrades be simple?? A case of just running an update package?? Or is the fact that PHP/mySQL are embedded in Plesk mean that it'll all mess up?
I'm worried that a failed upgrade will knacker the forum, which is why I've delayed for so long.
I currently have a decent server that runs around 10 websites, but 1 of those sites contributes around 99% of the total traffic. This large site is being moved onto a new server, leaving the remaining 9 sites rattling around on this big (and expensive!) server.
So, I am now looking for a smaller server to handle the other smaller sites. They get minimal traffic - around 5k uniques a day.
I have a dedicated server and I am about to get a few high traffic sites that will be Joomla based and MySQL served. What I am thinking a about is to create another MySQL instance, leave the current websites on the "old" instance and get the new ones onto a separate instance.
I am on PPP 11.0.9 on windows and the current mysql version is 5.1.56 on port 3306 (I can get other ports for other instances).
What I did was the following:
In the Database Servers page, I hit "Add Database Server"
In the next page I add the following: MySQL (from the dropdown) localhost 3307 (leave blank the default check box)
I then add the Administrator's username and passwords and hit OK.
The next page, reports an error message (in between asterisks below): ************************ Error: Test connection to the database server has failed because of network problems:
No connection could be made because the target machine actively refused it. ************************ The primary (eg. current) mysql instance is working fine, it's just I cannot add a second server...
I have a 512mb cPanel VPS and would like to try and save a bit more ram, I have made the below changes to the httpd.conf and have also turned spamd, entropychat, melange, mailman, the only webstats I have is AWStats
Code: MinSpareServers 2 MaxSpareServers 5 StartServers 3 Can anyone recommend any other changes to save some more ram ?
For anyone wanting to know, the VPS is being used to serve my websites
I remember seeing a website/forum where you couldn't post your server stats and httpd.conf settings and experts would give advice on settings you should use.
Does anyone know the url to this site, or site similar to it
Somehow when customers add a new MySQL database they can select a Local MySQL server. It turns out this is the MySQL instance running on the CP server, can I somehow hide this server from the list?
What could I fix by trying to start mysql server, recieve following errors:
plesk interface:
Code: Failed to restart the "mysql" service. Cannot start/stop/restart service: Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql restart Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) and then start(8) utilities, e.g. stop mysql ; start mysql. The restart(8) utility is also available. start: Job failed to start
from the console:
Code: sudo service mysql start start: Job failed to start
Code: mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) output of plesk_11.5.30_reset_instance_data.log:
After the upgrade of our Plesk installation from 9.5x to 11.5.30Everything works ok (sites,sites with databases, Plesk etc)but when I go to Home>Tools & Settings> Backup Manager.I see errors on every daily backup I have on schedule:
The backup Plesk_Daily_Full_Backup_1407060112.tar has completed with warnings. (View the details) Close this message
Error:mysql "myuser_drupal" Unable to define superuser password for mysql server on localhost
Error:mysql "myuser_drupal" Unable to get list of db servers (ErrorCode: 1, STDOUT.
Error:mysql "myuser_wp_eng" Unable to define superuser password for mysql server on localhost
I have four servers with a quad xeon, 4gb ram, and 2x300GB SAS 15K RAID0 harddrives, pushing a total of 1.6gbits. It serves a lot of zip files with an average flesize of 180mb. My question is, how can I optimize lighttpd 1.4.19 to push its max with very low IO-wait. I've looked up some stuff and only found options that deal with lighttpd 1.5 and use Linux-AIO for the backend network. Currently I use writev with 16 workers and an read/write idle timeout of 10s. Logging is off, too.
I am running a SQL test server here that is piping HUGE amounts of data for a test project I am running.
Approximately 30 queries a second - constantly. That's over 2.5M queries a day -- so we are talking big (I think?)
I am currently running this test on a
AMD Phenom 9300, 4GB RAM - SATA 500GB HDD and I am running MySQL 5.0.51a i386 on CentOS
I have programmed a process control for our applications purpose - basically it controls the launching of our SQL intense applications, and stops launching when the Load is greater than 2.5
I have plans to optimize the number of queries (I will build in a cache to some of the applications - and run INSERT statements all together) however I am looking for SQL tweaks that will improve performance. Would running the 64bit version work better?
I have recently upgraded mysql server from 5.0.75 to 5.1.31 on my Ubuntu server 9.04 32 bit. After that when I am running phpmyadmin it is printing a warning :
Your PHP MySQL library version 5.0.75 differs from your MySQL server version 5.1.31.