[CentOS] Help, PHP/Mysql connections are so slow.

Mon Jun 9 09:08:25 UTC 2008
Pro Green European <pro_green_european at yahoo.com>

Hi.

> Have you tried other protocols? Is it really only http
> transfers that are slow?

Yes. Ftp works perfectly, and regular http with cgi/perl connections to the same database server works perfectly. Also rendering of standard HTML works as it should. It is only when a scripted site uses PHP/Mysql the connection to the server takes forever.

> Have you tried pinging 100 times and see if you get dropped
> packets?

0% packet loss

> Are there any errors from the netcards showing up in log
> files?

None.

I am really baffeled with this problem. I have no idea what to do next. Have enabled server-status in Apache and when the scripted site is being access the cpu load is around 2.5%.


Regards,
/mysteron


--- On Mon, 6/9/08, Bent Terp <bent at nagstrup.dk> wrote:

> From: Bent Terp <bent at nagstrup.dk>
> Subject: Re: [CentOS] Help, PHP/Mysql connections are so slow.
> To: "CentOS mailing list" <centos at centos.org>
> Date: Monday, June 9, 2008, 10:42 AM
> > communicate with MySQL5. On this server, PHP/Mysql
> connections are dead
> > slow and unresponsive. It takes sometimes up to a
> minute to list tables
> > in phpmyadmin for example.
> 
> Have you tried other protocols? Is it really only http
> transfers that are slow?
> 
> Have you tried pinging 100 times and see if you get dropped
> packets?
> 
> Are there any errors from the netcards showing up in log
> files?
> 
> BR Bent
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos