myuniverso.com
some php pages load faster and some php pages load slower
October 17, 2010 02:10AM
hello everyone,

my server configuration..

1ghz processor
2GB ram
100mbps network connection
m using nginx + php-fpm + mysql
currently hosting 3 sites

guys, my problem is that some of my php script run slower but which
has to work faster and some of script run faster which has to works
slow

http://myuniverso.com/index.php
this page contain 2-3 mysql fetch_array and (4 api call from ad-
networks to show ads) but its taking 30-40 sec to load

http://ad4fun.com/serve/serve.php?pid=1
this page contain 10-12 sqlite fetch, 1 mysql fetch_array, (12 api
call from ad-network) and its take 1 or less second to load.....

what is going good/bad.... guys help me
Maciej Lisiewski
Re: some php pages load faster and some php pages load slower
October 17, 2010 05:20AM
> hello everyone,
>
> my server configuration..
>
> 1ghz processor
> 2GB ram
> 100mbps network connection
> m using nginx + php-fpm + mysql
> currently hosting 3 sites
>
> guys, my problem is that some of my php script run slower but which
> has to work faster and some of script run faster which has to works
> slow
>
> http://myuniverso.com/index.php
> this page contain 2-3 mysql fetch_array and (4 api call from ad-
> networks to show ads) but its taking 30-40 sec to load
>
> http://ad4fun.com/serve/serve.php?pid=1
> this page contain 10-12 sqlite fetch, 1 mysql fetch_array, (12 api
> call from ad-network) and its take 1 or less second to load.....
>
> what is going good/bad.... guys help me
>

It is almost impossible for it to have anything to do with php-fpm.

Profile your app and check what is slowing 1st page down:
http://devzone.zend.com/article/2899

--
Maciej Lisiewski
Jonathan Langevin
Re: some php pages load faster and some php pages load slower
October 17, 2010 10:10PM
Have you benchmarked your script to find where slowdowns are occurring?
It's likely poorly optimized mysql queries.

On Sun, Oct 17, 2010 at 2:04 AM, myuniverso.com <khizarsonu@gmail.com>wrote:

> hello everyone,
>
> my server configuration..
>
> 1ghz processor
> 2GB ram
> 100mbps network connection
> m using nginx + php-fpm + mysql
> currently hosting 3 sites
>
> guys, my problem is that some of my php script run slower but which
> has to work faster and some of script run faster which has to works
> slow
>
> http://myuniverso.com/index.php
> this page contain 2-3 mysql fetch_array and (4 api call from ad-
> networks to show ads) but its taking 30-40 sec to load
>
> http://ad4fun.com/serve/serve.php?pid=1
> this page contain 10-12 sqlite fetch, 1 mysql fetch_array, (12 api
> call from ad-network) and its take 1 or less second to load.....
>
> what is going good/bad.... guys help me
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready