Announcement

Collapse
No announcement yet.

Do you use gZip? What performance advantage?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Do you use gZip? What performance advantage?

    Hello,

    I've enabled gZip on the vBulletin admin options, with compression of 9, but have noticed no difference - my homepage file size (http://www.servicepals.com/forums/index.php) stayed the same - 91k - which is rather large.

    What else should I be doing? I'm running Win2k / IIS5 / PHP4

    Please help!!

    Cheers,

    Ross

  • #2
    gzip should not be set any higher than 1 otherwise you use up server resources with little additional benefit..
    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
    :: Nginx SPDY SSL - World Flags Demo [video results]
    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

    Comment


    • #3
      Hi Eva,

      I've set the level to 1 now, but there's still no difference. Have gZip enabled in vBulletin, have it set to 1 - now what? Should my pages be smaller? By what percentage? The homepage was around 91k, and it's now 95k (although the increase could be due to a larger banner I suspect. Either way, it doesn't make a difference.

      What am I missing?

      Ross

      Comment


      • #4
        you don't have zlib compiled in PHP (for linux) not sure if it's the same with Windows..

        actually read http://vbulletin.com/forum/showthrea...threadid=39181
        :: Always Back Up Forum Database + Attachments BEFORE upgrading !
        :: Nginx SPDY SSL - World Flags Demo [video results]
        :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

        Comment


        • #5
          PHP4 for Windows come with bundled zlib, it's just a matter of uncommenting the appropriate entry in php.ini.
          Toddler from Hell

          Comment


          • #6
            Hi Fusion,

            Yup, think I've found it in php.ini. Is currently :

            ; Transparent output compression using the zlib library
            ; Valid values for this option are 'off', 'on', or a specific buffer size
            ; to be used for compression (default is 4KB)
            zlib.output_compression = Off

            Have changed that to "= on" but doesn't seem to make much difference - file size still the same. Shall try rebotting now,

            Cheers,

            Ross

            Comment


            • #7
              There is also an entry at the lower half of the file under Windows-extensions. Uncomment the line ;extension=php_zlib.dll. Only then will zlib-compression actually be used. No reboot required, it's used the next time PHP is used. See phpinfo() to see that it is actually loaded, you'll see a new zlib-section. If zlib doesn't help you, there's always the ZendOptimizer aswell.
              Last edited by Fusion; Sat 23 Feb '02, 8:40am.
              Toddler from Hell

              Comment


              • #8
                How exactly are you checking the size of your pages?

                The way compressed pages are served is this:

                The server (vBulletin in this case) generates the page.
                The server checks to see if your browser supports compression.

                If your broswer supports compression then
                The server compresses the generated page.
                The server tells your browser that it's going to send compressed page

                The server sends the page.
                The web browser decompresses the page and displays it to you.

                The end result is that the page is the same size as it is on the server. However it took less time to transmit it and used less bandwidth because it was compressed.

                Comment


                • #9
                  As to the compression level. I found that compression level up to 7 still provides significant compression savings. Level 8 and 9 still provide savings but not anything significant.

                  Comment


                  • #10
                    Anything above 1 provides the same or very similar benefits as level 1 while increasing the server load (in some cases dramatically) which is why you should not set it above 1.

                    Comment


                    • #11
                      big advantage but i always had mine set to 8, i should set it to 1?
                      MCSE, MVP, CCIE
                      Microsoft Beta Team

                      Comment


                      • #12
                        Yes.

                        Comment


                        • #13
                          ARGH!! Help!!

                          Hi Fusion,

                          Please help!! Have uncommented that line, and now getting this message pop up on my server when someone tries to go to a PHP page :

                          Unable to laod dynamic library "php_zlib.dll"

                          Where can I get the DLL from?!?!?

                          Panic panic panic!!!!

                          Comment


                          • #14
                            Rawnet, check your php.ini. The following directive has to be properly set for extensions to work.
                            Code:
                            ; Directory in which the loadable extensions (modules) reside.
                            extension_dir = c:/php/extensions
                            In short, if this directive is set to ./ you need to copy the dlls you need to the same dir as PHP.EXE resides in. Personally I suggest you use a setting as described above, assuming your PHP-installation went into c:\php.
                            Last edited by Fusion; Sat 23 Feb '02, 11:31am.
                            Toddler from Hell

                            Comment


                            • #15
                              Hi Fusion,

                              Thanks for that - have downloaded the DLL as wasn't included (can be found within the ZIP at http://www.php.net/do_download.php?d....1.1-Win32.zip for anyone who's interested in future), and set up the directory as stated.

                              But when I activate it, I see lots of gibberesh on the frontend, along the lines of :

                              ‹xÍYisÚHþlWù?ôjjc»Jœ|e–`|ìã’LöKª h,©•–&Sûß÷y»ÈŽÝšu¹¬>ßûl7gIà¿ÙÛmÎã»ÓüK¡ÀBÉ\îΣU¡bV(è½@$œÍ’$*ˆÏ©7w¬;


                              UM - HEEEEEELP!!! What am I missing? Is there anything else I need to activate?

                              Thanks so much for the continued help guys,

                              Cheers for now,

                              Ross

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X