Application is for high volume (in memory) data mining and processing of data. You said adding threads would not make a difference since there is low cpu wait time. Do you have any other suggestions?
I am looking for an answer on "performance change due to increase in number of threads". I have seen considerable change ( :roll: both improvement as well as degradation) in performance by adding number of threads.
I have a cpu intensive java application which spawns multiple threads withing a JVM. Does anyone has insight into max number of threads which is recommended per JVM.
What do you mean by the application completing? If the program JVM exits normally you should get back all the memory.
I am not running a web application, I am running a simple core java application and even after it exits normally it does not release the memory. I am using jdk1.4
The Java heap can grow, but it never shrinks -- although sometimes it contains free space.
Does this mean that JVM can not release memory even after application execution is complete? I am running my memory intensive application and when I check the memory available after my application completes, even then memory is not freed.
In the first 2 methods, the return value will be identical for all objects, thus it will be inefficient. In the 3rd case the value will be based on the variable which will be less likely to return same hash code.