This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line! See this thread for details.
I make a spider program, but it runs out of memory after ~200 websites.
after that it crashes.. or becomes so slow its useless.
The problem is in this Spider class , that cant be garbage collected (But I dont see any reason why not)
These profilers i have seen show you that memory is allocated and cant be garbage collected , but not where ? Can anyone give suggestions what can be wrong with this class or tell how they fix memory problems?
It must have something to do with the inner classes and processURL since i replaced only this code Swing parser with htmlparser.
I dont expect anyone to exactly say this is wrong or that, but maybe some tools and suggestions how to solve would be very welcome.
[ May 13, 2006: Message edited by: peter velth. ] [ May 13, 2006: Message edited by: peter velth ]
Suggestion two is to comply with our policy on display names. You'll find that no one takes you seriously with a name like "pet vet", and you're unlikely to get your question answered. JavaRanch requires your display name to be a real (sounding) first and last name. You need to change your display name here. Thank you for your immediate attention.