Skip to content
Advertisement

Tag: heap-memory

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,

Android: OutOfMemory error and the backstack

the following sheet represents the working flow in the application this question is about. I ran into problems with OutOfMemory Errors, mostly because users were able to switch from activity B to activity D multiple times (They are showing different content for every attempt), without the previous activity being destroyed. This led into a very large backstack resulting in an

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 <= Xmx). Reason is the VM

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 – till

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 is the problem. The code is Answer This

Java collections faster than c++ containers?

I was reading the comments on this answer and I saw this quote. Object instantiation and object-oriented features are blazing fast to use (faster than C++ in many cases) because they’re designed in from the beginning. and Collections are fast. Standard Java beats standard C/C++ in this area, even for most optimized C code. One user (with really high rep

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

Advertisement