About php performmance when the concurrent connecttion over

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
coolesting
Forum Newbie
Posts: 13
Joined: Thu Sep 02, 2010 12:36 am

About php performmance when the concurrent connecttion over

Post by coolesting »

Hi, everybody,

as we know, the php loads every module when it receive a http requirement from client,
so, the php performance gets a problem when the website will overs thousand of concurrent connect number.

About this problem , even through we using the file and memory cache, long-connect of database, static page, etc,
but the dynamic portion of web application still will loads more time the same module in every bootstrap of php.

If you check the web server log, and will find those modules will be loaded every time,
curl.so
gd.so
mysql.so
mysqli.so
pad_mysql.so
....
..

What do you think about this question ?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: About php performmance when the concurrent connecttion o

Post by AbraCadaver »

If you don't need those extensions then comment them out in php.ini. If you only need one of them on a certain page then maybe comment it out and use dl() on that specific page. But I don't think that would be the bulk of your response time.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
User avatar
coolesting
Forum Newbie
Posts: 13
Joined: Thu Sep 02, 2010 12:36 am

Re: About php performmance when the concurrent connecttion o

Post by coolesting »

AbraCadaver wrote:If you don't need those extensions then comment them out in php.ini. If you only need one of them on a certain page then maybe comment it out and use dl() on that specific page. But I don't think that would be the bulk of your response time.
Hi,
BTY, such as the drupal CMS that includes the big file frequently and all of modules of php,
what do think how to optimizer it , but we not alway comment the extension modules in development period.
Post Reply