Memory Used on cpanel

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
TaylorCTU
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Fri Mar 18, 2016 2:25 pm

Memory Used on cpanel

Postby TaylorCTU » Mon Jul 10, 2017 4:31 pm

Scanned the site for malware. Clean. Any ideas on why memory used % would be so high? Comes back to normal with a server reboot, gradually increases.

john693
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sat Jul 08, 2017 11:27 am

Re: Memory Used on cpanel

Postby john693 » Tue Jul 11, 2017 6:33 am

Its almost impossible to tell whats causing high memory usage without ssh access or something of that sort. If you have root access to the server then login and use "top" command to see which processes are consuming memories.

User avatar
TaylorCTU
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Fri Mar 18, 2016 2:25 pm

Re: Memory Used on cpanel

Postby TaylorCTU » Wed Jul 12, 2017 4:21 pm

Yeah that was it. Just had to kill some old processes.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 18380
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Memory Used on cpanel

Postby leolam » Sat Jul 15, 2017 4:08 pm

No that is not the issue. This does not resolve by "killing old processes"

This is caused by an improper settings of the mySQL-settings on your server. A lot of good articles have been written on this matter by Peter Zaitsev and start reading https://www.percona.com/blog/author/admin/ or just Google for "memory usage mySQL" and have fun.......

Server Tuning is an ART and need a lot of knowledge of mySQL, Apache and others.

Leo 8)
Celebrating 12-Years of Professional Joomla Support Services
- Joomla Professional Support:https://gws-desk.com -
- Joomla Specialized Hosting Solutions:https://gws-host.com -
- Member Joomla Bug Squad & J-CMS Release Team

User avatar
TaylorCTU
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Fri Mar 18, 2016 2:25 pm

Re: Memory Used on cpanel

Postby TaylorCTU » Mon Jul 17, 2017 1:28 pm

Well it's a temporary fix. I've been aware of some sort of mis-configuration for a while. This does buy some time for me to do some more research. Thanks for the link, I will definitely look into that.

bjsadmin
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Tue Jul 18, 2017 5:57 am
Contact:

Re: Memory Used on cpanel

Postby bjsadmin » Tue Jul 18, 2017 6:26 am

There are many factors for this, as suggested one will need an SSH access to figure out it. Further, you can also check with the sysadmin if the web server and the database server is fine tuned.

User avatar
24x7server
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 129
Joined: Mon Jul 11, 2016 10:57 am
Contact:

Re: Memory Used on cpanel

Postby 24x7server » Sat Jul 22, 2017 12:46 pm

Can you paste the output of processes which are continuously running?

Also, can you check the access logs of your website? Because you will get the list of IP addresses which are continuously hitting to your website. There might be attack from those IP addresses on your site .

Once you will block the suspicious IP address you can check the memory usage of your site.

If issue still persist, you can contact your web-hosting provider for further investigation.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 18380
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Memory Used on cpanel

Postby leolam » Sat Jul 22, 2017 5:38 pm

24x7server wrote:Once you will block the suspicious IP address
Makes no sense since hackers use VPN's among others. Server-side protection with proper security in place is the only proper protection

Leo 8)
Celebrating 12-Years of Professional Joomla Support Services
- Joomla Professional Support:https://gws-desk.com -
- Joomla Specialized Hosting Solutions:https://gws-host.com -
- Member Joomla Bug Squad & J-CMS Release Team

User avatar
TaylorCTU
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Fri Mar 18, 2016 2:25 pm

Re: Memory Used on cpanel

Postby TaylorCTU » Mon Jul 24, 2017 1:10 pm

24x7server wrote:Can you paste the output of processes which are continuously running?

Also, can you check the access logs of your website? Because you will get the list of IP addresses which are continuously hitting to your website. There might be attack from those IP addresses on your site .

Once you will block the suspicious IP address you can check the memory usage of your site.

If issue still persist, you can contact your web-hosting provider for further investigation.


Talked to the host and they said part of the problem was how aggressively bing was crawling our site. I have limited the frequency and that seems to have somewhat helped.

User avatar
24x7server
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 129
Joined: Mon Jul 11, 2016 10:57 am
Contact:

Re: Memory Used on cpanel

Postby 24x7server » Tue Jul 25, 2017 5:51 am

That's great! Glad to hear it helped you.

john693
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sat Jul 08, 2017 11:27 am

Re: Memory Used on cpanel

Postby john693 » Mon Jul 31, 2017 9:08 am

I dont agree that aggressive crawling can be issue. Any decent VPS should handle multiple simultaneous requests easily. Are you sure you killed mysql processes? MySQL is suppose to be battle tasted and there should be no need to optimize it under normal circumstances.

Possible memory hog in your case could be apache. It works on threaded model, each request gets a new thread so it hogs memory when request rate is high. But it dosen't mean it will hog all the memory forever. Once request is fulfilled, thread releases its memory and returns to memory pool. Perhaps what you saw in cpanel was the total of used memory + cached memory. "top" command should give you better overview of system resources.

If you are conscious about memory usage then consider switching to nginx and php-fpm. Its works on event model with much less memory footprint.


Return to “Performance - Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 3 guests