Excessive memory usage up to 2.9Gb

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
User avatar
murphle1965
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Sun Feb 08, 2009 9:19 pm

Excessive memory usage up to 2.9Gb

Post by murphle1965 » Tue Apr 13, 2021 1:37 pm

Hello,
I'm not sure if this is the right spot to ask my question... I have a small Joomla site (under 10 pages) but utilizing the jDownloads component and it's peaking 2.95 Gb of physical memory on the server.

Site is running the following components:
Akeeba Backup
Admin Tools
Youtheme Pro template
Nextend Smart Slider
Simple Image Gallery Pro

Latest versions of everything, including Joomla.

I've scanned files, there is no malware on the site, I keep everything at the latest versions. I don't know how to find where this memory issue is coming from, though I did post on jDownloads forum, awaiting an answer.

Does anyone have any idea where I can look to see what is going on? The hosting provider upped the physical memory on the site to 4Gb so I can debug.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 23060
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Excessive memory usage up to 2.9Gb

Post by pe7er » Tue Apr 13, 2021 3:37 pm

How big are the downloads that you offer?

Have you checked the database tables with phpMyAdmin?
Some extensions store a lot of info. Does your download extension log all visits/downloads?

How many Akeeba backups do you keep?
You can check that in the admin back-end of the component, but also use FTP to check the backup folder (default: /administrator/components/com_akeeba/backup/ but you could have changed it in the configuration).

Some extensions create a lot of log- / cachefiles:
  • Akeeba backup creates logfiles (in its backup folder) that can take up a lot of space.
  • Yootheme Pro creates cache in its folders that can use a lot of space
  • Joomla uses /tmp/ for installing/updating non-core extensions
  • Joomla uses /administrator/logs/ (in old sites in the root /logs/ or /log/ ) for log files (like error.php that can get huge)
Do you have ssh access to your server?
On the Linux command line you can use the following to find the biggest files:

Code: Select all

find /var/www/ -type f -printf "%s\t%p\n" | sort -n | tail -1
replace /var/www/ with the folder of your website.
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
The best website: https://the-best-website.com

User avatar
murphle1965
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Sun Feb 08, 2009 9:19 pm

Re: Excessive memory usage up to 2.9Gb

Post by murphle1965 » Tue Apr 13, 2021 6:18 pm

Thank you so much for taking your time. Some of the PDFs are 150mb. These are plans, like - CAD drawings. They have tons of vectors in them.

I did look at the DB expecting to see something that would blow my mind; however, the only large number I saw was 12,000+ rows in jDownloads.

I only have 3 Akeeba Backups in the directory (outside of the home directory) and these backups that I run don't include the jDownloads directory because the backup will take forever as it tries to backup 3 Gb of data.

I will look at these caches. The server this site is on allows me to take advantage of Lite Speed Cache. I just disabled that for the time being while troubleshooting (to eliminate it as a probable cause). My log files don't show any issues and the server log did have a few items showing that I uninstalled which removed the 2 issues (one being lscache).

I do not have access to ssh on the server.

User avatar
murphle1965
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Sun Feb 08, 2009 9:19 pm

Re: Excessive memory usage up to 2.9Gb

Post by murphle1965 » Tue Apr 13, 2021 8:54 pm

Since I've not experienced anything like this in 14 years of using Joomla.... is this what is referred to as a memory leak?

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 23060
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Excessive memory usage up to 2.9Gb

Post by pe7er » Wed Apr 14, 2021 6:23 am

You're welcome!

You've checked the number of rows in your database tables.
Could you also check the size (you can order on that column)

murphle1965 wrote:
Tue Apr 13, 2021 6:18 pm
I do not have access to ssh on the server.
Alternatively you could download the whole website to a local computer and analyze it for the biggest files.
On Mac and Linux you can use the terminal to run the find command I gave you earlier.
On Windows 10 (pro?) you Windows Subsystem for Linux to run Linux commands.

A memory leak occurs when the RAM memory is getting full because the memory that is no longer needed is not released. In your case it's not RAM memory but hard disk memory that is getting full.
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
The best website: https://the-best-website.com

User avatar
murphle1965
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Sun Feb 08, 2009 9:19 pm

Re: Excessive memory usage up to 2.9Gb

Post by murphle1965 » Wed Apr 14, 2021 11:41 am

Hi Pe7er!
I believe maybe I used the wrong terminology perhaps. The website's RAM usage is peaking up to 2.95 Gb since April 12th. This hosting account allows me 2gb of physical 'RAM'. They have upped it to 4Gb of RAM so I can debug. The entire mb size of my database is only 21mb (I know that's different than the RAM usage I'm talking about, but I did check that first).

The site just spiked in RAM usage on 4/12. I can look at the Resource Usage within the cPanel and see that all of a sudden on the 12th it went from using like 200 mb of RAM to 2.95 Gb and chart just looks like it's having a heart attack:(

I have backups, and can reinstall the site; however, I'm hesitant because of the size of their jDownloads directory (3 Gb of PDFs for clients). Really hoping I can find a solution before I do that.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 23060
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Excessive memory usage up to 2.9Gb

Post by pe7er » Wed Apr 14, 2021 3:12 pm

Can you create a backup (without the JDownloads folder) and install that on a local computer (using a web environment like XAMPP or something similar).

Then check the RAM memory use there and compare it with the RAM memory use on the server?
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
The best website: https://the-best-website.com

User avatar
murphle1965
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Sun Feb 08, 2009 9:19 pm

Re: Excessive memory usage up to 2.9Gb

Post by murphle1965 » Wed Apr 14, 2021 3:55 pm

Yes I can, I've been backing up for some time without that directory included. I use MAMP for testing and installs, then move to the server, so I'm used to that. How do I check the RAM usage? On my Activity Monitor? I'll do this right away.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 23060
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Excessive memory usage up to 2.9Gb

Post by pe7er » Thu Apr 15, 2021 8:38 am

On my Linux systems I can use cat /proc/meminfo or top to see the processes and their RAM memory use. Or via the GUI: System Monitor.

I suppose that on your operating system Activity Monitor is similar to System Monitor on Linux.
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
The best website: https://the-best-website.com


Post Reply

Return to “General Questions/New to Joomla! 3.x”