CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal + Civicrm Ram requirements on a VPS
Pages: [1] 2

Author Topic: Drupal + Civicrm Ram requirements on a VPS  (Read 9977 times)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Drupal + Civicrm Ram requirements on a VPS
January 23, 2010, 07:48:12 pm
We have a light use site.  currently on drupalvaluehosting and performance is excellent.  we are intersted in going to a VPS and wondered if anyone has explored RAM requirements on a VPS.  Is 256 doable?  512?  Some have burstable to 1GB.  Have people used a VPS for Civi? 
thanks,

S.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Drupal + Civicrm Ram requirements on a VPS
January 26, 2010, 06:31:23 am
In general, 64-128 MiB for a Drupal+CiviCRM installation (assuming no other memory-hungry Drupal modules are installed) should be enough, so the safe bet is 128 MiB + whatever your kernel + webserver + PHP stack uses.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Drupal + Civicrm Ram requirements on a VPS
January 26, 2010, 06:52:15 am
I've never used a VPS, but that seems pretty low - is that for the entire LAMP distribution too?   Have you used a VPS before?  It's definitely great news.  vps.net let's you start low and add as you need, so perhaps I'll just give the low end a try and ratchet up. 

Thanks!

S.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal + Civicrm Ram requirements on a VPS
January 26, 2010, 07:44:25 am

the 128M is for your php.ini memory requirement, not your RAM for the VPS. This also assumes not too many other modules installed besides CiviCRM and core drupal modules and Views+CCK. (note that most of us run with 64M memory) and we do try some large dbs periodically

total memory requirements of your VPS depends on what else you run and how much your expected load is.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Drupal + Civicrm Ram requirements on a VPS
January 26, 2010, 07:48:04 am
Got it - That makes sense - but wondering about any real-world examples. I'm sure there are other folks using a VPS solution. At any rate, I'll be happy to share any learnings when we convert, but I'm trying to size it.

selfuntitled

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
Re: Drupal + Civicrm Ram requirements on a VPS
January 26, 2010, 08:29:09 am
I use a vps.net server as my testing server.  I've got 4 drupal installs running on it currently, one with Open Atrium, one with Tattler, one with Drupal 7 and one with Drupal 5 with CiviCRM.  Each site has real cron jobs setup, (not poormanscron) which are using resources regularly.  It all runs on 256Mb of RAM with 400Mhz of processor, it's a little slow, but it's usable.

The big caveat to those numbers - This is a testing server for internal use only - it's not getting any appreciable traffic beyond me and a few colleagues, so I assume, at minimum, the processor needs of real traffic would bump you up one step - to 512Mb RAM and 800Mhz processor pretty quickly. 

-CP

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Drupal + Civicrm Ram requirements on a VPS
January 26, 2010, 08:30:37 am
That is VERY helpful - thanks!  Any other suggestions using VPS?

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Drupal + Civicrm Ram requirements on a VPS
February 05, 2010, 07:58:26 am
I've been really happy with Slicehost over the last 3 years.  Ran a light use joomla/civi site on a 256 Ubuntu slice...
Lead Developer, C3 Design.
Twitter: @FatherShawn

selfuntitled

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
Re: Drupal + Civicrm Ram requirements on a VPS
April 06, 2010, 09:32:12 am
I now have our site (Drupal 6/CiviCRM 2.2) up and running on VPS.net:
I started running us on 1 node - (0.6Ghz 376 RAM) and the site would run, but I we started needing swap memory within the first 12 hrs of regular use. 

Scaling up as needed, we are now living happily with 3 nodes (1.8Ghz 1128MB RAM) at the moment without needing swap.

As far as site traffic here's a snapshot:
50-80 people on the site at any give time, with peaks of 100+ periodically.
Apache: 0.33 and 0.35 requests per second.
MySQL: 2 and 4 connected threads with between 80 and 100 open files.
Processor Load: typically between .2 and .5

RAM: Apache will use whatever RAM you give it for cache so we average 756Mb non-cached at any give point
Swap: Consistently none.
(These stats are thanks to ServerDensity.com - take a look, it's very worth it!)

elifarley

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 6
  • MySQL version: 5.1.5.3
  • PHP version: 5.3.4
Re: Joomla + CiviCRM RAM requirements on a VPS
March 28, 2011, 09:44:28 pm
I've just installed Joomla 1.5.22 and CiviCRM 3.3.6 (with Apache/2.2.17 and PHP/5.2.17) on a CentOS VPS from eApps with 2 GB of RAM.

I was following the instructions at http://forum.civicrm.org/index.php?topic=13286.0 and http://wiki.civicrm.org/confluence/display/CRMDOC33/Moving+an+Existing+Installation+to+a+New+Server+or+Location to migrate CiviCRM data from our previous Drupal installation (on a shared host) to a new Joomla installation (on a VPS instance).

I had to edit /etc/php.ini to give PHP a good amount of memory:
memory_limit = 1200M ;

And when I tried to update the database by following this link:

http://openfarmtech.org/community/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1

an error page appeared after a few moments:
Fatal error: Allowed memory size of 1258291200 bytes exhausted (tried to allocate 106 bytes) in /path/to/joomla/administrator/components/com_civicrm/civicrm/packages/PEAR.php on line 884

According to this thread, 1 GB RAM for the whole server should be enough.

What could be causing CiviCRM to take up all memory I can throw at it and fail in the end?

arielqgold

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 3.3.1, 3.3.5, 3.4.5
  • CMS version: Drupal 6.22
Re: Drupal + Civicrm Ram requirements on a VPS
March 29, 2011, 05:50:54 am
@elifarley

As stated above, you should only need 128MB Memory (maybe 256, but not 1200) limit in your /etc/php.ini
Total RAM available on your VPS is different. You want more than one visitor on your website at a time, right?

Also, maybe you should start a new thread rather than piggybacking on this one?

chiebert

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Drupal + Civicrm Ram requirements on a VPS
April 27, 2011, 09:33:04 am
I'm also interested in estimating how traffic load has an impact on the total RAM requirements for a VPS. I'm trying to work out the best options for an upcoming client. This will be my first Civi project, and potentially the largest-traffic site I'll have launched:

  • a local soccer club with 2000 players (kids through adults)
  • Drupal 7 Organic Groups for teams, referees, etc
  • coaches, referees and parents/players would be hitting the front-end info sections pretty hard leading up to weekend game times and weekday practices to check on field availability and to grab contact info
  • users wouldn't be making changes to the CRM very often, so I expect we'll try to rely on caching as much as possible
  • Drupal 7 + CiviCRM 4

Given the scenario, does anyone think a 1GB VPS would suffice? Less? More?
« Last Edit: April 27, 2011, 09:34:41 am by chiebert »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal + Civicrm Ram requirements on a VPS
April 27, 2011, 08:34:25 pm

There are a few other factors besides memory :) But i do think a small scale VPS should suffice for this

Would be great if you can publish your recipe so that other ASYO / Viking / Soccer leagues around the country can use it :)

Ping us on IRC if you need help. Since i have kids who love soccer, i'd love to see a good open source solution that leagues can use

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Drupal + Civicrm Ram requirements on a VPS
May 02, 2011, 01:34:24 pm
We've been running on a virtual server with 32 MB of memory with version 1.9 since 2007.  Installs of new versions, including the CiviCRM 4.0 seem to work fine.  I'm worried about an upgrade however.

We do have timeout issues past the 30 seconds issue for large imports and also when trying to delete some large items in the CiviMail queue. 

Good to see others experience.

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Drupal + Civicrm Ram requirements on a VPS
May 02, 2011, 02:51:08 pm
The Drupal core Aggregator module caused our site, which has CiviCRM as part of it, to require a VPS to perform the upgrade from D5 to D6. The upgrade to D6 would fail as Drupal cron was not allowed to complete by our hosting provider. Also Civi cron tasks were impossible to run already on D5 on shared hosting as our provider is very tight on Cron tasks and CPU utilization.

So on the VPS with D6 and latest at the time Civi, I ended up having to restrict search engine robots from going through /civicrm/ url's as the spiders alone were consuming about 400MB of memory on the server. In total, our Ubuntu VPS draws right around 512MB or RAM, and before I put that restriction in the typical draw was 900MB. Spiders were going through our "Rolodex" list of organizations our site happens to host. (Not the core purpose of our site, so definitely not deserving of 400MB of RAM!) And that 512MB is for three websites (1 Drupal 6, 1 small Drupal 5, and 1 static HTML) and a minimal installation of GNU Mailman. EMail is hosted on other servers.

I would suggest AVOIDING VPS's powered by Virtuozzo. Our current one is, and there are a number of limitations Virtuozzo imposes. I am looking to move to a Xen powered provider which Xen is able to install Ubuntu directly from the official ISO CD image Ubuntu distributes... no proprietary modifications to the distro. I have heard that VMware is also able to host from the official ISO images, but I have yet to see a provider using a VMware virtualization product.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal + Civicrm Ram requirements on a VPS

This forum was archived on 2017-11-26.