I have written a program in Java which has 5 threads. In the run() I have a while loop which will loop over and over and this loop will loop a lot of times.
While the program is running, it is gradually eating ram bringing the program to a crawl. Is there anyway I can stop it eating all my ram?
Edit:
Actually just thinking about it, it probably is because the loop is creating lots of objects. Should I = null those objects at the end of the while loop??