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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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
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?
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?
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.)
The webhosting side of things is pretty new to me as well.
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.
Thanks for the clear response Sean.
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.