Anurag Jain

Greenhorn
+ Follow
since Jul 23, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Anurag Jain

I would agree and i have deleted my earlier post in favor of this correct answer!
Bill,

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?
18 years ago
Dear Ranch Members,

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.

Thanks
[ April 21, 2006: Message edited by: Anurag Jain ]
18 years ago

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
18 years ago

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.
18 years ago
I updated it, thanks for pointing out!
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.
Cleared SCJP 1.4 with 86%
19 years ago