Skip to content

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…

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()); An…

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 i…