How would the memory look like for this object?

At this place the myInt is stored and the myString reference value (which is the reference to the real string value) Let’s make sure you’re not going down bad paths here. First off, it’s unclear to me why you re-ordered the integer and the string in the diagram compared to the source code. It is … Read more

Java Memory explained (SUN JVM)

Here’s a list of resources I had noted down. Some of these explain how the heap/garbage collection works and some have details on how to configure everything. IBM How does garbage collection work? Detailed description of garbage collection Generational and concurrent garbage collection Sun Turbo-charging Java HotSpot Virtual Machine, v1.4.x to Improve the Performance and … Read more

memory error in python

If you get an unexpected MemoryError and you think you should have plenty of RAM available, it might be because you are using a 32-bit python installation. The easy solution, if you have a 64-bit operating system, is to switch to a 64-bit installation of python. The issue is that 32-bit python only has access … Read more