heap-memory Questions

6

Solved

I have repeatedly got the java.lang.OutOfMemoryError: Java heap space error when compiling my android project on IntelliJ Idea. I increased my java heap space by following the link here however th...
Sharanshard asked 30/7, 2013 at 17:35

3

Solved

I'm making a desktop application in java and am doing some memory optimisations. That made me come across two threads running in the JVM, both named: RMI TCP connection And they're both contribut...
Hilmahilt asked 24/11, 2016 at 19:41

2

Solved

Does std::vec::shrink_to_fit allocate a new, smaller vec.len() buffer of data, copy to it, and destruct the old buffer, or does it somehow indicate to the memory allocator that the uninitialised pa...
Hagler asked 22/5, 2023 at 17:0

10

Solved

I want to allocate around 1GB of heap size, but I can't seem to figure it out. How to do this?
Gurnard asked 20/6, 2013 at 19:3

1

Could you kindly help us with a query we have regarding a Java 8 Spring boot application running in Docker containers in ECS? After migrating to Java 17, we observed a significant 1GB increase in m...
Whiffletree asked 3/5, 2023 at 7:15

4

I'm trying to run a node server on a free AWS EC 2 instance. Locally I can build and run my server, on AWS it keeps crashing, though. I run $ npm run build Error message: findus | <--- Last f...
Gamboge asked 2/5, 2020 at 20:14

9

I wonder if there is a good way to find the source code that causes a heap corruption error, given the memory address of the data that was written 'outside' the allocated heap block in Visual Studi...
Schumann asked 18/3, 2010 at 13:32

4

Solved

I am trying to follow up on some tips in this blog https://www.elastic.co/blog/a-heap-of-trouble#ref5 which discusses the benefits of sizing one's Java heap so that (a) compressed pointers can be u...
Psychopathist asked 6/10, 2017 at 3:5

9

Solved

A heap is a tree data structure where higher levels of the tree always contain greater (or lesser, if it's set up that way) values than lower levels. "The" heap is a bunch of free RAM that a progra...
Egerton asked 16/4, 2009 at 16:9

31

Solved

What are the stack and heap? Where are they located physically in a computer's memory? To what extent are they controlled by the OS or language run-time? What is their scope? What determines their...

0

here is gradle.properties org.gradle.jvmargs=-Xmx4608m android.useAndroidX=true android.enableJetifier=true org.gradle.unsafe.configuration-cache=true
Dioscuri asked 3/2, 2023 at 11:18

3

Given a map allocation where the initial space is not specified, for example: foo := make(map[string]int) The documentation suggests that the memory allocation here is implementation dependent. ...
Ahasuerus asked 18/9, 2017 at 11:17

18

How can I check heap size (and used memory) of a Java application on Linux through the command line? I have tried through jmap. But it gives information about internal memory areas, like Eden, Perm...
Claudication asked 9/10, 2012 at 10:3

24

Solved

This question may sound fairly elementary, but this is a debate I had with another developer I work with. I was taking care to stack allocate things where I could, instead of heap allocating them....
Lindner asked 2/10, 2008 at 6:6

5

Solved

My Jenkins jobs are running out of memory, giving java.lang.OutOfMemoryError messages in the build log. But I used the Ubuntu Package Manager, aptitude, or apt-get to install Jenkins, and I don't k...
Zins asked 7/2, 2013 at 22:21

7

Solved

Stumbled upon this interview question somewhere, In C, Given a variable x, how do you find out if the space for that variable is allocated on the stack or heap? (Is there any way to find it out p...
Allseed asked 5/12, 2012 at 9:5

4

Solved

I have been using PySpark with Ipython lately on my server with 24 CPUs and 32GB RAM. Its running only on one machine. In my process, I want to collect huge amount of data as is give in below code:...
Sturm asked 1/9, 2015 at 16:45

2

Solved

I've been trying to figure out when things get allocated on stack and I can't figure out how would you make array (or rather values in it) get allocated on stack; in this example: public void foo...
Misjudge asked 28/8, 2015 at 15:1

1

It is well known that the freeing of heap memory must be done with the same allocator as the one used to allocate it. This is something to take into account when exchanging heap allocated objects a...
Venesection asked 6/10, 2022 at 11:38

3

Solved

Are Java records similar to C# structs? I mean, if they are stack allocated instead of using references like classes, that are allocated on heap.
Wiburg asked 9/11, 2020 at 17:42

2

Solved

Currently, I'm storing a collection of std::unique_ptrs to heap allocated objects of a polymorphic type: struct Foo { virtual ~Foo() = default; }; Collection<std::unique_ptr<Foo>> foo...
Franfranc asked 8/2, 2020 at 16:23

3

I'm a beginner with operating systems, and I had a question about the OS Kernel. I'm used to the standard notion of each user process having a virtual address space of stack, heap, data, and code....

2

Solved

I have a program compiled with gcc 11.2, which allocates some RAM memory first (8 GB) on heap (using new), and later fills it with data read out in real-time from an oscilloscope. uint32_t* b...
Ajit asked 31/8, 2022 at 11:45

6

Solved

I'm experiencing a bit of cognitive dissonance between C-style stack-based programming, where automatic variables live on the stack and allocated memory lives on the heap, and Python-style stack-ba...
Drugstore asked 2/6, 2012 at 21:46

3

Solved

Is it possible to see contents of stack and heap after every line of execution. I want to see it as it will give clear idea about memory allocation and deallocation in .Net. With your If any docu...
Ultravirus asked 25/9, 2011 at 17:45

© 2022 - 2025 — McMap. All rights reserved.