NYCPHP Meetup

NYPHP.org

[nycphp-talk] Performance testing advice

Cliff Hirsch cliff at pinestream.com
Fri Nov 2 14:16:33 EDT 2007


>> Its almost like the server is sleeping (remember this is a new site and is
>> locked down so its possible that hours may go by between hits). Or maybe
>> there are caches, like APC, that need to be filled up. Or Apache is on a
>> cigarette break. Or DNS is doing lookup using the yellow pages. I don?t even
>> know where to begin to look or what log may hold the key.
> 
> May be your code needs to initiate a DB connection? You could try using
> persistent connections.
> DNS lookups could be it too.

It does initiate a DB connection. Bt thru a socket on the same server.
Shouldn't take that long. No persistent DB connections. I've heard they can
be troublesome.

DNS lookups only took a17 to 300ms, although I just tested this -- not first
hit of the day.





More information about the talk mailing list