468,117 Members | 1,571 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,117 developers. It's quick & easy.

General performance question

Hello,

I have a page containing 7 iframes. Each document is created through
PHP, 8 in total. I had performance issues which I could solve through
Wincachegrind - now according to it, each of the 8 takes only about
20ms, i.e. the whole page should be loaded in less 0.1 seconds. In
fact, it takes more than 5 seconds to load. The HTML is pretty simple.
I wonder how I can detect the bottleneck reason? Any hints? Is there
any general communication settings, in php.ini or I don't know, e.g.
about parallel connections or so, or things to take into account to
load an iframed page more quickly?

Thanx in advance!
Daniel

*************

Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]

If you wish to email me, please use newsreply at wuwei minus webservices dot de
Jun 2 '08 #1
4 1029
On Apr 17, 12:15 pm, Daniel Loose <gruenwiesl...@web.dewrote:
Hello,

I have a page containing 7 iframes. Each document is created through
PHP, 8 in total. I had performance issues which I could solve through
Wincachegrind - now according to it, each of the 8 takes only about
20ms, i.e. the whole page should be loaded in less 0.1 seconds. In
fact, it takes more than 5 seconds to load. The HTML is pretty simple.
I wonder how I can detect the bottleneck reason? Any hints? Is there
any general communication settings, in php.ini or I don't know, e.g.
about parallel connections or so, or things to take into account to
load an iframed page more quickly?

Thanx in advance!
Daniel

*************

Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]

If you wish to email me, please use newsreply at wuwei minus webservices dot de
Are you using PHP sessions? If so, each page (or iframe) requested
will open the session, lock it, execute, write the session back, then
release the lock. While that data is locked the other pages (iframes)
will wait -- which may be what you're experiencing.
Jun 2 '08 #2

|Are you using PHP sessions? If so, each page (or iframe) requested
|will open the session, lock it, execute, write the session back, then
|release the lock. While that data is locked the other pages (iframes)
|will wait -- which may be what you're experiencing.

oh! yes I do. -- what can I do?? =)

*************

Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]

If you wish to email me, please use newsreply at wuwei minus webservices dot de
Jun 2 '08 #3
*** Daniel Loose escribió/wrote (Thu, 17 Apr 2008 19:27:01 +0200):
oh! yes I do. -- what can I do?? =)
Do those 7 iframes do something that can't be accomplished in the main
page? Do you need session data in all of them?

--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
Jun 2 '08 #4
NC
On Apr 17, 9:15 am, Daniel Loose <gruenwiesl...@web.dewrote:
>
I have a page containing 7 iframes. Each document is created through
PHP, 8 in total. I had performance issues which I could solve through
Wincachegrind - now according to it, each of the 8 takes only about
20ms, i.e. the whole page should be loaded in less 0.1 seconds. In
fact, it takes more than 5 seconds to load. The HTML is pretty simple.
I wonder how I can detect the bottleneck reason? Any hints? Is there
any general communication settings, in php.ini or I don't know, e.g.
about parallel connections or so, or things to take into account to
load an iframed page more quickly?
Not really... The best way to deal with this problem is to get rid of
iframes altogether. When the main page loads, it triggers the loading
of 7 iframes, each of which is a page in its own right. So every time
the main page loads, the server has to process eight HTTP requests.
If each of this pages is database-driven, you also end up with eight
database connections.

Alternatively, if some or all of the iframes are static or not
frequently updated, you could cache them...

Cheers,
NC
Jun 2 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by jimjim | last post: by
14 posts views Thread by 2mc | last post: by
2 posts views Thread by mghale | last post: by
9 posts views Thread by Michael | last post: by
13 posts views Thread by gmccallum | last post: by
6 posts views Thread by Alex | last post: by
7 posts views Thread by Joe Ross | last post: by
13 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.