The documentation mentions that there are issues with profiling large heaps on 1.4 class VMs. How large is large?
Does it make sense to spend energy profiling 2.5 Gb heap on 1.4.2 VM?
Profiling Large Heaps on 1.4
-
- Posts: 1626
- Joined: Tue Aug 10, 2004 7:52 pm
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
I'd like to add a correction to the provious answer.
The 1.4 JVM indeed temporarily needs almost the same memory as the size of all objects allocated in heap when it captures a snapshot.
If your Java is 32 bit, it is not possible (even theoretically!) to allocate 2*2.5 G (the maximum possible size allocated for all objects) which exceeds 4G memory access limit of 32 applications.
In practice, there are known cases when 1.4 JVM had problems capturing snapshot of a little bit more than 1G size heap.
So the best is to use Java 5 for this task. Java 1.4 is not designed for such tasks.
The 1.4 JVM indeed temporarily needs almost the same memory as the size of all objects allocated in heap when it captures a snapshot.
If your Java is 32 bit, it is not possible (even theoretically!) to allocate 2*2.5 G (the maximum possible size allocated for all objects) which exceeds 4G memory access limit of 32 applications.
In practice, there are known cases when 1.4 JVM had problems capturing snapshot of a little bit more than 1G size heap.
So the best is to use Java 5 for this task. Java 1.4 is not designed for such tasks.