locked
Performance issue of PHP on apache server in WHS RRS feed

  • Question

  • Hello, everybody
    I build a php website on apache server on WHS.
    However, when about 10 current users use the site, the loading time of web page become large.
    From WHS view, do I need to care about something?
    • Moved by Ken WarrenModerator Tuesday, February 17, 2009 4:08 PM development question (Moved from Windows Home Server Software to Windows Home Server Add-Ins and Developer Information)
    Tuesday, February 17, 2009 8:05 AM

All replies

  • Hi,
    usage of any additional programs on the Windows Home Server is unsupported and may even cause Windows Home Server components to break and cause data loss.
    You also did not mention, if the users are attempting to access from inhouse or via the Internet. If the later, the upload bandwidth of your Internet connection may be the limiting factor (which is reduced in many cases to a split of the download bandwidth).
    Last but not least also the hardware may play a role - a weak processor and low memory may effectively reduce the performance.
    Beest greetings from Germany
    Olaf
    • Marked as answer by lance huang Wednesday, February 18, 2009 6:15 AM
    • Unmarked as answer by lance huang Wednesday, February 18, 2009 6:15 AM
    Tuesday, February 17, 2009 8:12 AM
    Moderator
  • Olaf, thx for your reply.

    1.My hardware spec.:
       CPU: Intel Atom CPU 230 1.6Ghz
       Ram: 1GB

    2.CMS engine:
       Joomla 1.5

    3.I use ApacheBench (ab.exe) to test performance in the intranet.

    command: ab -n 10 -c 10 http://ideasvr/kb/
    result:

    1Server Software:        Apache/2.2.11 
    2Server Hostname:        ideasvr 
    3Server Port:            80 
    4 
    5Document Path:          /kb/ 
    6Document Length:        6706 bytes 
    7 
    8Concurrency Level:      10 
    9Time taken for tests:   3.234 seconds 
    10Complete requests:      10 
    11Failed requests:        0 
    12Write errors:           0 
    13Total transferred:      73337 bytes 
    14HTML transferred:       67060 bytes 
    15Requests per second:    3.09 [#/sec] (mean) 
    16Time per request:       3234.375 [ms] (mean) 
    17Time per request:       323.438 [ms] (mean, across all concurrent requests) 
    18Transfer rate:          22.14 [Kbytes/sec] received 
    19 
    20Connection Times (ms) 
    21              min  mean[+/-sd] median   max 
    22Connect:        0    0   0.0      0       0 
    23Processing:  2391 2883 284.3   2797    3234 
    24Waiting:     2391 2880 283.2   2797    3219 
    25Total:       2391 2883 284.3   2797    3234 
    26 
    27Percentage of the requests served within a certain time (ms) 
    28  50%   2797 
    29  66%   3094 
    30  75%   3188 
    31  80%   3203 
    32  90%   3234 
    33  95%   3234 
    34  98%   3234 
    35  99%   3234 
    36 100%   3234 (longest request) 


    • Marked as answer by lance huang Wednesday, February 18, 2009 6:13 AM
    • Unmarked as answer by lance huang Wednesday, February 18, 2009 6:15 AM
    Tuesday, February 17, 2009 8:26 AM
  • Hi,
    the Intel Atom 230 CPU is a slow single core processor, although it supports Hyperthreading (did you enable this in Bios and shows Task Manager 2 separate processors?).
    So the processor may be a limiting factor, especially, if multiple other Add-Ins, services and applications like a virus scanner are sharing the CPU.
    Other than that - where do you store the web content? Ideally this should not be on a disk, which is part of the storage pool, since it can interfer with the WHS functions. And if on such a disk, access should be done only via shared folder.
    I don't dont have a deeper knowledge about Apache as web server, so maybe the community for this has also some more clues about the webserver performance and optimization.
    Best greetings from Germany
    Olaf
    Tuesday, February 17, 2009 10:20 AM
    Moderator