1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Should I install Zend Sever CE instead of Apache?

Discussion in 'Server Configuration and Hosting' started by kingston, May 20, 2011.

  1. kingston

    kingston Well-Known Member

    I am just starting to look into working with Zend for a project, and it seems as if maybe I will get some performance enhancements if I install Zend Server CE on my host and run Xenforo off that instead of Apache?

  2. Luke F

    Luke F Well-Known Member

    If you're looking for performance improvements, install nginx+php-fpm
  3. kingston

    kingston Well-Known Member

    I have a huge problem with my server under heavy load. Is that any different than apc?
  4. ManagerJosh

    ManagerJosh Well-Known Member

    We're using Litespeed over here

  5. Shamil

    Shamil Well-Known Member

    I use LiteSpeed, Zend Server wasn't very good, unless you got the standard edition.
  6. Luke F

    Luke F Well-Known Member

    All those problems will disappear if you completely replace apache with nginx and php-fpm.

    Assuming MySQL can keep up of course.
  7. kingston

    kingston Well-Known Member

    Differences between lightspeed and nginx?

    Is there something I should use instead of MySQL?
  8. Luke F

    Luke F Well-Known Member

    Litespeed costs whereas nginx is free

    There are alternatives (percona, mariadb, etc.), but start by configuring what you have correctly if it's even an issue.
  9. kingston

    kingston Well-Known Member

    I think MySQL is fine. It is the webserver is my guess. I will try with nginx
    Darkimmortal likes this.
  10. ragtek

    ragtek Guest

    1. check & analyse your server and try to find the bottleneck.
    In 70% of the cases where people talk about performance problems, they have a vps without knowing how to use it..... :p
    They don't know how to optimize the network,apache, mysql,etc...

    My 0.02$
  11. kingston

    kingston Well-Known Member

    I have been trying for months but I can't figure out what the bottleneck exactly is. I have my suspicions. There are only 5 times a year when our traffic gets that high (it increases 30 fold for about 6 hours). I can get to the server itself ok and there is no problem (so I don't believe we are running out of bandwidth). I am able to make changes in the admin page decently fast (you can tell there is a bit of slowdown, but not as bad). The actual pages themselves can take 10-15 seconds to load. I have tried APC, mod_pagespeed, increasing memory, decreasing allowed connections (and increasing). I just added a second CPU to the machine, so it got a bit better, but brute forcing through a bottleneck doesnt seem smart. PHP, the webserver, or MySQL are the possible bottlenecks I am guessing (the bandwidth is huge and the machine has 4 gig of RAM and now 2 CPU's).

    Any advice you can give will be welcome. I am not against digging and looking, but I have no idea what I am looking for.
  12. Luke F

    Luke F Well-Known Member

    Pretty much this, but using Apache on a VPS (or any server for that matter) is shooting yourself in the foot
  13. CyclingTribe

    CyclingTribe Well-Known Member

    Disable ALL mods too. I had a mod that was adding upto 2 seconds to the index page load time!!

    Also, work on only one element to optimise it, then move to the next one. It may take months (it did me) but the effort is worth it. I worked through MySQL, PHP, Apache2 and shaved five seconds off the average page load time.

    Have you also looked at "ExpiresActive" for Apache? You can set specific page elements to be cached for longer on your visitors browsers, so images are loaded once then don't expire again for say 1 week or 30 days, which not only saves you bandwidth (because you don't have to constantly re-serve the file) but speeds up page loading too because it is loaded locally from the users browser cache.

    There are lots of similar tips and tricks you can pick up if you dig around - and I wrote about some of the changes I made to improve the speed of my IPB forums here which may be of help.

    There's also another thread discussing various things you can optimise, here.

    You could also serve static content from a cookieless domain, so that images/css/etc. can be loaded simultaneously with other content (like creating two data streams [that's very over simplified but you get the idea]).

    Good luck with it, whichever platform you end up on. But just change a few things at a time and don't rush it. (y)

    Shaun :D
  14. ragtek

    ragtek Guest

    I would let them enabled and check the query time in debugmod^^
    So it's IMHO much easier to find the mods causing the problems
  15. kingston

    kingston Well-Known Member

    I have tried disabling all of them during our busy periods. It works better for a period, but still slows down.
  16. a legacy reborn

    a legacy reborn Well-Known Member

    You should check into optimizing Apache...it can be just as effective(if not more) than LiteSpeed if optimized correctly.
    kingston likes this.
  17. CyclingTribe

    CyclingTribe Well-Known Member

    Have a look at those threads I pointed you to - there's some good optimisation advice in there. :)

    [Question for XF mods: Would it be okay to turn this into a server optimisation thread (posting ini/config files etc.)?]

    Shaun :D
    kingston likes this.
  18. User

    User Well-Known Member

    I couldn't agree more. I moved from a managed VPS to an unmanaged one (on linode) and while I now only pay 1/3 of what I was paying before the fact that it is unmanaged really starts to bug me a bit. There really was a lot of value in me being able to just call up, get Level 3 North American based support 24/7 and say "hey, this doesn't work right, what's up?" and they would fix it or optimize it.

    Moses on here suggested vpsbible.com as a resource to learn about how to manage VPS installs effectively. It does indeed look like a very valuable resource. However, at the end of the day time is one's most precious asset and the savings I achieved by going to unmanaged may not actually be worth it as I am burning way too much time working it myself. I may go back to my old host.
  19. kingston

    kingston Well-Known Member

    So I finally got php-fpm, nginx, and apc running. I have a couple questions.

    What should my keepalive timeout be? 0?
    APC memory size?
    Max SQL connections?
    Max memory size for php?

    I have 4 gig and 2 core duo processors. Should my working processes be higher than 4?
  20. CyclingTribe

    CyclingTribe Well-Known Member

    Try these and see how you get on:

    Keepalive 1-3 seconds.
    APC try 512MB
    Max SQL connections - I have this set to 300, but use tuning-primer.sh to get the figure for your max. connections to date and see what that is. If it's higher go for 500.
    PHP memory_limit = 128M (for my setup anyway).

    Shaun :D

Share This Page