Skip to content
Advertisement

Tag: memory

Memory map for Neo4j embedded

When using Neo4j in the embedded mode (Java API), one can manually set memory map settings using the following API calls (or similar): My question is: Is the mapped memory allocated out of Java heap/extended memory or from the rest of the memory available. I know that for Neo4j server the latter is correct as long as it is run

Need an explanation for apparent heap size reduction

From the GC logs, it appears that the heap size is being reduced across young and old generations after sometime. Below are three entries from the logs. {Heap before gc invocations=5: PSYoungGen total 44800K, used 44180K [0x18220000, 0x1b420000, 0x24a20000) eden space 38400K, 100% used [0x18220000,0x1a7a0000,0x1a7a0000) from space 6400K, 90% used [0x1ade0000,0x1b3853c8,0x1b420000) to space 6400K, 0% used [0x1a7a0000,0x1a7a0000,0x1ade0000) PSOldGen total 51200K,

About VM arguments

Am I right in thinking that when one specifies VM arguments in an IDE (I’m using NetBeans in this instance), that these arguments are only passed when the code is run through the IDE itself? Essentially, I’d like to specify that when my program runs, the VM’s minimum/initial heap size is 2Gb. I can do this using the -Xms2048m command,

Does Java’s new keyword necessarily denote heap allocation?

I’m trying to write something fast, and that constantly allocates and deallocates memory, making where this memory is allocated important in terms of performance. Does allocating objects always allocate them to the heap? Does JIT compilation do fancy allocation optimization of any sort? Answer Objects allocated with new are placed on the heap, but the JIT/JVM might optimize them to

Java Heap and Pass By Value

I am a little confused as to how my Java program is allocating memory. Below is a typical situation in my program. I have an object created on the Heap inside of a class which I pass to other functions inside of other classes. My question(s) are about how the memory is used. When A’s list gets passed to B.bar(),

where is array saved in memory in java?

If I have a function that in that function I declare: Where are arr and the whole array stored? heap? stack? Does it matter if the declaration is in some function or in main()? and let’s say I also have these command lines: where are arr[0] and arr[1] stored? Answer Memory diagram: Boxes are memory locations (where binary numbers can

Advertisement