Drupal 7 site loads very slow - drupal-7

We have a simple CMS site in drupal 7. The site was loading fine. From the last couple of weeks site loads very slow. It takes more than 10 mins to load front end and admin side pages. We cleared cache and increased memory_limit, but nothing seems to be working.

Hmm, sounds to me like it's database related.
See if this link helps:
https://www.drupal.org/node/1131048#comment-6546898

Related

When deploying React app to WordPress server, there's a ~5-second delay where the screen's blank before render begins

I have WordPress shared hosted server with Hostinger and wanted to deploy my react app there. I connected to the server with SFTP and copied and pasted the build folder's contents into public_html/test-gpu-app.
The app works, but I've experienced the strangest issue: when accessing the page, a blank page is displayed for 5 or so seconds, and full render takes nearly 8 seconds.
I've deployed the boilerplate react app to ensure it wasn't something I coded poorly/inefficiently, and it experiences the exact same issue. When deploying to Vercel, the app loads instantly, so it's clearly something to do with the server.
Server usage isn't anywhere close to maxed out, and every other page on the site loads quickly. I'm at a loss, can't figure out where to go from here.
The page:
https://artofpc.com/test-gpu-app/
GTMetrix test:
https://gtmetrix.com/reports/artofpc.com/e9IhhRzi/
Any help would be massively appreciated.
If you run the chrome performance profiler, you will see that the only function calls happening when the content loads are by a script called cmbv2.js, which appears to be a data tracking framework or something like that.
Your app code is downloaded only # 5 seconds or so, likely an arbitrary timeout by the lib. I'm guessing this is something like an analytics framework waiting to display content before JS initializes so that users don't see flashes of content. Do you have settings that automatically defer JS or anything like that by third party libs?
It reminds me of something like a layer that sits between HTML and the end user, auto deferring JS execution or something like that.
Be warned of this smell, future internet folks!

Angular JS application taking around 100% CPU while resizing

My website is in AngularJS v1.7.2 (using Laravel PHP framework as backend).
Current issue is the website freezes after resizing several times (2-3 or more times). I have checked Google chrome Task Manager Tool and it showing around 100% of CPU usage at the time of freezes. Same issue also occurred while testing the site in mobile by changing orientation several times. I have already tried solution like bind one way, add track by for ng-repeat, using tools like Batarang but no luck yet. Is there any proper solution for the issue. Please let me know.
UPDATE
The website almost finish. Only the freeze issue currently blocking us. The website mainly containing song, album, playlist, artist.
On home page there is banner (4 images) using iosSlider . then there are per category (8 categories) album (5 album each). on right sidebar there are song list. There are other pages like category page, artist page, album page, song page, user profile pages etc. Also there is a customised player using angular soundmanager2 API. Generally while viewing in desktop normally there no issue so far. But if I check using Device Toolbar (CTRL+Shift+M) and switch to other pages and rotate 2-3 times it just freezes. Even can't reload or refresh the page tab. If I check Chrome Task manager (Shift+Esc) it shows around 100% CPU usages
that time. Thing to notice the issue only occurring if I route to other page(forward or backward or both) then rotate 2-3 times. I am using AngularJS Batarang to sort out the issue but with no clue still now
SOLVED
The issue was with iosSlider. After removing the iosSlider no crash issue now.

Request.InputStream empty

A number of years ago I wrote a .aspx page that handled a HTTP POST Request which contained a piece of xml. The code read the xml using Request.InputStream - it worked fine for years until The DNN site that it was running in was updated to 5.6.8 now Request.InputStream is always empty. Note that the page is completely separate to DNN but located in site.com/Special/tlweb.aspx .
I've tested the same page on the same server using .net 4 but with a different IIS site and it works fine. Since another app POSTS data to the current URL I need to get it working in the existing location - changing the app is not an option.
I kind of think something was done in DNN 5.6.8 that was intended to stop cross site scripting attacks but I'm really having trouble figuring out what changed and what I can do to ensure that the specific page runs as it did previously.
Can anyone make any suggestions please?
Thanks
Josh

Use of Views slowing down site

Not sure if I am correct or not but i found that my site nerdeky.com which is using a view to show latest nodes on front page is crashing because of the views process of loading all nodes at once.
I have a content type called "Nerdeky Info" which contains more than 500 posts. To show latest 12 posts on frontpage i created a view and applied pager for rest of the posts. It was working good untill i had 100 or 200 posts but now it is slow in loading and sometimes crashes. I have New Relic integrated with my server and i can see that whenever site crashes it reports that the view took most of the time to process php and database.
After some searching on forum i found that my view is currently loading all posts at once and showing nerdeky latest posts afterwards.
Please suggest how to make it light so that only latest posts load first.
Thanks
Bharat sharma

Cakephp, weird performance issues

I've asked this question all over the web, but nobody has replied so far.
I have a Cake app on a live server. The problem is everything seems to be cached.
Let's say you're on the index page, hit "delete" link to delete a record, and you're redirected back to the index. The "deleted" record is still shown. If you hit the refresh button, the record is no longer shown and the flash message appears.
And it's like this all over the site.
I've disabled caching in config/core.php, sessions are pure cakephp (works the same with database and php sessions), debug is 0.
Server is PHP5.
Any idea is welcome!
What is your browser? I use Opera and I admit it doesn't manage the cache the way I'd want it to. I have to refresh, while Firefox works perfectly (or at least reload the page the way I'd expect it to while I'm debugging)
(from twitter #IvanBernat) have you tried to add meta tag for killing browser cache? use firebug and see if browser get 304 code for your file

Resources