the amount of memory allocated and/or used by a particular algorithm or application
Questions tagged [memory-consumption]
107 questions
62
votes
8 answers
How to log the memory consumption on Linux?
Is there any ready-to-use solution to log the memory consumption from the start of the system? I'd like to log the data to simple text file or some database so I can analyze it later.
I'm working on Linux 2.4-based embedded system. I need to debug…

bialix
- 20,053
- 8
- 46
- 63
43
votes
6 answers
Calling getters on an object vs. storing it as a local variable (memory footprint, performance)
In the following piece of code we make a call listType.getDescription() twice:
for (ListType listType: this.listTypeManager.getSelectableListTypes())
{
if (listType.getDescription() != null)
{
children.add(new SelectItem(…

Kawu
- 13,647
- 34
- 123
- 195
25
votes
2 answers
Go memory consumption management
I am new to Go and trying to figure out how it manages memory consumption.
I have trouble with memory in one of my test projects. I don't understand why Go uses more and more memory (never freeing it) when my program runs for a long time.
I am…

duganets
- 1,853
- 5
- 20
- 31
21
votes
1 answer
Python memory consumption on Linux: physical and virtual memory are growing while the heap size remains the same
I'm working on the some kind of a system service (actually it's just a log parser) written in Python. This program should work continuously for a long time (hopefully I mean days and weeks without failures and needs of restart). That's why I am…

Vitaly Isaev
- 5,392
- 6
- 45
- 64
21
votes
4 answers
How to reduce SQLite memory consumption?
I'm looking for ways to reduce memory consumption by SQLite3 in my application.
At each execution it creates a table with the following schema:
(main TEXT NOT NULL PRIMARY KEY UNIQUE, count INTEGER DEFAULT 0)
After that, the database is filled with…

Pedro Alves
- 1,667
- 4
- 17
- 37
19
votes
2 answers
Setting memory consumption limits with Upstart
I've recently become quite fond of Upstart. Previously I've been using God, Monit and Bluepill but I don't really like these solutions so I'm giving Upstart a try.
I've been using the Foreman gem to generate some basic Upstart configuration files…

Michael van Rooijen
- 6,683
- 5
- 37
- 33
17
votes
2 answers
Limit memory used by cabal install?
I'm limited by 1GB memory on my server hosting. When I want to compile some big program like git-annex, Cabal eats lot of memory. Is there a way to limit cabal or gcl using some option to limit memory usage?
I updated question with some details: I'm…

reyman64
- 523
- 4
- 34
- 73
15
votes
1 answer
Does numpy reshape create a copy?
Is there a way to do a reshape on numpy arrays but inplace. My problem is that my array is very big so any unnecessary copies strain the memory.
My current approach is like this:
train_x = train_x.reshape(n,32*32*3)
this doesn't exactly solve the…

Guilherme de Lazari
- 1,134
- 2
- 11
- 26
13
votes
3 answers
Using Reflection to determine which Fields are backing fields of a Property
I'm using reflection to map out objects. These objects are in managed code but I have no visibility into their source code, underlying structure, etc. other than through reflection. The overarching goal of all this is a rudimentary memory map of an…

nbelisle11
- 172
- 2
- 10
11
votes
4 answers
SQL Server 2008 takes up a lot of memory?
I am conducting stress tests on my database, which is hosted on SQL Server 2008 64-bit running on a 64-bit machine with 10 GB of RAM.
I have 400 threads. Each thread queries the database every second, but the query time does not take time, as the…

Ahmed
- 7,148
- 12
- 57
- 96
11
votes
4 answers
The memory consumption of hadoop's namenode?
Can anyone give a detailed analysis of memory consumption of namenode? Or is there some reference material ? Can not find material in the network.Thank you!

jun zhou
- 133
- 1
- 2
- 6
9
votes
2 answers
Regarding Memory Consumption of CouchDB
I did some evaluations on CouchDB recently. I found that memory consumption is pretty high for view construction (map & reduce) as well as importing a larger JSON document into CouchDB. I evaluated the view construction function on a Ubuntu system…

Jack
- 101
- 3
8
votes
6 answers
IE 11 (Update Version: 11.0.24) Memory Consumption Issue
After installing windows update, my IE version updated to 11.0.9600.18059 (Update Version: 11.0.24), and I found that its consuming too much memory, when I open 3-4 tabs and surfing 10-15 mins, memory raise up to 1300-1500 MB and I have to restart…

Rushay Trivedi
- 101
- 1
- 1
- 5
8
votes
2 answers
Memory consumption of sparse arrays in Node.js
I have written a small program that produces arrays, which runs quite long (almost forever ;-)):
var results = [];
var i = 1;
while (true) {
console.log(i++);
results.push([]);
}
When, instead of an empty array, I create a sparse array of…

Golo Roden
- 140,679
- 96
- 298
- 425
7
votes
3 answers
How many integers can I create in 1GB memory?
In book Algorithms fourth edition by Robert Sedgewick on page 200, it says "for example, if you have 1GB of memory on your computer (1 billion bytes), you cannot fit more than about 32 million int values."
I got confused after my…

Max
- 1,012
- 1
- 9
- 15