Page 1 of 2 12 LastLast
Results 1 to 10 of 17
Like Tree1Likes

Thread: APC Breaking Dropdowns

  1. #1
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default APC Breaking Dropdowns

    I have started using APC to speed up Sugar

    I have caching turned on for my Live & Development systems which are on the same server

    I have added a couple of new dropdowns by creating a file custom/Extension/application/Ext/Language/en_us.mapping_dropdown.php

    If I turn off APC caching these dropdowns work properly and are available in editview but turning on caching breaks them

    Any ideas on why this is happening and how to fix it would be much appreciated

    Restarting Apache seems to fix the problem but it has made me very nervous of APC
    Last edited by mikesolomon; 2012-01-23 at 11:23 AM.
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  2. #2
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: APC Breaking Dropdowns

    While I can't say specifically why that's happening in your case -

    I recently read a technical article describing the Sugar's hosted offering, SugarOnDemand, with details on how they have configured and tuned caching on their servers - with performance graphs etc.

    The takeaway from the article - they're serving many, many simultaneous users per server - with absolutely the highest speed - and total accuracy of the page.

    I would recommend taking a look at the article and duplicating SugarOnDemand's caching setup on your server.

  3. #3
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: APC Breaking Dropdowns

    Quote Originally Posted by Chris_C View Post
    While I can't say specifically why that's happening in your case -

    I recently read a technical article describing the Sugar's hosted offering, SugarOnDemand, with details on how they have configured and tuned caching on their servers - with performance graphs etc.

    The takeaway from the article - they're serving many, many simultaneous users per server - with absolutely the highest speed - and total accuracy of the page.

    I would recommend taking a look at the article and duplicating SugarOnDemand's caching setup on your server.
    Chris

    Thanks

    do you know where I can find the article?

    I restarted Apache and got my drop-downs back then they disappeared again
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  4. #4
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: APC Breaking Dropdowns

    Here's a recap of the article - not the actual article itself - but it's the same thing - written by the actual engineer in charge of sugarondemand caching using APC.

    SugarCRM and Caching with APC | ckdake.com

    I saw the original article on an official sugar site - sugarforge, the developers site, or the main Sugarcrm site. Sure it's out there somewhere.

    You can also have a look at these - they seem to cover the same/similar ground - general performance tuning - ought to get you super fast speeds out of sugar:

    » Recommendations for Tuning the Performance of Your Stack | Blog Archive | SugarCRM Knowledge Base

    SugarCRM Developer Blog » Blog Archive » Some Quick Pointers on Improving SugarCRM Performance

    SugarCRM: Performance Tuning - Documentation and Knowledgebase :: Omni Technology Solutions

    Recommendations for Performance Tuning and Resource Planning for CRM Hosted on LAMP/WAMP. - Documentation and Knowledgebase :: Omni Technology Solutions

    Post back and let us know what you end up doing for settings etc, and your speed results.

  5. #5
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: APC Breaking Dropdowns

    Chris Thanks

    The whole thing is beginning to make my head hurt

    in SugarCRM Developer Blog » Blog Archive » Some Quick Pointers on Improving SugarCRM Performance

    it says : Disable explicit caching in the app by setting ‘external_cache_disabled’ => true in config.php.

    but it also says use apc - I'm confused
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  6. #6
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: APC Breaking Dropdowns

    You would just disable it as an A/B test, or reality check.

    The reason being : if it's external cache is enabled, and Sugar is getting errors connecting to the cache daemon, that itself will cause a slowdown. So disable it and see if it speeds up - that tells you sugar is having problems connecting to your cache - your cache may be misconfigured.

  7. #7
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: APC Breaking Dropdowns

    Quote Originally Posted by Chris_C View Post
    You would just disable it as an A/B test, or reality check.

    The reason being : if it's external cache is enabled, and Sugar is getting errors connecting to the cache daemon, that itself will cause a slowdown. So disable it and see if it speeds up - that tells you sugar is having problems connecting to your cache - your cache may be misconfigured.
    I guess that makes sense

    I think I'm going to need to talk to sugar and see what they advise

    APC is definitely speeding up Sugar but I am getting some weirdnesses
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  8. #8
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: APC Breaking Dropdowns

    The issue is that in older versions of Sugar, we didn't properly reset the APC cache keys ( or the cache keys for any used external cache ) when the data was changed. This should work much now in Sugar 6.3 and later.
    John Mertic
    Sugar Community Manager

  9. #9
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: APC Breaking Dropdowns

    Quote Originally Posted by jmertic View Post
    The issue is that in older versions of Sugar, we didn't properly reset the APC cache keys ( or the cache keys for any used external cache ) when the data was changed. This should work much now in Sugar 6.3 and later.
    That makes sense

    is there anyway to make it work with 5.5.1?
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  10. #10
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: APC Breaking Dropdowns

    To get those fixes for 5.5.1 you'd need to pay a sugar dev to backport the changes from 6.3 to 5.5.1.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SOAP set_relationship() breaking down
    By AirCycleSupport in forum Developer Help
    Replies: 2
    Last Post: 2011-07-28, 02:02 AM
  2. Module install without breaking others
    By spyro187 in forum Developer Help
    Replies: 2
    Last Post: 2008-06-16, 07:06 PM
  3. Breaking down calendar into 15/30-minute chunks
    By andydreisch in forum Developer Help
    Replies: 7
    Last Post: 2006-11-17, 11:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •