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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Server move results in memory problems
Pages: [1]

Author Topic: Server move results in memory problems  (Read 1510 times)

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Server move results in memory problems
February 15, 2010, 05:49:53 am
I've just moved a Civi 3.0.1 install with Drupal 6 from a shared hosting environment, to a VPS setup with 512Mb dedicated RAM.

The problem is that Civi is somewhere hoarding memory, in a matter of seconds, which is completely crashing the server. I know its Civi as I've disabled it in the drupal modules and everything works like a dream.

Is there any reason that a change of server can create a memory leak or memory problems? Its very hard to debug as when I go to Civi, the server almost instantly locks up completely.

Any advice greatly received.

Thanks,

Adam

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: Server move results in memory problems
February 15, 2010, 06:01:01 am

hey adam:

1. u might want to do it on a local labtop to try to debug this issue

2. u might want to upgrade to 3.0.4 to ensure its not an existing issue

3. we've not heard/seen this issue before, so i suspect it might be some hook code getting called recursively (if i had to guess). having xdebug on or checking the query log will give u good clues on whats happening and why

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

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Server move results in memory problems
February 15, 2010, 06:37:45 am
hey lobo, thanks for the quick response as usual!

I did a test on a local copy and its not doing anything :( Also I went back to the shared hosting and checked it there and it ran fine. I've re-run the cPanel restore that we did to get it up there and no joy with that either.

Since it seems server dependent - could it by any chance be caused by settings in php.ini or the mysql settings or is this not possible?

I'll keep searching...

Adam

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Server move results in memory problems
February 15, 2010, 07:29:41 am
Well that was strange...

I just started from scratch, did the usual server move process again, same problem. However this time I disabled the Civi module, restarted the server and then enabled the module. Now everything seems to be working ok.

Very weird. I'll keep an eye on it but all seems to be ok now. Thanks for help!

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Server move results in memory problems
February 16, 2010, 03:53:04 am
So... having gone from shared hosting to a VPS, Civi seems to have gotten slower!!

Its strange as drupal is shifting noticeably faster, then as soon as we use Civi its taking 80-90% of the 512Mb memory. The hosts have suggested that in some ways, shared hosting can provide more resources, however we were getting stumped by very short TimeOut times, and various other issues you get with shared.

Lobo, you've probably been asked this many times before, but for a database of 20,000 contacts, around 25 groups and 10 users - what would you expect to require in terms of server power? This VPS is relatively low-level, so if we need to upgrade I will, or maybe there are some ideal server settings or guidelines around requirements?

We have two other Civi installs running but they are on dedicated servers and this client doesn't have that kind of financing.

Any insight greatly received!

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: Server move results in memory problems
February 16, 2010, 06:21:50 am

hey adam:

1. no idea about server requirements. we've not done any analysis. would be a good community project

2. u might want to disable all other modules that use civi hooks etc. i do think there is something wrong with the codebase in your install. i routinely test 100K+ contacts on my labtop with 64M php memory and it works fine

3. u might want to bump the 512M to something more dependng on your traffic and number of simultaneous apache connections

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Server move results in memory problems

This forum was archived on 2017-11-26.