{"id":2379,"date":"2017-02-28T15:15:48","date_gmt":"2017-02-28T20:15:48","guid":{"rendered":"https:\/\/www.migrate2cloud.com\/blog\/?p=2379"},"modified":"2017-03-01T10:42:51","modified_gmt":"2017-03-01T15:42:51","slug":"tweaking-apcu-size","status":"publish","type":"post","link":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/","title":{"rendered":"Tweaking APCu size for Phabricator"},"content":{"rendered":"<p>APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu to use.<\/p>\n<p><b><i>Configuration On Ubuntu System<\/i><\/b><\/p>\n<p>First, we need to install the php7.1 module APCu. \u00a0We do with Usual ubuntu command Like this.<\/p>\n<p style=\"color: blue\">apt-get install php7.1-apcu<\/p>\n<p>&nbsp;<\/p>\n<p>After the successful installation of the module, we need to modify the configuration file which is in most case at location<\/p>\n<p style=\"color: blue\">\u201c\/etc\/php\/7.1\/mods-available\/apcu.ini\u201d<\/p>\n<p>Then we need to Make changes in this file to enabling and tweaking the size of APCu. Here are the changes we made in the config file.<\/p>\n<p style=\"color: blue\">extension=apcu.so<\/p>\n<p style=\"color: blue\">apc.enabled=1<\/p>\n<p style=\"color: blue\">apc.shm_size=64M<\/p>\n<p style=\"color: blue\">apc.ttl=7200<\/p>\n<p style=\"color: blue\">apc.gc_ttl=3600<\/p>\n<p style=\"color: blue\">apc.enable_cli=0<\/p>\n<p>&nbsp;<\/p>\n<p><b><i>apc.shm_size<\/i><\/b><\/p>\n<p>This will allocate 64MB from the RAM to APCu for its caching purposes.<\/p>\n<p><em><b>apc.enabled<\/b><\/em><\/p>\n<p>apc.enable enables it for PHP-fpm and \u00a0apc.enabled can be set to 0 to disable APCu.<\/p>\n<p><em><b>apc.enable_cli<\/b><\/em><\/p>\n<p>Activates it for command line-PHP like cronjobs.<\/p>\n<p><em><b>apc.ttl<\/b><\/em><\/p>\n<p>The number of seconds a cache entry is allowed to idle in a slot in case this cache entry slot is needed by another entry.<\/p>\n<p><em><b>apc.gc_ttl<\/b><\/em><\/p>\n<p>The number of seconds that a cache entry may remain on the garbage-collection list.Set to zero to disable this feature.<\/p>\n<p>&nbsp;<\/p>\n<p>If you need the different type of configuration like apc.user_ttl, apc.filters etc.. you can also add with above settings.<\/p>\n<p>After the completion of the configuration, save the file and make the symlink.<\/p>\n<p style=\"color: blue\">\u201csudo ln -s \/etc\/php\/7.0\/mods-available\/apcu.ini \/etc\/php\/7.0\/fpm\/conf.d\/30-apcu.ini\u201d<\/p>\n<p>Restart php7.1-fpm service<\/p>\n<p>To check the APCu size use this command<\/p>\n<p style=\"color: blue\">\u201cphp -i | grep apc.shm_size\u201d<\/p>\n<p>It will results like this<\/p>\n<p style=\"color: blue\">\u201capc.shm_size =&gt; 64M =&gt; 64M\u201d<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[131],"tags":[],"class_list":["post-2379","post","type-post","status-publish","format-standard","hentry","category-tools"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"DevOps Team\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Migrate to Cloud - we make the clouds rain\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Tweaking APCu size for Phabricator - Migrate to Cloud\" \/>\n\t\t<meta property=\"og:description\" content=\"APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-02-28T20:15:48+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-03-01T15:42:51+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Tweaking APCu size for Phabricator - Migrate to Cloud\" \/>\n\t\t<meta name=\"twitter:description\" content=\"APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#blogposting\",\"name\":\"Tweaking APCu size for Phabricator - Migrate to Cloud\",\"headline\":\"Tweaking APCu size for Phabricator\",\"author\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#organization\"},\"datePublished\":\"2017-02-28T15:15:48-05:00\",\"dateModified\":\"2017-03-01T10:42:51-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#webpage\"},\"articleSection\":\"Tools\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/category\\\/tools\\\/#listItem\",\"name\":\"Tools\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/category\\\/tools\\\/#listItem\",\"position\":2,\"name\":\"Tools\",\"item\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/category\\\/tools\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#listItem\",\"name\":\"Tweaking APCu size for Phabricator\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#listItem\",\"position\":3,\"name\":\"Tweaking APCu size for Phabricator\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/category\\\/tools\\\/#listItem\",\"name\":\"Tools\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#organization\",\"name\":\"Migrate to Cloud\",\"description\":\"we make the clouds rain\",\"url\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"DevOps Team\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/20b51e018d8f61e1739f60911fcf45cc9d09284569e448583a87f7fd0ac3d9dc?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"DevOps Team\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#webpage\",\"url\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/\",\"name\":\"Tweaking APCu size for Phabricator - Migrate to Cloud\",\"description\":\"APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/tweaking-apcu-size\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2017-02-28T15:15:48-05:00\",\"dateModified\":\"2017-03-01T10:42:51-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/\",\"name\":\"Migrate to Cloud\",\"description\":\"we make the clouds rain\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.migrate2cloud.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Tweaking APCu size for Phabricator - Migrate to Cloud","description":"APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu","canonical_url":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#blogposting","name":"Tweaking APCu size for Phabricator - Migrate to Cloud","headline":"Tweaking APCu size for Phabricator","author":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/#organization"},"datePublished":"2017-02-28T15:15:48-05:00","dateModified":"2017-03-01T10:42:51-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#webpage"},"isPartOf":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#webpage"},"articleSection":"Tools"},{"@type":"BreadcrumbList","@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.migrate2cloud.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/category\/tools\/#listItem","name":"Tools"}},{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/category\/tools\/#listItem","position":2,"name":"Tools","item":"https:\/\/www.migrate2cloud.com\/blog\/category\/tools\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#listItem","name":"Tweaking APCu size for Phabricator"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#listItem","position":3,"name":"Tweaking APCu size for Phabricator","previousItem":{"@type":"ListItem","@id":"https:\/\/www.migrate2cloud.com\/blog\/category\/tools\/#listItem","name":"Tools"}}]},{"@type":"Organization","@id":"https:\/\/www.migrate2cloud.com\/blog\/#organization","name":"Migrate to Cloud","description":"we make the clouds rain","url":"https:\/\/www.migrate2cloud.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.migrate2cloud.com\/blog\/author\/admin\/#author","url":"https:\/\/www.migrate2cloud.com\/blog\/author\/admin\/","name":"DevOps Team","image":{"@type":"ImageObject","@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/20b51e018d8f61e1739f60911fcf45cc9d09284569e448583a87f7fd0ac3d9dc?s=96&d=mm&r=g","width":96,"height":96,"caption":"DevOps Team"}},{"@type":"WebPage","@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#webpage","url":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/","name":"Tweaking APCu size for Phabricator - Migrate to Cloud","description":"APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/#breadcrumblist"},"author":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/author\/admin\/#author"},"datePublished":"2017-02-28T15:15:48-05:00","dateModified":"2017-03-01T10:42:51-05:00"},{"@type":"WebSite","@id":"https:\/\/www.migrate2cloud.com\/blog\/#website","url":"https:\/\/www.migrate2cloud.com\/blog\/","name":"Migrate to Cloud","description":"we make the clouds rain","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.migrate2cloud.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Migrate to Cloud - we make the clouds rain","og:type":"article","og:title":"Tweaking APCu size for Phabricator - Migrate to Cloud","og:description":"APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu","og:url":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/","article:published_time":"2017-02-28T20:15:48+00:00","article:modified_time":"2017-03-01T15:42:51+00:00","twitter:card":"summary_large_image","twitter:title":"Tweaking APCu size for Phabricator - Migrate to Cloud","twitter:description":"APCu is the substitute for the old APC extension. In APC extension it supports both opcode caching and data caching whereas APCu extension supports only data caching. Opcode caching is transparent at a source code level where as data caching is not.The main thing to note is that we need to allocate memory for APCu"},"aioseo_meta_data":{"post_id":"2379","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-12-27 09:33:08","updated":"2026-07-21 15:34:34","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.migrate2cloud.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.migrate2cloud.com\/blog\/category\/tools\/\" title=\"Tools\">Tools<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTweaking APCu size for Phabricator\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.migrate2cloud.com\/blog"},{"label":"Tools","link":"https:\/\/www.migrate2cloud.com\/blog\/category\/tools\/"},{"label":"Tweaking APCu size for Phabricator","link":"https:\/\/www.migrate2cloud.com\/blog\/tweaking-apcu-size\/"}],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/posts\/2379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/comments?post=2379"}],"version-history":[{"count":2,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/posts\/2379\/revisions"}],"predecessor-version":[{"id":2383,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/posts\/2379\/revisions\/2383"}],"wp:attachment":[{"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/media?parent=2379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/categories?post=2379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.migrate2cloud.com\/blog\/wp-json\/wp\/v2\/tags?post=2379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}