Jump to:

558 Posts in 3573 Topics by 244 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » Three SS sites on a shared host with 64mb ram?

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 984 Views
  • vam
    Avatar
    Community Member
    7 Posts

    Three SS sites on a shared host with 64mb ram? Link to this post

    Is it possible to run three SS sites on one shared host account? The account has 64 mb ram?

    Is it possible to run three SS sites on one server? The server has 64 mb ram?

    Thanks,
    Shannon

  • SparkGreen
    Avatar
    Community Member
    6 Posts

    Re: Three SS sites on a shared host with 64mb ram? Link to this post

    There should be no problem at all running multiple SS3 installations on a single virtual server with 2GB RAM. Our pre-production server has a couple of dozen sites on separate vhosts and we don't have memory problems.

    However... 64MB sounds tiny. Like 1980's tiny. Did you mean 64GB?

  • vam
    Avatar
    Community Member
    7 Posts

    Re: Three SS sites on a shared host with 64mb ram? Link to this post

    Sorry I should have said the three sites are running in a shared hosting environment under one account. Our account has 64mb of memory assigned to it.

    The three sites are using separate SS installations. Each SS instance has been installed in a sub-directory off the main plugin_html directory. Like

    public_html/mysite1/
    public_html/mysite2/
    public_html/mysite3/

    The three sites are accessed with three separate domains.

    Lately I've seen a couple errors like:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 80 bytes) in /public_html/mysite/SomePage.php on line XXXX

    SS requires 48mb of memory. Silver Stripe Server Requirements.

    Does that mean our account needs 144mb (48 * 3) or should 64mb be sufficient?

  • Tapio (Flo Apps)
    Avatar
    Community Member
    7 Posts

    Re: Three SS sites on a shared host with 64mb ram? Link to this post

    As SparkGreen said, 64mb is very little. Usually something like 1-2 GB RAM (at least) is needed for the server to run smoothly.

    That 48MB (in SS requirements) is the maximum allowed for a single process. That means, if you have just 2 simultaneous users doing memory-intense processes, they'll eat up 96MB of resources and your server will start suffering from those memory problems.

    (Not an expert on this, maybe someone else can elaborate on this.)

  • vam
    Avatar
    Community Member
    7 Posts

    Re: Three SS sites on a shared host with 64mb ram? Link to this post

    The webhosting side of things is pretty new to me as well.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Three SS sites on a shared host with 64mb ram? Link to this post

    SilverStripe out of the box will use around 48MB memory per-process, but when you start adding custom code and doing more complex tasks it will use more than that.

    Note that processes are not per-user, they're used to serve multiple users and requests. Apache usually has a limit depending on the amount of RAM the server has, so if it has around 1GB RAM, and if PHP has a memory limit of 64MB per process, then Apache will have a maximum of around 16 processes (1024/64) (but usually a bit less than this, because the OS has overhead on the available RAM, and also shared hosts have probably got a far more conservative number than a dedicated or virtual machine.)

    64MB in this case is the probably the maximum your host is allowing per-PHP process. This isn't a whole lot, and bigger sites will use something more like 128MB per-process.

  • vam
    Avatar
    Community Member
    7 Posts

    Re: Three SS sites on a shared host with 64mb ram? Link to this post

    Thanks for the clear response Sean.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Three SS sites on a shared host with 64mb ram? Link to this post

    One thing to try is adding this to the top of your mysite/_config.php in each site:

    increase_memory_limit_to('128M');

    It depends on whether the host has locked this down or not, though.

    984 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.