Reputation: 839
We are using a java application which is based on RMI.When we run the application the memory usage keep on increasing even though the the application is ideal stage.We are mainly using Vector and hash map data structure.how to minimize the java memory usage/repair memory leakage?
Thanks in advance
Upvotes: 1
Views: 400
Reputation: 38541
Since you're using 1.4.2, and you can't use jmap or visualvm, I'd suggest running your Java process with:
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="foo.out"
and after it runs out of memory, open foo.out with HPjmeter. This should help you identify the objects ballooning in your application.
Upvotes: 0
Reputation: 7851
I'd start with trying to understand Java's memory model.
Here's a stackoverflow question (858250) with lots of links explaining.
Upvotes: 0