1

I have a brand new server running CentOS 5 with 16 cores and 20GB of RAM. In case it's important the machine is a Xen para-virutalised guest, but it's the only guest on the server and the server has 32 cores and 48GB of RAM.

When I issue:

service mysqld start

I get a timeout and it says it failed. However, if I wait about 45 seconds longer the server then comes up. There are no errors listed in the mysqld log file.

I've never seen mysqld behave like this before, and it can't be that it doesn't have enough resources in this case!

Any ideas where I can even begin to debug this since there are no error messages?

Thanks,

Bart.

1 Answer 1

1

Run mysqld from the commandline and strace it.

ps -efL | grep mysql

to see what arguments the init script is passing to mysqld.

Then:

service mysqld stop

Then:

strace -o /tmp/mysqld.out /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock

In another console:

tail -f /tmp/mysqld.out

Cheers

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .