• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory leak but only on Red Hat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leak but only on Red Hat


  • Subject: Re: Memory leak but only on Red Hat
  • From: Q <email@hidden>
  • Date: Thu, 2 Dec 2010 08:59:06 +1000


On 01/12/2010, at 5:00 PM, D Tim Cummings wrote:

Hi Q

WOHTTPConnection

^^^ There's your problem.  Don't use that class, it's broken. I once encountered a case where it would not work with a particular url, no matter what I did, it would always hang. If I changed the data being returned slightly it worked fine. I have not used it since. As others have suggested, use HttpClient instead.

sendRequest(WORequest request) creates a new thread to implement timeout.  I was creating threads also because the sendRequest implementation of timeout wasn't working for me.  I disabled my code that created threads but was still getting the OutOfMemory problem.

Start of the thread dump below. I was able to reproduce the problem by manually clicking on the refresh page button over and over again.

-- 

Seeya...Q


Quinton Dolan - email@hidden

Gold Coast, QLD, Australia (GMT+10)





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: SQLSERVER PlugIn for WebObjects
  • Next by Date: D2W locking error
  • Previous by thread: Re: Memory leak but only on Red Hat [SOLVED]
  • Next by thread: SQLSERVER PlugIn for WebObjects
  • Index(es):
    • Date
    • Thread