I have to create a RMI program,when i run this program it will run only few minutes then show “java.lang.outofmemoryError: java heap space” problem. I have to use Window 7 with 1.5 GB RAM and JDK1.6
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Smells memory leak. Although Java does garbage collection, you still need to make sure you don’t hold onto (strong reference) to objects that you no longer need. For example, if you do not unregister event handlers (and event handler boilerplate code holds strong reference to the handlers), those handlers will never be collected and thus memory leak.
Without knowing more of your program, we can just guess here.