Firstly, here's some evidence of myslqld running out of control on my B3. This was taken from, by my count, more than 80 defunct mysql processes at the time of my observation.
Code: Select all
root@b3:/var/run/mysqld# ps auxww | grep mysql
root 1179 0.0 0.1 1872 760 ? R Feb27 0:44 /bin/sh /usr/bin/mysqld_safe
mysql 26758 20.0 3.0 97528 15768 ? Rl 21:40 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
root 26759 0.0 0.1 1632 552 ? S 21:40 0:00 logger -t mysqld -p daemon.error
root 26760 0.0 0.0 0 0 ? Z 21:40 0:00 [mysqld_safe] <defunct>
root 26762 0.0 0.0 0 0 ? Z 21:40 0:00
...
root 27127 0.0 0.0 0 0 ? Z 21:40 0:00 [mysqld_safe] <defunct>
root 27129 0.0 0.0 0 0 ? Z 21:40 0:00 [mysqld_safe] <defunct>
What preceded this was my attempt to set up on my B3 a testbed mirror Drupal content-managed web site. This entailed building the Mysql tables of the site I was mirroring, the size of the MySQL dump of tables was 761 Megabytes. I tried to build the MySQL database by reading in the Mysql dump of tables (that is, essentially a long series of Mysql "INSERT INTO TABLE ..." statements). The Mysql session that was reading the MySQLdump file froze, so, I terminated it with Control C. When I attempted to restart it I got messages which implied that that the files in /var/lib/mysql/... were too large. I found I could not kill off mysqld or whatever it was that was spawning of that huge number of defunct mysqld processes, so I rebooted my B3 (as I mentioned above).
I would be interested if anyone could offer advice on what to do.
Is it possible that what happened was just a one-off ocurrence of bad luck? Or is a mysqldump of size 761Mb just too large for the B3 or the particular version of Mysql that comes installed on the B3? If the latter, can I replace that version of Mysql with another? If so, how can I do it?
An alternative to running the mirror drupal/mysql server on my B3 is to run it on my desktop Ubuntu Linux system. which I would prefer not to do, but if I have no alternative, I will have to give that a try.