From: Mike A <pun...@ho...> - 2004-04-20 12:26:23
|
Hi everyone, I've been using HtmlUnit for 3 days now and it's working beautifully, except for the memory usage. Sometimes when a complicated page loads, the memory usage jumps 10 MB. As I'm using it to recursively open new pages in our web application, this quickly boils over into an OutOfMemoryError. I'm aware of the ability to increase the memory available to Java, and I was wondering what a reasonable setting would be for this. Reading the message list, I saw a recommendation that new WebClients be created so that cached information can be cleared, but as our application uses cookies specific to one browser and the login process takes at least 15 seconds (not my doing!) this doesn't seem doable for us. Is there a programatic way to clear this cache or a proper way of disposing of unwanted HtmlPages that I missed in the JavaDocs? Thanks for the assistance, Mike _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ |