Search Results for 'memory'

Results from the Forum
SiuSang
tagDiv Member

Hi Chris
Thanks for your comment, i had increase the base memory to 256MB already.

Hi Andrei
OMG.. i just downgraded to VC 4.3.5 from 4.4.4 and the loading time is reduce a lot!!!

VC 4.3.5 – Memory: 81.98 of 256 MB (32%)
VC 4.4.4 – Memory: 168.53 of 256 MB (66%)

that was HUGE! i hope the new version can fix this problem for me…

simchris
tagDiv Member

Make sure you increase the base memory for WP to at least 96MB in your wp-config.php file. 128 or 256 better if your host setup allows that.

This is mandatory when using VC.

simchris
tagDiv Member

a) make sure you do NOT use the “load more” ajax options in modules,
b) try turning off the related posts option in posts
c) try turning off the “suggested for you” flyout box
d) try NOT using mega-menu
e) make sure you increase the default memory in your wp-config.php file to at least 96MB (see my “sticky post” on optimization for how to do that).

ADMIN: should likely add the wp-config.php memory upgrade option as a “requirement” for pre-install notes!

simchris
tagDiv Member

Did you also increase the default RAM for WordPress ? You need to edit your wp-config.php file to increase the base memory (default in WP is 40MB, but 96MB minimum is needed for Visual Composer).

See:

define( ‘WP_MEMORY_LIMIT’, ‘128M’ );

https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

salocharly
tagDiv Member

Thanks Emil and Chris! I installed the shim thing and increased php memory. I will be checking to see what happens the following days. Now visual composer should be left deactivated? is there a more permanent solution? becuse i may want to add new pages with vc….:(

simchris
tagDiv Member

Apologies to all for not including links in my recent posts; was doing that from my iPad and not desktop. I “should” have included link to the optimization post with the memory config info and also link to the shim discussion. Doh. Sorry about that. Sometimes I try to be helpful but only go 80% of the distance. 🙂

simchris
tagDiv Member

Be sure to regenerate your hash keys also!

Visual Composer is a memory hog; no doubt about it.

With Newsmag the last version of VC crashed our server (processes went from .06 to 52, with 8 XEON processors and 32GB ECC RAM); we had to use the beta “SHIM” workaround that Radu came up with.

Basic solutions are:
a) make sure you have at least 128MB allocated for php, and have that in the wp-config.php
b) limit number of queries (e.g., have a 10 most recent list in sidebars, not five queries of latest 2 items from 5 categories); consider disabling the “related posts” element; don’t use mega-menu
c) if you have a LOT of posts added daily, image processing is an ‘expensive’ use of CPU, so consider pre-planning your modules to limit number of image thumbs being built per story, ensure you have a high compression level set and pre-optimize the heck out of what you upload – don’t upload a 767kb file when it could be 45kb at outset for example
d) consider turning off the stupid comment counters (ahem); who cares how many comments a story has, really? That’s a huge amount of queries going on all over the place.
e) optimize the heck out of your site (some of my suggestions are in the stick for site optimization, including adding the memory item in wp-config.php and removing all the comments in wp-config.php — all that crap in there getting loaded over and over)

Stuff like that can set a good baseline to watch the system and see if it chokes. In other words start SIMPLE as possible with everything off, then build up to meet your system capability — if it just dies no matter what, go back to V4; and wait for version of SHIM beta from Radu which works with NP6 (basically this lets you have a homepage with most of the neato modules, but without some of the more dramatic options of VC). I’m running the shim beta with Newsmag on 3 sites now, and zero issues.

Not sure any of that helps … but food for thought …

salocharly
tagDiv Member

Thanks bro, that was lame of me (still learning this stuff) I changed the password already 🙂 and added the line but i don’t think this is a real solution. 1.6gb of memory usage is not normal…I would like to know what tagdiv support can support to this 🙂 for now visual composer is disabled and site is live but a mess….

nf_prt
tagDiv Member

Hi,

I don’t think it’s a good idea to go around posting the password of you database and stuff 😀

Chris S was saying to increase WP memory. Paste the following line in you wp-config.php file:

define('WP_MEMORY_LIMIT', '128M');

Paste it in between this two lines
define(‘WP_DEBUG’, false);

/* That’s all, stop editing! Happy blogging. */

simchris
tagDiv Member

Make sure you cleared all your cache, CDN cache, cloudflare, etc.

Make sure you fully clear your browser cache.

Try turning off all plugins except Visual Composer to see if conflict with an oddball plugin.

Make sure you previously increased the default memory for your site from 40MB to at least 96MB in the wp-config.php file (mandatory!) – -128MB if your account supports it; 256MB if allowed.

It does work 🙂

salocharly
tagDiv Member

hi chris,
I dont see a place for memory there….. 🙁 is this normal?

simchris
tagDiv Member

Did you increase the default memory in your wp-config.php file ?

You MUST change that from the default 40MB to at least 96MB, pref. 128MB and ideally 256MB to use Visual Composer.

Marius
tagDiv Staff

Hi,

What you can do is to disable some plugins or all(without VC) and see how much memory consume. You can use this plugin, for memory usage https://wordpress.org/plugins/wp-memory-usage/

or try with this one: https://wordpress.org/plugins/p3-profiler/ that show for all plugins the memory usage.

or try with latest theme version, we had improved the performance, that works fine with large taxonomies(before this please backup all files/database)

or try to increase the memory limit to 256 in wp-config.php

Thanks for the message!

simchris
tagDiv Member

There is a “beta” SHIM workaround that Radu came up with; not sure if it works with Newspaper 6 yet.
Idea is that you can build your home page with VC, then use the “shim” and turn VC OFF… downside is that you lose some of the more fancy features of VC; but your site will work with high traffic. VC is a bit of a memory hog so you have to both ensure your server setup properly for memory usage; including increasing default memory in your wp-config.php file (MANDATORY!), and limit queries on your post pages (e.g., have a “most recent” items block on sidebar, not 4 categories of news modules in sidebar; don’t use mega-menu, etc.).

Marius
tagDiv Staff

Hi,
Please can you try to increase the memory limit, check it in System status http://screencast.com/t/oqB5TmN3ZR then add this in wp-config.php file

define ('WP_MEMORY_LIMIT', '128M');

wiseprt
tagDiv Member

Hello again,

I already downgraded to 4.35 but as i can see while browsing the blank pages (out of memory) are still there.

Any thoughts / Suggestions?

Best Regards.

simchris
tagDiv Member

Check your hosting account for error log is likely best place to start if your website is totally offline. If your site is live, but you cannot login, that is whole separate issue unrelated to theme.

If your site is “overloaded” and crashing you likely will need to do couple of things
a) increase memory allocated via php.ini if not already done
b) edit wp-config.php to increase WP default memory from 40MB to 128MB (or 256MB if you are allowed on your system).

mymemory
tagDiv Member

I am working on this site

blog.mymemory.co.uk

simchris
tagDiv Member

1) try disabling all plugins except visual composer
2) don’t use child theme; activate main theme
3) turn off/clear caching if using before doing anything; if using caching turn off all minification settings
4) turn off mod_pagespeed if using to clear caching
5) if using CDN server; you need to “retire/refresh” cache
6) if installing via FTP, make sure your FTP software set to automatically upload files properly (e.g., as text or binary depending on type of file)
7) make sure you have enough memory allocated; you may need to edit your wp-config.php file in your root WP folder to increase default memory from 40MB to at least 96MB (128MB recommended)
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

TRY #7 FIRST 🙂

Emil G
tagDiv Staff

Hi,

By default Visual Composer only appears on pages editing section, you have to enable it for posts from Visual Composer -> General Settings – http://screencast.com/t/WDZK4qqI8

For WP Memory Limit edit wp-config.php and add the following line – http://screencast.com/t/iGlIRZ9Hhttp://screencast.com/t/dEYp4gtfBp

You can read more about this here – http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Tinymce should not be disabled.

Thank you, Emil G.

  • This reply was modified 11 years by Emil G.
mirage22
Participant
#0

Hello,

I was using a different theme till i purchased the newspaper theme a few hours ago.

The installation was smooth.

But i cannot edit existing posts or create new posts as the visual editor is not showing up.

Yes, visual composer etc is installed. I have also flushed my cache and disabled super cache and my plugins are minimal. They are actually the ones in your approved list.

Now there is a strange problem. If i run phpinfo() i can see that the memory limit is 512mb and max execution time is 3000. But the theme is reporting memory as 40mb and execution time as 30. There is no separate directive in wp-config, but i created the same php increase settings in wp-config to seeif it helped but that too hasn’t worked. I am stumped.

I guess I am facing the issue cause of tinymce. Can i disable it? Have i not read some direction that you gave?

simchris
tagDiv Member

regenerate thumbnails works well for me …
we had a site with 10,000+ images (launched in Dec 2005 on WordPress), and the “regenerate thumbnails” plugin worked well.

We also used Auto Post Thumbnail PRO for the ooooold content first time to get a featured image and/or default featured image for really old stuff with TINY images.

Make sure you up your base memory limit in the wp-config.php file (WP defaults to 40MB, but really needs 128 or 256 these days), and make sure you backup your old image folder if you want to keep a safe copy of that (which, ahem, you should be doing periodically anyway).

If you want to do best practice:

a) check the sizes of the new layout and “know” which sizes you plan to use for your modules
b) change the 3 small/medium/large sizes in the WP media settings to match 3 most common; but make sure large is not larger than size files you plan to upload
c) look in the NEW theme panel at the modules image sizes control, and turn OFF the sizes you don’t plan to use (note possible need for the preview image in search box!)
d) regenerate thumbnails

make some coffee while that’s running. 🙂

Should work marvelously!

neakriti
tagDiv Member

Go to “Newspaper”->”System Status”.

What is the value you have on “max_input_vars”?

Is it 1000 or generally lower than 2000? If so, try making it 3000 (edit your php.ini and restart your server to read new settings) and check if the problem is resolved.

Also check your “WP Memory Limit”. It should be at least 64M. If its not, at your “wp-config.php” file at the root of your site add this

define( ‘WP_MEMORY_LIMIT’, ’64M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ’96M’ );

before the line
/* That’s all, stop editing! Happy blogging. */

and if you have enough memory, make it even higher.

so are these two values (both of them) green or yellow?

  • This reply was modified 11 years by neakriti.
  • This reply was modified 11 years by neakriti.
  • This reply was modified 11 years by neakriti.
wiseprt
tagDiv Member

Hello,

I tried to update visual composer but with no luck. I followed this post https://forum.tagdiv.com/update-the-visual-composer-plugin-wpbakery/. I think i have 4.4.4.

I have more than 7000 posts/pages in the database. You can see the website here http://artic.gr sometimes while browsing you’ll see a blank page (this is an out of memory error).

If you think that you can fix my problem, i can make for you a temporary ftp and backend user. I’ll really appreciate this.

Please let me know asap.

Best Regards

simchris
tagDiv Member

Yup. Just take all of that out of your style.css file which is what I do.

All those features you keep asking for need to have the code someplace. And better to have one big file, vs. having 10 different CSS files like some sites. That’s the whole idea behind “combining CSS” so only one file gets loaded/cached.

CSS larger for this theme vs hot topix (I use that also), is all those fancy visual composer modules and layouts; which is why you have 50 layout options vs the 3 or 3 with topix — apples to oranges. Why does a V8 engine use more gas has than a 4-cylinder ? Self explanatory – twice the cylinders.

No way for theme to easily generate different CSS and a nightmare for support (where is my WooCommerce CSS? Un, did you activate that option? Where is the option? In the CSS panel. Where is the CSS panel? Did you see the documentation? What is that?) etc. 😉

Just my two cents if we’re all going to chime in on this topic.

Upshot: tweak your site to remove those elements you don’t use, for best performance.

I did have conversation with Radu about what could safely be removed from the config file, also, such as require loading modules for bbpress if not using that. Never got to finishing that process due to the server CPU issues we had due to stupid VC memory leaks or whatever is up with that.

Personally I would prefer to have a MAGAZINE focused theme without all the bbpress, multisite and woocommerce stuff – but 20-30% of people buying this are “wanting” and perhaps “demanding” those features so they are in there (the Magazine theme got bloated from Oct 2013 to Jan 2015 due to this … annoying to me, personally — but this is a “one for all” theme, not a micro niche focused offering; or it would not sell in these competitive themeforest marketplace).

Happy Sunday. Ranting over (rant!!!!)… 🙂

  • This reply was modified 11 years by simchris.
Viewing 25 results - 2,851 through 2,875 (of 3,046 total)