Top "Memory" questions

Use this tag for memory management or issues in programming.

Memory Stream in Java

I am looking for a memory stream implementation in Java. The implementation should be roughly modeled after the .NET memory …

java memory stream seek
How to load a large xlsx file with Apache POI?

I have a large .xlsx file (141 MB, containing 293413 lines with 62 columns each) I need to perform some operations within. I …

java memory apache-poi out-of-memory xssf
How does a "stack overflow" occur and how do you prevent it?

How does a stack overflow occur and what are the best ways to make sure it doesn't happen, or ways …

memory stack-overflow
How to use StringBuilder wisely?

I am little confused about using StringBuilder class, first: A string object concatenation operation always creates a new object from …

c# .net string memory stringbuilder
How to clear MemoryCache?

I have created a cache using the MemoryCache class. I add some items to it but when I need to …

c# caching memory .net-4.0 memorycache
How to know bytes size of python object like arrays and dictionaries? - The simple way

I was looking for a easy way to know bytes size of arrays and dictionaries object, like [ [1,2,3], [4,5,6] ] or { 1:{2:2} } Many topics …

python object memory size byte
JMeter OutOfMemoryError

I am facing below OutOfMemor errors, and JMeter stops working.... java.lang.OutOfMemoryError: Java heap space Dumping heap to java_…

memory heap jmeter out-of-memory heap-memory
How do cache lines work?

I understand that the processor brings data into the cache via cache lines, which - for instance, on my Atom …

memory caching line processor
Recommendations for a heap analysis tool for Java?

List your favorite heap analysis tools (e.g. jprofiler, jmap, ...). Let's keep it one tool per answer, with a short …

java memory profiling heap
Approximate cost to access various caches and main memory?

Can anyone give me the approximate time (in nanoseconds) to access L1, L2 and L3 caches, as well as main …

memory latency cpu-cache low-latency