Wordpress Memory limit not increasing

I have set 1024M in php.ini file: memory_limit = 1024M I have set it in .htaccess file: <IfModule mod_php7.c> php_value memory_limit 1024M </IfModule> I have set it in wp-config.php file: define( 'WP_MAX_MEMORY_LIMIT' , '1024M'); define( 'WP_MEMORY_LIMIT', '1024M' ); But I still get the following error on a plugin page in my Wordpress admin area: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 61440 bytes) in /home/eroticnaughtines/public_html/wp-includes/functions.php on line 4212 And yes, all the files are in …
Category: Web

How to load several numpys in batch generator from directory

I have a deep learning model which has to be feed with a huge amount of data (200k of 256x256 images), so it runs out of memory. I have divided my data in several numpy arrays that are in an specified directory, but I do not know exactly how to create the bacth generator from diferent numpy arrays so all the numpy work as X_train,and then it is load to the model in batches. I tried coding the following lines …
Category: Data Science

What are different ways to reduce size of word2vec vectors file?

I am working on an application with memory constraints. We are getting vectors from python Gensim models but need to transmit copies of them to react native mobile app and potentially in-browser JS. I need to get word2vec word vectors using as much less memory as possible. So, I need some ways in which this can be achieved. I already tried reducing floating-point precision to 9 floating points and got a 1.5 times improvement on memory. I am okay with …
Category: Data Science

Running out of memory when calculating loss using SigmoidFocalCrossEntropy

Code Versions: python == 3.8 tensorflow == 2.2.0 tensorflow-addons == 0.11.2 Recently I've been using tensorflow addon's focal loss function for one of my models. In order to better understand/demonstrate what's going on, I've been trying to recreate some of the graphs from the original paper - specifically, figure 4, which shows a cumulative sum plot of the minority and majority loss separately using different gammas on a converged model. def calcCSP(pred, Y_test, g, label): true = np.asarray(Y_test) idsPos = …
Category: Data Science

How to calculate the fully connected neural network footprint for each layer?

I'm using a MADDPG (RL algorithm) and trying to find out the memory footprint for each layer in it. Maddpg: https://github.com/openai/maddpg The neural network is described here. def mlp_model(input, num_outputs, scope, reuse=False, num_units=64, rnn_cell=None): # This model takes as input an observation and returns values of all actions with tf.variable_scope(scope, reuse=reuse): out = input out = layers.fully_connected(out, num_outputs=num_units, activation_fn=tf.nn.relu) out = layers.fully_connected(out, num_outputs=num_units, activation_fn=tf.nn.relu) out = layers.fully_connected(out, num_outputs=num_outputs, activation_fn=None) return out I wanted to calculate the memory footprint when training …
Category: Data Science

Wordpress Template Reverts to default template after changing

I am experiencing a problem regarding wordpress page template. after I change the wordpress template to "Home Page", it reverts to default template after update. I tried installing WP Super Cache then purging cache, but still no luck. I also Increased memory limit in server but still reverts to default. are there any fix to this? your help is greatly appreciated.
Category: Web

Wordpress media upload limit?

I've done numerous WP sites, written my own plugins, run my own server, etc etc. But I have not seen this before. I just installed a fresh 4.7.1 and installed the Proto theme and all its plugins. When I went to add media files, I got: Maximum upload file size: 2 KB. I deactivated all plugins one by one...no dice. My PHP memory limit is set to 256MB for this installation via wp_config.php. Googling the 2 KB limit turned up …
Category: Web

What is the difference in the WP memory limits?

I have seen this question PHP Memory Limit vs. WP Memory Limit and it has a really poor answer and the question isn't that good either. I am on a dedicated server and can do whatever I want. I want to make sure our site runs as fast as possible and had define( 'WP_MAX_MEMORY_LIMIT', '1024M' ); in our config. But then our theme had an update and I saw a screen that showed our PHP memory was 1024MB and our …
Category: Web

Wordpress import error

Firstly I installed WordPress on my site, then I generate a XML file for my blog (akasujjwal.wordpress.com) transfer by using export tool. And when I try to import this XML file to the installed WordPress then I face this error: Sorry, there has been an error. File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini. Why did …
Category: Web

High memory usage in my theme, how to find out why?

I'm experiencing a problem of high memory usage in my custom WordPress Theme, and I'm trying to find out what's causing it. I'm already using Query Monitor to explore the situation, but I can't see anything wrong there. No queries that require a long time, (almost) no duplicates, no errors, nothing. I just see a high memory usage (53,701 kB, 41.0% of 131,072 kB server limit, 131.1% of 40,960 kB WordPress limit), and hear my MacBook Pro fan become very …
Category: Web

Why is HistGradientBoostingRegressor in sklearn so fast and low on memory?

I trained multiple models for my problem and most ensemble algorithms resulted in lengthy fit and train time and huge model size on disk (approx 10GB for RandomForest) but when I tried HistGradientBoostingRegressor from sklearn the fit and training time is just around 10 sec and model size is also low (approx 1MB) with fairly accurate predictions. I was trying out GradientBoostRegressors when I came across this histogram based approach. It outperforms other algorithms in time and memory complexity. I …
Category: Data Science

Website keeps going down, is it a plugin, database, memory problem, or something else?

So I've been having a problem with one of the websites I manage. Essentially, we keep seeing the cloudflare 'site is offline' message for at least half the day, constantly and consistently. Whenever the web host is contacted, we always get the answer that it's a problem caused by plugins, but I want to know if: Is it actually too many plugins? https://paste.ee/p/PJLx5 The website is a news aggregation website that's been around since about 2012. We're wondering if all …
Category: Web

Does using torch.cuda.empty_cache can decrease performance?

We're struggling with memory usage in a project that deploys multiple models to the same GPU (models are usually built with PyTorch and TensorFlow). It was suggested that we could use torch.cuda.empty_cache to save a few precious bytes. However, besides the operation itself using GPU time, will it adversely affect performance in the future, i.e., will that result in torch reallocating the cache on the next call, for instance?
Topic: pytorch memory
Category: Data Science

Solution for processing lots of data with CRON/API, dealing with memory/timeout issues

Using a custom CRON job set up in my Wordpress site I am connecting to an external API to refresh some data. The API only allows for a certain amount of records to be read at a time so I have to "page" through, once one set of data is loaded then make another request to the API and load more, etc. The problem is that this can quite often run out of memory or just go on too long …
Category: Web

determining size of batch, time of sending and memory in to send from scala to ML section

I have a time series (sampling time: 66.66 micro second, number of samples/sampling time=151), I would like to determine some anomalies in them, the inputs are made by scala customer message bus. would like to know how I can determine size of batch, time of sending and memory in Scala customer or ML/AL?
Category: Data Science

Is there a maximum length to a Wordpress Page?

I'll try to be terse: We host events for clients and offer to create an 'event page' for them as part of their package - they can direct users to this page to see the event schedule, dates, speakers, etc. My current client has an excruciatingly long page, made up mostly of a huge number of Sessions & Speakers, and at this point, Wordpress has stopped allowing me to add new content to the end of the page. For example, …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.