Questions tagged [performance]

Use it for questions about Drupal's performance, how to measure, and improve it.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 views

How can I reduce the time to first byte? [on hold]

My website takes very long time to load the home page and other inner pages. Actually website homepage have lots of images and videos. Homepage have almost 85 images and 18 videos as video slider. ...
-2
votes
0answers
28 views

New install keeps freezing

I have installed Drupal 8 on a clean Centos7 system, after upgrading to php7.0. WhilI am working through the User Guide, every couple of clicks in the drupal admin interface freezes up, with the ...
5
votes
1answer
464 views

Why does loadMultiple load 1000 nodes 9.2 times faster than loading each node one by one?

I have always known that loading multiple nodes at the same time is faster than loading them one by one. What I wasn't aware of, is the huge performance difference between the two ways of loading ...
1
vote
1answer
451 views

How do I explain the large difference between page execution time and reasonable query execution time?

I believe that one of my websites is running rather slowly. I have done nothing different than I have on other Drupal websites that I have done that are running on different servers and that are ...
1
vote
2answers
2k views

How to set up APC on Drupal 7 with httpd + fastcgi?

Can you recommend how to set up APC for a site running Drupal 7 on apache2 with fastcgi ? I got to the point where apc.php shows only one file cached that is apc.php itself. I cannot see if APC cache ...
0
votes
1answer
505 views

improve drupal 7 multisite performance

I think this has to be performed when the project is starting and not when the project is running, but, I don't decide that. I'm only the developer. I read a lot about performance in Drupal 7, and I ...
45
votes
5answers
95k views

Nginx vs Apache - Are there any actual usage comparisons and statistcs out there?

I have a new server to play with, and I am staring at a blank canvas. I can put anything I want on it. While I am comfortable with Apache, I keep hearing how nginx can handle so much more traffic than ...
0
votes
1answer
343 views

Why does Apache show such drastic differences in memory usage when using mod_php?

I've taken steps to reduce as much as possible the memory footprint of my Apache mod_php processes by disabling Apache modules as well as Drupal modules. When the server is under light load, I see ...
1
vote
0answers
33 views

Page not found errors for images

The site becomes painfully slow at times and when I look into "Recent Log Mesaages" logs such as this is frequently found. The Location shows: http://example.com/sites/default/files/styles/featured/...
1
vote
1answer
362 views

Alternative to .htaccess compression with Boost

My hosting provider doesn't support mod_deflate directives in .htaccess to provide compressed HTTP responses. I am using Drupal 7 with Boost and wish to compress HTML, CSS and JS responses. Is there ...
3
votes
3answers
2k views

Difference between drupal_static and \Drupal::state?

Imagine I have a hard-to-compute value. $my_heavy_value = compute_heavy_value(); What's the difference, at performance level, between storing the computed value using drupal_static() and using \...
3
votes
3answers
768 views

Do I have to unistall the disabled modules?

I'd like to know if there is any difference between disable or uninstall modules regarding performance. Will having 10 disabled modules affect my site performance? Will the performance be better if I ...
-1
votes
1answer
81 views

Are static html pages required to build a Drupal

Are static html pages required to build a Drupal based social networking site or should I go about creating content (views or modules etc) and assigning regions to them. I have already created a theme ...
0
votes
1answer
196 views

How to change URL images for CDN

I have a website in Drupal 7 with "N" images in Sites/default/files and I need move this images to CDN. Is this possible?
0
votes
1answer
470 views

Search indexing slow query

Drupal 7.x The search module's indexing maintenance sql query takes a couple of minutes to complete each time cron gets triggered. SELECT t.word AS realword, i.word FROM search_total t LEFT JOIN ...
0
votes
2answers
42 views

How to achieve clean HTML markup?

If you visit official website of Dries Buytaert https://dri.es/ and look into the source you will see very clean and minimal markup with no unnecessary tags and classes, eg: When I create a simple ...
0
votes
2answers
463 views

Drupal 8 serialize selected fields using Serialization

I have a requirement in a project having 350 fields. But when I use views facing a lot performance issues. So in place of reading all the data from individual tables can I use serialization as ...
2
votes
1answer
373 views

how to optimize inline images in ck-editor

Is it possible to optimize inline images uploaded via ck-editor. There is an image with size 11 MB and in default behavior its rendered original without any optimization applied to it.
0
votes
1answer
22 views

Do custom theme suggestions execute on every page load and does that impact performance?

I've been working with Drupal for a little while now and one nagging question I've had is about whether or not logic in my *.theme or *.module files have any impact on server load. Let's say I have ...
-1
votes
1answer
68 views

Create the FooTable functionality by using only views

I noticed by using FooTable display on one of my view on a Drupal 8 site, it is increasing the load time of the view by more than 2000 ms. The main idea i am using Footable is because of the ability ...
0
votes
1answer
544 views

Enabling aggregate and compress CSS files resuls in vanishing theme

I used this module for more compression on css and js files but it does not work for me! so I disable and remove it entirely. After that when I enable aggregation of css and js files, my site's theme ...
5
votes
4answers
1k views

CSS aggregration breaks site - how to troubleshoot?

I have a number of D7 sites that "broke" recently when I applied 7.39 and a few other updates. By "broke" I mean the site's CSS styling completely disappeared. I can easily fix by disabling CSS ...
1
vote
1answer
74 views

How to make use of the render placeholder system for cacheablejsonresponse?

I have custom controllers which provide CacheableJsonResponse responses. Those responses are quite heavy to build (couple of seconds), so I want to build them better. I build those responses by ...
1
vote
2answers
658 views

What does the AdvAgg bundler do?

I tried to read the description but I didn't understand what this component does. The description says: If not checked, the bundler will not split up aggregates. I know that the purpose of ...
54
votes
9answers
4k views

Real world experience in scaling and tuning performance

The website I'm working is allegedly going to have a massive hit rate soon after launch. The client is talking about the possibility of around 2500 hits per second over a day or so. Ignoring the ...
8
votes
2answers
3k views

load balancing multiple horizontal drupal instances

I've developed a REST WebAPI using the Services module. It works fine. I have a client of that API with projected usage requiring I horizontally scale my Drupal instance. Note that due to the nature ...
3
votes
2answers
440 views

How to use Drupal in the cloud with on demand instances

Services such as Rightscale do lots of things to help mange unpredictable traffic and bring more servers online when traffic spikes. Is it possible to use Drupal with services such as this? While ...
0
votes
1answer
71 views

Does adding more processing power increases Drupal Page Load Speed

I have a site hosted on Acquia Cloud.all the unnecessary modules are uninstalled. The site has only couple of nodes (300 almost)and lot of imported registered accounts. Below optimizations are enabled ...
3
votes
0answers
122 views

Warming up dynamic page cache for authenticated users

We're currently working on a rather complex Drupal 8 based website. After clearing caches, the majority of pages/routes require about 30-60 seconds for being rendered/returning the desired results. ...
0
votes
0answers
35 views

Overload Site with Database Inserts to cache discovery

In my production enviroment i have a problem with the performance of my site, this begin to execute many request to database, when I see the process list of the database y see many process with ...
2
votes
2answers
2k views

how to make fewer http requests

I'm use YSlow to optimize my web pages it says: This page has 34 external Javascript scripts. Try combining them into one. This page has 5 external stylesheets. Try combining them into one. but all I ...
-1
votes
1answer
595 views

How to limit the number of authenticated users logged in simultaneously?

I'm building a project for a client who asked for: Limit the number of authenticated users logged in simultaneously. For example the site won't allow more than 20 users to be logged in at the same ...
0
votes
1answer
217 views

Serve compressed JS and CSS with S3 as filesystem

We have a Drupal 8 site using S3 file system integrated via the S3 File System module. The aggregated CSS and JS are uploading on S3, however I am not seeing any configuration to serve compressed ...
-1
votes
2answers
80 views

Database Insert Slower On Production Server [closed]

I recently upgraded the PHP version to 7.1 on my production server. I also updated my local to 7.1 and staging to 7.1. Only on production, I am seeing a slow down when I import a csv file and insert ...
3
votes
1answer
150 views

How do I profile a site that is on shared hosting?

I run a commerce website in a shared hosting, from time to time it's being too slow, I tryied many ways to find the cause (css/js agreggation,enable caching, views caching, disabling some big modules :...
1
vote
2answers
749 views

How do I setup Drupal with EC2 scaling?

I want to scale my Drupal site and I was wondering how to approach it with Drupal and Amazon EC2. This is a bit related to How to use Drupal in the cloud with on demand instances. With Amazon, I can ...
3
votes
3answers
4k views

Remove query strings from static resources in template.php

I've read several articles throughout the web about removing query strings from static resources, in the template.php file, after I saw a recommendation to do so in a forum, for better page-loading ...
0
votes
0answers
47 views

Solr-based View, Row cache

Context: Drupal 8.5, Search API Solr 2.2 There's a Solr-based view with Field display mode, as the results are not just nodes, there are non-Drupal content too. Right now the dynamic page cache is ...
1
vote
1answer
112 views

How should I deal with a vocabulary with many terms?

I'm trying to use Drupal 8, but if Drupal 7 is better for that, I'm ready to go back to Drupal 7. I have a vocabulary that must contain at least 10,000 terms, but they can also become more than 100,...
1
vote
4answers
1k views

How to disable/enable cache of all views programmatically?

Case: I have over 50 views in my site and for performance improvement all were enabled to cache data during their implementation. Now I want to disable cache for all views at once for some reason (...
11
votes
4answers
10k views

Are there any performance comparisons?

Are there any reliable performance comparisons between vanilla Drupal 8 versus Drupal 7? I have searched the web but only find the post "Drupal 7 vs Drupal 8 Performance Comparison", which is far ...
0
votes
2answers
863 views

Loose compression for all images directly from Drupal

I need to do image loose-compressing usually done with GIMP/TinyPNG/GPI, but just inside Drupal, but also For all images, in a single process or several sporadic processes (say, for each content type)....
0
votes
0answers
57 views

Very slow menu_tree_check_access query - how to debug

I have a Drupal System which is running fine in production and locally but the dev/cons Db seems to have a problem. After looking a bit deeper into it I found that menu_tree_check_access takes 3.8 Sec ...
7
votes
2answers
715 views

Horrible frontend performance on large CCK forms = poor UX. What are my options?

I have a pretty large node form for one of my content types. Let's say it has about 100 fields. A lot of these fields are text values with unlimited values, so the user uses an AJAX button to 'Add ...
0
votes
1answer
33 views

db_insert a lot of records

I am struggling to sort out how to insert a lot of records using db_insert Please see below for the code. I can't have a for loop in the array. It breaks but I am dealing with looping through a lot ...
1
vote
1answer
139 views

Increasing performance of cache_form on high traffic sites

I am noticing a significant performance increase in my load testing when this table is small, but due to a large traffic site this is growing very quickly. I have read that it is not a good idea to ...
2
votes
1answer
93 views

Serve Anonymous Pages when users are logged in for some pages

so essentially I have a Drupal website with great performance for anonymous users and terrible performance for logged in users. What I am looking for is a way to serve some pages that logged in users ...
1
vote
0answers
25 views

How can I drill down to find the culprit function? [closed]

I can see high CPU usage when I hit search URL of my Drupal application. I have enabled XHProf module and UProfiler extension on PHP5.6 to find the culprit function. But the report I am getting is ...
2
votes
1answer
552 views

remove link tags in head

I am working on a project involving migrating a site with many static pages to Drupal 8. Since a number of the pages are old blog posts, there's often broken links, broken images, etc. For quality ...
0
votes
4answers
2k views

Performance is notoriously slow

This feels like a repeat post but I can't find an actual answer. I just installed Drupal 8.4.4 on an Azure App Service (S3 Standard 4core 7GB RAM / PHP 7.0.6) and Azure Database for MySQL (Standard ...