Hello All,
I run a vBulletin board on my servers. I recently installed 7.1 RELEASE-amd64.
My Setup is:
Intel Xeon 2xQuad Core 2.33GHz, 2x6 MB cache, 8 GB RAM and 15K SCSI hard disk.
mysql51-server, php5.2.9 and nginx/0.6.35.
Nginx is connected to the php-cgi back end through a unix socket. I used spawn-fcgi from: http://redmine.lighttpd.net/projects/spawn-fcgi/
Now, the forum runs well for some time, and all of the sudden, all the php-cgi spawned process are stuck in sbwait state.
If I restart mysql server, all php-cgi process are back to accept state. Here is where I noticed the problem is not related to the web server or to it's php-cgi backend. If I attach a gdb to one of the frozen php-cgi processes and get a backtrace, I see it is in read() in /lib/libc.so.7.
Attaching a gdb to the mysqld process, I always get the error in libthr.so.7.
I think there is a problem with the mysqld threads, as when I try to /usr/local/etc/rc.d/mysql-server stop, I cant get it to stop, instead, it restarts and I can see it got a new PID. Each time I issue killall -9 mysqld, I get a new mysqld PID and mysqld never dies.
Reading a lot of articles online, I found out a problem with mysql and the freebsd threading libraries. Most of the articles were outdated though, back in 2003 and 2002, but I think mysql and freebsd are still having troubles with each other.
I tried to compile mysql with all possible options, build_static, optimize and use_fast_mutexes but nothing seemed to work.
I have a lot of faith in freebsd, and I'm so depressed with this problem. I know I must be missing something, but I ran out of ideas and my brain is really numb, please help.
Regards.
I run a vBulletin board on my servers. I recently installed 7.1 RELEASE-amd64.
My Setup is:
Intel Xeon 2xQuad Core 2.33GHz, 2x6 MB cache, 8 GB RAM and 15K SCSI hard disk.
mysql51-server, php5.2.9 and nginx/0.6.35.
Nginx is connected to the php-cgi back end through a unix socket. I used spawn-fcgi from: http://redmine.lighttpd.net/projects/spawn-fcgi/
Now, the forum runs well for some time, and all of the sudden, all the php-cgi spawned process are stuck in sbwait state.
If I restart mysql server, all php-cgi process are back to accept state. Here is where I noticed the problem is not related to the web server or to it's php-cgi backend. If I attach a gdb to one of the frozen php-cgi processes and get a backtrace, I see it is in read() in /lib/libc.so.7.
Attaching a gdb to the mysqld process, I always get the error in libthr.so.7.
I think there is a problem with the mysqld threads, as when I try to /usr/local/etc/rc.d/mysql-server stop, I cant get it to stop, instead, it restarts and I can see it got a new PID. Each time I issue killall -9 mysqld, I get a new mysqld PID and mysqld never dies.
Reading a lot of articles online, I found out a problem with mysql and the freebsd threading libraries. Most of the articles were outdated though, back in 2003 and 2002, but I think mysql and freebsd are still having troubles with each other.
I tried to compile mysql with all possible options, build_static, optimize and use_fast_mutexes but nothing seemed to work.
I have a lot of faith in freebsd, and I'm so depressed with this problem. I know I must be missing something, but I ran out of ideas and my brain is really numb, please help.
Regards.