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) »
  • Slow response
Pages: [1]

Author Topic: Slow response  (Read 8177 times)

afatac

  • Guest
Slow response
June 20, 2008, 03:16:37 am
I am testing CiviCRM 2.0.4 with Joomla 1.0.15 and Xampp. All are locally hosted.

I notice that the response of CiviCRM is quite slow as compared to other components in Joomla.

Are there any settings that I need to change?
« Last Edit: June 20, 2008, 10:24:09 am by afatac »

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Slow response
June 20, 2008, 05:34:51 am
How much PHP memory do you have allotted? CiviCRM recommends 64M. In some cases, it can be set even higher.

afatac

  • Guest
Re: Slow response
June 20, 2008, 08:32:45 am
I have allocated 128M in php.ini

One strange thing is that I did not see this memory limit parameter in phpinfo.

The php.ini file I modified is in Apache/bin folder. I hope this is correct.


emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Slow response
June 20, 2008, 09:18:00 am
You mean on your php info page it's not saying 128M ? What is it saying?

afatac

  • Guest
Re: Slow response
June 20, 2008, 10:23:06 am
The parameter memory_limit (I think) is not displayed at all.

Anyway, after searching the forum, I download Firebug for debugging. There are 34 errors but I do not understand what they mean. Below is part of the display. Hope someone can help.


Expected end of value for property but found '0.5'. Error in parsing value for property 'margin'. Declaration dropped. -- joomla.css (line 87)

Error in parsing value for property 'font'. Declaration dropped. -- joomla.css (line 249)

Error in parsing value for property 'cursor'. Declaration dropped. -- civicrm.css (line 810)

Error in parsing value for property 'cursor'. Declaration dropped. -- civicrm.css (line 837)

Error in parsing value for property 'font-weight'. Declaration dropped. -- theme.css (line 13)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Slow response
June 20, 2008, 10:33:12 am
hmm. i doubt your slow civicrm is due to a css error which is what that looks like...

also i don't think i've heard of a phpinfo(); page not showing the memory_limit flag, especially with something like xampp (but i'm no expert for sure). Did you actually do a search on the page for 'memory_limit'?

afatac

  • Guest
Re: Slow response
June 20, 2008, 10:47:58 am
Yes, I did search the phpinfo(); page.

I also did a search in the Internet and found that there are other people encountered that too. It seems that memory_limit will not be shown when there is no limit.

But mine is set to 128M......  ???




emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Slow response
June 20, 2008, 12:23:36 pm
that information sounds kinda contrary :)

as in -- it will not be shown when there is no limit, BUT yours is set to 128M....something isn't right somewhere.

memory is usually the main reason civicrm can be slow, as far as i know. but i'm sure there are other reasons. i am not a joomla person, so i can't help you much on that front.

are there just certain pages of civicrm that are acting really slow? certain pages more than others definitely take longer because of hefty db queries (the civievent main page is usually a good example) with lots of joins.

the other thing i would suggest is checking your Resource URLs (Admin CiviCRM >> Global Settings) and make sure they are correct and using relative (not absolute) paths. that can also slow things down. see http://forum.civicrm.org/index.php/topic,3386.msg15737.html#msg15737 for more explanation on that.

afatac

  • Guest
Re: Slow response
June 20, 2008, 11:31:27 pm
Found the cause of no memory_limit displayed in phpinfo page. The older version of Xampp I used does not "support" that directive. Updated to the latest Xampp version and memory_limit is shown.

128M is set but the response of all CiviCRM pages is still slower than Joomla pages. Generally, there is a time lapse of 5 to 10 seconds.

Regarding the absolute / relative path solution, I have tried. There is no difference. I don't think this is the cause because I am testing on a local host.
« Last Edit: June 21, 2008, 08:59:54 am by afatac »

ConradM

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
Re: Slow response
April 24, 2010, 10:05:40 am
The topic is old but I'm also getting very slow load times (24 secs for an event registration form with 3 fields on a dedicated server) . I took a look with firebug and found out that every civicrm page loads about 1.3Mb ! Most of the load is jquery js files.

Code: [Select]
 <script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/jquery.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/jquery-ui.js"></script>
<style type="text/css">@import url("/administrator/components/com_civicrm/civicrm/packages/jquery/themes/smoothness/jquery-ui.css");</style>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/flexigrid.js"></script>
<style type="text/css">@import url("/administrator/components/com_civicrm/civicrm/packages/jquery/css/flexigrid.css");</style>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.autocomplete.js"></script>
<style type="text/css">@import url("/administrator/components/com_civicrm/civicrm/packages/jquery/css/jquery.autocomplete.css");</style>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/tree_component.min.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/css.js"></script>
<style type="text/css">@import url("/administrator/components/com_civicrm/civicrm/packages/jquery/css/tree_component.css");</style>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.menu.pack.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.dimensions.js"></script>
<style type="text/css">@import url("/administrator/components/com_civicrm/civicrm/packages/jquery/css/menu.css");</style>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.chainedSelects.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.treeview.min.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.bgiframe.pack.js"></script>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.contextMenu.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.tableHeader.js"></script>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/checkboxselect.js"></script>

    <script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.textarearesizer.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.progressbar.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.form.js"></script>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.tokeninput.js"></script>
<style type="text/css">@import url("/administrator/components/com_civicrm/civicrm/packages/jquery/css/token-input-facebook.css");></style>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.timeentry.pack.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.mousewheel.pack.js"></script>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.toolTip.js"></script>

<style type="text/css">@import url("/administrator/components/com_civicrm/civicrm/packages/jquery/css/dataTable.css");></style>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.dataTables.min.js"></script>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.dashboard.js"></script>
<style type="text/css">@import url(/administrator/components/com_civicrm/civicrm/packages/jquery/css/dashboard.css);></style>

<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/packages/jquery/plugins/jquery.FormNavigate.js"></script>

Is there a way to reduce that load time ?
Context : civirm 3.1 / Joomla 1.5.15

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: Slow response
April 24, 2010, 06:54:31 pm

Do you have mod_expires and mod_deflate enabled?

that should reduce the amount of js/css downloaded after the first request

in drupal, we've incorporated drupal_add_css / drupal_add_js to optimize this. Would be great if you can investigate something equivalent for joomla, will definitely help

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

ConradM

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
Re: Slow response
April 25, 2010, 04:58:17 pm
Mod_expires and mod_deflate where enabled but not used.
So I modified my htaccess by adding Expires. I also installed the plugin CssJsCompress (I tried some others like jFinalizer but without success) to merge the js and css files. But there where still some civicrm CSS files that were not being merged so I had to change the way those files are called in civicrm : I edited the jquery.tpl and changed all @imports to link rel. Now I get an A grade in Yslow (91/100) and a nice 88/100 score on Google's Page Speed on a civicrm page.
« Last Edit: April 25, 2010, 05:03:33 pm by ConradM »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Slow response

This forum was archived on 2017-11-26.