Skip to content
Advertisement

Tag: heap-memory

Java heap size – will this work?

I try this with NetBeans desktop application template – increasing heapsize (to 512 MiB) of executed .jar file. (I believe that NetBeans uses Singleton app by default – SingleFrameView) Will it work? Answer Not going to work. The heap space is set from the -Xmx parameter at JVM initialization time. By the time you’re running Java code, it’s too late.

Java heap terminology: young, old and permanent generations?

I’m trying to understand What the concepts of young, old and permanent generations are in the Java heap terminology, and more specifically the interactions between the three generations. My questions are: What is the young generation? What is the old generation? What is the permanent generation? How does the three generations interact/relate to each other? Answer This seems like a

increasing heap size in netbeans.conf file

I was reading in netbeans 6, you don’t have to set the maximum heap size, it will just look at your computer for that information. My system has 8 gigs of ram, but my application only has 64mb to play with and it is running out of memory. I did a: System.out.println(Runtime.getRuntime().maxMemory()); And it is 66 650 112 bytes (63.5625

Running out of java heap space- 15 puzzle problem

G’day all, I tried the solution for eight puzzle problem posted here by joel Neely and played around with it and modified it so that can be used to solve for higher grids[Changed the String representation of the grid to two dimensional integer representation and modified the logic accordingly]. However the modified code can solve the 3×3 grids but quickly

Java Object Method Stack Frame Parameters

So in java, say you have a non-static method ‘bar()’ in an class ‘Foo’. Say then that you call this method like so: Now the stack frame for the call includes the integer parameter, as well as a ‘this’ parameter to be used as an internal reference to the object. What other interesting parameters are copied to the new stack

Advertisement