0

I'm builind a Drupal 7 web site using commerce kickstart 2 distribution, the site became very slow, mainly the admin pages.
I read many answers here in stackexchange, and some articles talk about drupal performance, so I did the following steps :

  • disabling some modules :update manager,Internationalization,Localization update,database logging.
  • setting cron running to: never
  • enabling cache pages for anonymous users and enabling cache block
  • enbaling: Aggregate and compress CSS files and aggregate JavaScript files.
  • adding this line to settings.php: ini_set('memory_limit', '512M');

After one day my site back to work normaly, but today it's back slow as first time.

I'm using a shared hosting, so I went so Cpanel>select your php version> I enabled the following extension : apc,memeache,memecached.
I also set memory_limit to 512 (I'm not sure if this settings requires a server restart). Even If all this steps, thi site still very slow and I don't know what I can do.

  • apc and opcache should probably not be turned on at the same time. For PHP < 5.5, use APC. For PHP >= 5.5, use the build in cache instead. xdebug is NOT a performance improvement, it's a debugging tool that could cause severe slowdowns. Other than that the question is to broad, you'll need to work out why it's slow, we can't do that for you as there could be a million reasons. – Letharion Jan 23 '15 at 15:45
  • Letharion, my PHP version is 5.3, myquestion is about is what I should do else disbaling modules? and what I did is help or make site more slow? and if my hosting cause the problem so can request a feature from the hosting support? I hope it's a bit clear, I can edit and improve my question – learner123 Jan 23 '15 at 15:54
  • @Letharion Opcache + APC user cache is quite common - not both opcaches at the same time though. The problem we've got, murad, is that it's almost impossible to guess what might be wrong/slow with your site from here. It really requires someone who knows what they're doing to profile the site and make decisions from there. People can make broad guesses as to how things might be improved, but without access to the bare metal it's almost impossible to give a reliable response – Clive Jan 23 '15 at 16:03
  • 2
    Actually, if you've enabled memcache, but don't run a memcache server, that could potentially break caching entirely, if the memcache module takes over caching and then has nowhere to write it's cached values. So make sure you understand what's going on there. :) – Letharion Jan 23 '15 at 16:47
  • 1
    Yep, what @Letharion said is pretty much my exact point - unless you know what you're doing, don't do it :) – Clive Jan 23 '15 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.