Huge memory usage issues with plugin
This topic contains 7 replies, has 2 voices, and was last updated by Stiofan O’Connor 10 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 29, 2014 at 9:38 am #25721
Hi, i have just had the following info back from my hosting company. Could you please let me know if anything can be done to reduce the amount of memory that your plugin or theme is using please?
In looking at the memory usage in total, your sites are consuming an
inordinate amount of memory, which would seem to indicate a faulty
plugin/theme. So, I’d highly suggest that your developers look into any
customizations done to standard plugins/themes that may be causing this, as
this is normally due to bad coding causing memory leaks. Currently, all
your sites are consuming 3 GB of memory; For a point of reference, many
hosts have limits of 256MB of RAM for accounts, and normally each WordPress
site should be using between 32-64MB of memory. The server your running on
right now is actually extremely powerful with over 6GB of memory available,
thus you should be able to run over 100+ WP sites on the server without
issue, but I’m afraid that won’t be possible with the current usage.example of one of our website is
http://www.welovekohphangan.com
Look forward to your reply.
December 29, 2014 at 10:28 am #25723Hello,
GD is far more complicated that a normal WP blog, it is an web application not a static blog, however it should not be consuming memory of that amount unless you have many many visitors. Please provide me wp-admin details in a private reply and i will check memory usage.
Thanks,
Stiofan
December 29, 2014 at 11:53 am #25733This reply has been marked as private.December 29, 2014 at 12:58 pm #25739Hi Darren,
I have had a look and your site is using very little memory even compared to a standard WP install. When is this high memory usage supposed to be happening? All the time or just at specific times? (might be a cron job etc…)
Thanks,
Stiofan
December 30, 2014 at 11:37 am #25844Hi,
Could you please send us some figures to back this up as our hosting company are getting conflicting info as you can see from the email below….
Hi Darran,
Well I’m not sure how they conclude that. It would be nice to see some
numbers to back up that conclusion or some other explanation. The failure
and the usage certainly have nothing to do with cronjobs as this is
happening at all times of the day. To let you know what I’m seeing this is
the total RAM usage for the server:Mem: 4050732 3669856 380876 0 170940 1537528
That’s basically telling me that all your sites combined are using 3.5GB of
memory out of 3.9GB available for http and other web related processes. For
a more detailed look here’s a snapshot of each http thread’s usage:%MEM VSZ RSS TTY STAT START TIME COMMAND
16.0 1389508 651764 ? S 09:06 0:12 /usr/sbin/httpd
15.4 1392528 627316 ? S 10:23 0:09 /usr/sbin/httpd
17.4 1390908 708000 ? S 10:33 0:07 /usr/sbin/httpd
16.0 1384328 649292 ? S 10:51 0:08 /usr/sbin/httpd
14.7 1385740 595748 ? S 11:33 0:05 /usr/sbin/httpd
11.8 1382548 481160 ? S 11:33 0:07 /usr/sbin/httpd
14.6 1372724 593708 ? S 11:33 0:08 /usr/sbin/httpd
13.5 1379772 550132 ? S 11:33 0:06 /usr/sbin/httpd
13.2 1421268 536396 ? S 11:33 0:05 /usr/sbin/httpd
8.8 1383484 358752 ? S 11:46 0:05 /usr/sbin/httpd
11.0 1278860 448048 ? S 11:47 0:05 /usr/sbin/httpd
10.6 1381356 433016 ? S 11:47 0:04 /usr/sbin/httpd
14.0 1373696 568128 ? S 11:47 0:05 /usr/sbin/httpd
8.4 1370468 343544 ? S 12:56 0:02 /usr/sbin/httpd
7.0 1369696 285976 ? S 12:56 0:02 /usr/sbin/httpd
6.8 1269064 277052 ? S 12:57 0:02 /usr/sbin/httpd
8.5 1371756 347016 ? S 12:57 0:03 /usr/sbin/httpd
9.3 1372772 377980 ? S 12:57 0:02 /usr/sbin/httpdFor a point of reference I have another server running different WP sites
that give numbers averaging 2% MEM usage per thread, whereas some of your
threads are consuming as much as 17.4% of total memory available. Increase
the visitors or the number of sites and the server just won’t be able to
handle these sites.As we are running quite a few of your websites this is getting concerning. We are looking at launching many more in the near future using your plugin and theme so need this problem sorting out asap if possible.
Thank you
Darran
December 30, 2014 at 11:56 am #25848Hi Darren,
I have activated a plugin “Query monitor” on ur server and also enabled the wp-admin bar for ur site (only admin can see query monitor output) This shows you the memory used per page load which is usually around 14-20mb which is about the same as a blank WP 2014 theme load. a load of 17.4% of ur 6GB would be about 1GB not 14-20mb.
Can your host narrow this down to an actual file or script?
We are happy to help with this problem and resolve it, i doubt very much that it is a GD problem but if it turns out to be then be assured we will fix it 🙂
Thanks,
Stiofan
December 30, 2014 at 1:19 pm #25858Hi Stiofan,
Information below as from our hosting company.
Well I’m not sure what to say here, as I’m sure they’re aware there’s no
way for me to see memory usage for a “file”. I find it incredulous for them
to claim that your site is consuming the same amount memory as a “blank
wordpress site”. The server doesn’t lie, and shows apache using that much
memory per thread. In the end however, as long as the sites scripts are not
consuming 1 GB and running out of memory and shutting down the site then
that’s all that’s important.Can anything be done about this problem?
Thanks
Darran
December 31, 2014 at 12:07 pm #25944Hi Darren,
I don’t want to start a spat with ur hosting company but they could check the memory usage of the current running processes and run a trace on the one consuming lots of memory, this would be a start, but if they don’t want to play ball i would suggest setting up a dev site and keeping an eye on memory usage, start enabling each plugin one by one and see if we can at least narrow it down to a plugin/theme or even a page that is starting it.
Thanks,
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket