Questions tagged [memory-limit]
The memory-limit tag has no usage guidance, but it has a tag wiki.
memory-limit
260
questions
786
votes
36
answers
2.1m
views
Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted
I have a bunch of client point of sale (POS) systems that periodically send new sales data to one centralized database, which stores the data into one big database for report generation.
The client ...
724
votes
38
answers
123k
views
Generate an integer that is not among four billion given ones
I have been given this interview question:
Given an input file with four billion integers, provide an algorithm to generate an integer which is not contained in the file. Assume you have 1 GB ...
356
votes
24
answers
847k
views
Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php [duplicate]
This error message is being presented, any suggestions?
Allowed memory size of 33554432 bytes exhausted (tried to allocate
43148176 bytes) in php
74
votes
5
answers
442k
views
PHP: settings memory_limits > 1024M does not work
For bad reasons I need to set memory_limits higher than 1 GB for a directory, but on my PHP 5.2.17 on a Debian 5.0 (Lenny) server when I use, for example, 2048M, I get only the php.ini default value (...
64
votes
8
answers
204k
views
How to increase memory limit for PHP over 2GB?
I have an problem increasing memory limit for PHP as Apache module.
If I put following directive in Apache configuration, that work OK:
php_value memory_limit 1.99G
But over 2GB do not work, it's ...
63
votes
10
answers
196k
views
checking memory_limit in PHP
I'm need to check if memory_limit is at least 64M in my script installer. This is just part of PHP code that should work, but probably due to this "M" it's not reading properly the value. How to fix ...
54
votes
3
answers
199k
views
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes)
I'm getting an error when I try to open one of my dashboard pages in my wordpress script
The error message is as follows:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried
to ...
47
votes
9
answers
70k
views
Mongo error when using aggregation: sort exceeded memory limit
I get the mongo error exceeded memory limit with error code 16819 when I use aggregation sort.
Im using mongo 2.6.
The query is as follows:
db.BASE_TABLE_CREATION_ExecuteHiveScript_26_V0.aggregate([...
42
votes
8
answers
126k
views
Allowed memory size of X bytes exhausted
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 13965430 bytes)
PHPInfo shows that I have a memory_limit of 128M, so I'm confused as to why the error says I only have ...
29
votes
3
answers
32k
views
phpunit memory_limit parameter does not apply
I've just installed phpunit via pear in a mac osx 10.7 and everything works fine except I got memory limit errors (xdebug enabled for reports).
I tried to add the -d memory_limit=512M parameter to ...
28
votes
3
answers
42k
views
Is the more the better for PHP memory_limit? [closed]
In PHP, i am oftenly facing memory limit problem. Especially with highly resource integrated systems like Drupal, etc.
What i want to know here is:
Is it good to have very high php memory limit like ...
26
votes
10
answers
90k
views
Upper memory limit for PHP/Apache
I'm getting the error when I run my PHP script....
Fatal error: Out of memory (allocated 1827405824) (tried to allocate 88800 bytes)
I've added this line to my PHP script..
ini_set("memory_limit","...
25
votes
8
answers
102k
views
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes)
I have two domains, webhosted on 000webhost.
I installed wordpress on them and for some days it functioned well, but now it shows me the following error on both of them:
Fatal error: Allowed ...
20
votes
2
answers
6k
views
Undefined index error upon $em->clear() in Symfony2
I have written a Symfony command to import some data from an API. It works but the problem is my PHP memory usage increases when I insert a big JSON in my database. And my unitOfWork increases by '2' ...
14
votes
4
answers
21k
views
php mpdf memory limit error
For the first time im using mpdf library and everything worked fine.
I wrote a script to create pdf file which consist a table of 274 rows. When i run the script i get php memory error. I tried ...
13
votes
5
answers
24k
views
What is the maximum memory available to a C++ application on 32-bit Windows?
Just wondering if there is a restriction on the max memory that a C++ application uses
I understand that this is 2GB - Is that correct?
If a C++ app tries to request more then 2GB memory does this ...
12
votes
6
answers
32k
views
Can't increase MAMP php memory limit
I've been trying to increase the php memory_limit in MAMP (Mac OSX). The version of PHP I'm using is 5.4.1.0. I've read about creating a new template for MAMP Pro, but I'm using the standard version ...
12
votes
3
answers
78k
views
Allowed memory size of 268435456 bytes exhausted [duplicate]
Possible Duplicate:
Allowed memory size of X bytes exhausted
I'm handling with a quite little big database (87mb) import and to do that I use a php script.
All the operations are made in locale ...
12
votes
2
answers
9k
views
PHP upload size and its impact on post size and memory limit
My PHP web application requires files (about 2.5 to 3 GB in size) to be uploaded to the server. How will this impact on following directives ?
what are the required values in my case?
post_max_size ...
9
votes
2
answers
8k
views
How to set memory_limit php 5.3 on Dreamhost
I'm currently using dreamhost to host my webiste. However an application i'm using requires a higher memory limit then the default for 90M. I'm relatively new to this and I've tried the following to ...
9
votes
1
answer
5k
views
Airflow: how to specify quantitative usage of a resource pool?
I am looking at several open source workflow schedulers for a DAG of jobs with heterogeneous RAM usage. The scheduler should not only schedule less than a maximum number of threads, but should also ...
9
votes
1
answer
1k
views
memory_limit: How does it work?
I have a php script that runs for about 2 hours. It is a cron job. The cron job runs every 4 hours.
At the end of the script, I display some memory values.
The memory_get_usage() result is 881568 ...
8
votes
1
answer
11k
views
Why memory usage is greater than what I set in Kubernetes's node?
I allocated resource to 1 pod only with 650MB/30% of memory (with other built-in pods, limit memory is 69% only)
However, when the pod handling process, the usage of pod is within 650MB but overall ...
8
votes
2
answers
31k
views
PHP ini_set memory limit
When we use ini_set like below in code, will memory limit be the same for all other codes? or only valid for in which code we added ?
ini_set('memory_limit', '512M');
Thanks
7
votes
3
answers
15k
views
Laravel DB Insert Error: Allowed Memory Size Exhausted
I'm running into an issue when trying to insert ~20K records into my DB. I notice that even though I'm echoing inside my foreach loop, I'm not getting anything outputted in the command line. Instead, ...
7
votes
1
answer
16k
views
PHP memory_get_usage is larger than memory_limit
My PHP application has been running a bit slow and it's not very memory efficient at the moment. My whole server has been going down very often and I think I have this app to blame. I thought I'd ...
6
votes
2
answers
8k
views
Integers of unlimited size?
In Python, I can write a program to calculate integers of unlimited size. Just the other day I did the one millionth fibonacci number, and it was so large It was unable to fit in the console. If this ...
6
votes
2
answers
4k
views
How to prevent Java from exceeding the container memory limits?
I'm running a Java program inside a Docker container that has a hard memory limit of 4GB. I've set the max heap to 3GB but still the Java program exceeds the limit and gets killed (OOMKilled).
My ...
6
votes
3
answers
5k
views
How to detect when a Docker container reaches its configured memory limit
Given a Docker container that has been launched with a memory limit, I wonder if it possible to detect when that memory limit is being enforced, and thus the container is about to crash because it's ...
6
votes
1
answer
6k
views
R Decrease memory limit
I know it's easily possible to increase the memory limit of R using the command memory.limit(size=N). If I try to decrease it to a value smaller than N, for obvious reasons I get the error:
Warning ...
6
votes
1
answer
6k
views
Google Cloud Functions memory limit exceeded
We do a lot of image processing in Google Cloud Functions using NodeJS and Sharp (libvips) library. Even though we have the memory limit for our functions set to 2Gb the function occasionally runs out ...
6
votes
1
answer
262
views
How to make big array (26000 x 26000) using PHP?
i try to make array with PHP. The dimension of the array is 26000 x 26000. Is it possible to make array that big? I already try to make an array with dimension 10000 x 10000 but the program keep ...
5
votes
2
answers
17k
views
Collection Maximum Size
Here's my code:
Sub isdofsodjisf48023jroi23f984444444jiodfiosj12348023jroi23f98()
Dim colFiles As New Collection
RecursiveDir colFiles, "C:\Documents and Settings\Alex Gordon\Desktop\testing\...
5
votes
2
answers
2k
views
Erlang: How to limit the memory assigned to a process
What I'm asking is if it's possible to limit memory (heap or stack) assigned to a specific process, so that this process can't exceed it.
Maybe something like "process_flag(min_heap_size, MinHeapSize)"...
5
votes
3
answers
2k
views
Serving Large Protected Files in PHP/Apache
I need to serve up large files (> 2gb) from an Apache web server. The files are protected downloads, so I need some kind of way to authorize the user. The CMS I'm using uses cookies checked against a ...
5
votes
6
answers
4k
views
PHP memory_get_peak_usage and ini_set('memory_limit', '-1')
I recently ran into memory allocation problems, so I started experimenting with the ini_set('memory_limit', value); directive where I tried to enter values incrementaly. Now, searching through the web ...
5
votes
1
answer
93
views
Search unique fours for the defined sum
I have a task to find four unique elements , sum of which is defined. So I have as input data : data array of n elemeents, elements can be duplicated, and 's' is sum.
I have two cycles , first i in ...
5
votes
0
answers
764
views
Limit Julia memory consumption
Is there any particular command line flag to use for restricting memory consumption by Julia scripts? (Specifically for Genie apps)
Or any similar way to limit such consumption?
5
votes
0
answers
372
views
Why No More Memory Allocation in This App of Ubuntu 12.04 64-bit virtualenv? [closed]
We have a server running 64-bit Ubuntu 12.04, which is serving a django application running under virtual environment, along with a celery worker.
The problem is no process in the server uses more ...
5
votes
0
answers
6k
views
valid memory limit test
I´m having trouble with a crashing ION-Cube module.
The module imports csv data into our database, but if the csv file is to large (15+M)
the result is a internal server error.
The support told me ...
4
votes
6
answers
14k
views
"php --help" results in "PHP memory exhausted" error on Ubuntu
PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 523800 bytes) in Unknown on line 0
Same thing occurs with "php5 --help"
I have already researched this and read ...
4
votes
4
answers
7k
views
How to read big file in php without being memory limit
I'm trying to read a file line by line. The problem is the file was too big(over 500000 line) and I reach out the memory limit. I wonder how to read the file without being memory limit.
I'm thinking ...
4
votes
4
answers
799
views
Does PHP memory_limit pre-allocate memory to PHP
Some of the pages on our website a hitting the PHP memory limit, which is currently set to 128MB. When requesting to bump the memory limit to 256MB, we were told by the engineer at our hosting company ...
4
votes
6
answers
10k
views
Increase PHP Memory limit (Apache, Drupal6)
I'm trying to run a Drupal installation on a shared hosting server. (I'm just subscribing to a provider - I don't own the box.)
I need to increase the PHP memory limit for my Apache server. I have ...
4
votes
4
answers
14k
views
file_put_contents and file_get_contents exhaust memory size
I have some simple trying to write from one file to another.
$content=file_get_contents("C:\Users\Borut\Desktop\sql_PW1\mm_ads (1).sql");
file_put_contents("C:\Users\Borut\Desktop\sql_PW1\New", $...
4
votes
2
answers
7k
views
PHP Command-line scripts are ignoring php.ini and ini_set('memory_limit',...) directives
I am facing the common "Fatal error: Out of memory (allocated 30408704) (tried to allocate 24 bytes)..." PHP Fatal error. Pages served via Apache are not exhibiting this behavior.
I've tried ...
4
votes
4
answers
5k
views
C++ Change Max RAM Limit
How would I change the max amount of RAM for a program? I constantly am running out of memory (not system max, ulimit max), and I do not wish to change the global memory limit. I looked around and saw ...
4
votes
3
answers
3k
views
php file_get_contents(): content truncated from 2147483648 to 2147483647 bytes
How can I find out the issue when I'm going to create zip file of 2GB file.
Error
file_get_contents(): content truncated from 2147483648 to 2147483647
bytes
Fatal error: Out of memory (...
4
votes
2
answers
1k
views
GAE: Does execution continue after hitting "Exceeded soft private memory limit"?
One of my GAE task-queue requests exceeded the soft memory limit (log below). My understanding of the soft memory limit is that it lets the request complete and then after it finishes, it shuts down ...
4
votes
1
answer
1k
views
resize multiple images in php without exceeding memory limit
I am currently trying to get a form which will allow multiple images to be uploaded and resized on the server using PHP. Each uploaded image by the client is around 2.5mb in size.
I am currently ...