PHP Classes

multiple process

Recommend this page to a friend!

      PHP Classes blog  >  Making the Web Faster...  >  All threads  >  multiple process  >  (Un) Subscribe thread alerts  
Subject:multiple process
Summary:multiple process
Messages:7
Author:dellzam
Date:2012-05-03 20:32:04
Update:2012-05-09 09:30:18
 

  1. multiple process   Reply   Report abuse  
Picture of dellzam dellzam - 2012-05-03 20:38:17
what i have observed on google chrome was it was opening a new process on each tab or window. is http2 does the same thing? how about memory and processor consumption? i am concerned because it maybe affect the budget of webmasters.

  2. Re: multiple process   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-05-03 20:42:44 - In reply to message 1 from dellzam
That has nothing to do with HTTP protocol. Chrome creates separate processes for each tab, so each page request is not slowed down by requests done in other tabs.

Also, if one process crashes due to some unstable browser extension, it will not affect the processes in other tabs.

On the server side, nothing changes. If separate processes are created to handle different requests, like in Apache with pre-fork mode which most PHP sites use, it will continue to work that way.

As explained in the article, HTTP 2.0/SPDY only affects the transport layer, i.e. the way browsers and servers exchange request data.

  3. Re: multiple process   Reply   Report abuse  
Picture of Libor Pečinka Libor Pečinka - 2012-05-04 03:22:42 - In reply to message 2 from Manuel Lemos
Hello Manuel,

I'd like to just add that your statement about Google Chrome should be updated to

"Also, if one process crashes due to some unstable browser extension, it SHOULD not affect the processes in other tabs." :)

  4. Re: multiple process   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-05-04 03:24:56 - In reply to message 3 from Libor Pečinka
I am not sure what is the difference of meaning between what I said and what you corrected.

  5. Re: multiple process   Reply   Report abuse  
Picture of Lee McK Lee McK - 2012-05-04 05:45:42 - In reply to message 4 from Manuel Lemos
The difference is that 'will not' means there is not a way it could possibly ever effect other tabs. Changing it to 'should not' implies that while it shouldn't ever happen a possibility could exist that remains unknown that could cause one tab to interfere with another.

  6. Re: multiple process   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-05-09 07:54:47 - In reply to message 5 from Lee McK
Right but each tab content is loaded and processed by a separate process. So I do not see how the possibility of different tabs affecting each other may exist.

  7. Re: multiple process   Reply   Report abuse  
Picture of Libor Pečinka Libor Pečinka - 2012-05-09 09:30:18 - In reply to message 6 from Manuel Lemos
Well, it doesn't happen often, but time to time my Chrome browser freezes completely or sometimes two tabs with pages of same domain stops working. That's why I used "should". It was supposed to be a tiny little joke, don't worry :).