Skip to content

Tag: heap-memory

Java Virtual Machine Heap Tuning Parameters

What would be the effect of setting only -Xms without setting a -Xmx for eg. java -Xms 2048m ? Does setting a high lower value for -Xms mean lesser Heap Fragmentation? Answer Setting -Xms to the estimated heap requirement of your application will speed up start of your application (of course Xms must be <=…

Android Thread Allocation – growing heap?

Hi everyone out there, i am developing an android application against API 7 at the moment in which i use an activity which need to be restarted. Lets say my activity looks like this: The problem is that the gc doesnt seem to free the fullAnim thread so that the heap is growing by ~100K at every restart &#8211…

java, OutOfMemoryError: Java heap space

This class is designed to determine the language of a text; the user has to enter 4 text in english, danish, italian and latin, and then the text whose language he wants to determine. The console says I use eclipse, in Run Configurations – Arguments I wrote -Xms2g-Xmx3g. I don’t understand where i…

Set the heap size of java with Garbage collection enabled

I am running JVM in a ubuntu ec2 instance which runs only solr and nothing else. Now I wanna configure the Heap size of the JVM which is running. The problem is I am not using Sun Jdk I am using the following versions and settings How do I reset the heap size to my requirements.Also I want to enable