• 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
resource flushDataCache()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

resource flushDataCache()


  • Subject: resource flushDataCache()
  • From: Tom Pelaia <email@hidden>
  • Date: Tue, 07 Oct 2003 13:23:57 -0400
  • Organization: ORNL/SNS

Hi,

We have built and have been deploying an electronic logbook written using WebObjects 5.1 and deployed under J2EE via OC4J. The only problem is that after about one month of 24x7 operation, the application server runs out of memory. Since the logbook is rich in images and attachments which are all submitted and viewed by users and stored in a databases, the most likely culprit is the known memory leak of the resource manager which occurs when images don't make it from the server to the client for whatever reason. The recommended fix is to call flushDataCache() on the resource manager. The only problem is that I can't figure out when to call it. The logbook runs 24x7 and it runs the sessions are all concurrent. The version of OC4J that we are using for deployment does not have any auto recovery or periodic shutdown of instances, so I must find a way to clean up memory internal to the application. Whenever I call flushDataCache() images and attachments don't make it to active sessions.

Where is the safest place to call flushDataCache()?

thanks,
-tom

--
Tom Pelaia
SNS Project, 701 Scarboro Road, MS-6473, Oak Ridge, TN 37830
phone: (865)574-6421, fax: (865)574-6617
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Relationship between 2 models
  • Next by Date: Re: Relationship between 2 models
  • Previous by thread: Re: Relationship between 2 models
  • Next by thread: Re: resource flushDataCache()
  • Index(es):
    • Date
    • Thread