• 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: show-stopping issues with my WO5.1 Deployment on Xserve
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: show-stopping issues with my WO5.1 Deployment on Xserve


  • Subject: Re: show-stopping issues with my WO5.1 Deployment on Xserve
  • From: Cliff Tuel <email@hidden>
  • Date: Thu, 27 Feb 2003 11:43:56 -0800

> 2. I have a utility function that will fetch 15 thousand or so records and
> create 15 thousand records.

15K records seems wildly excessive; do users really need to see them all at
once?  Can't you fetch in batches or use a limiting qualifier?  Also,
remember when you deploy 8 instances, that's 120,000 records in memory!  If
you think a GB is enough RAM, fine, but if not use fewer instances, each
with more active sessions (perhaps utilizing an EOSharedEditingContext to
store common data).

> I run this on my dev machine (a G4 tower with
> 768meg of mem) in direct-connect mode and it runs through without stopping.
> I run this same thing on the Xserve in direct-connect mode and it keeps
> telling me I run out of memory.

Same OS X version?  Same WebObjects version?  Same launch flags?

> What gives?  How do I check my VM usage?

I don't think you can see the Java VM's usage from a shell (could be wrong),
but from your code you can use java.lang.Runtime.freeMemory().

> Can I do it without altering my app? I found postings that suggest -mm and
> -mx command-line args.  I put these on the WOApp command-line and there's no
> difference.  I can't even tell if it's taking effect.  I know I might be

We're publishing a Knowledge Base article on that very topic next week.  The
flags are -Xms???m and -Xmx???m, where "???" is the number of MB.  I'll send
you a draft off-list.  Again, 'top' will show you the process size, which
should equal the -Xmx size plus some overhead.

Note that a Java OutOfMemory exception means you're out of VM, not out of
RAM.  Big difference.

> 3. If I want (or need to) how can I update (software-update) the OS from
> command-line?

Use the softwareupdate command.  Highly highly recommended.  Don't ever tell
an Apple engineer you haven't installed the latest patches. :-)

> 4. How do I really check how much memory I have (I know have a gig, but
> 'top' gives me weird memory numbers)

If you're on the console, the Apple menu (About This Mac) should say.  Or
use the hostinfo command.

> ps. Can't Apple make this software any easier?

My advice is to study our documentation thoroughly, and keep your software
up-to-date.  The latest docs are online at
http://developer.apple.com/techpubs/webobjects, and our Knowledge Base at
htpt://kbase.info.apple.com has many helpful articles.  You might find more
answers on the webobjects-deploy and macos-x-server mailing lists.

--
Cliff Tuel email@hidden http://apple.com/services/technicalsupport
_______________________________________________
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.

References: 
 >show-stopping issues with my WO5.1 Deployment on Xserve (From: "Robert B. Hanviriyapunt [G4]" <email@hidden>)

  • Prev by Date: Re: Can't launch apps?
  • Next by Date: Re: Can't launch apps?
  • Previous by thread: Re: show-stopping issues with my WO5.1 Deployment on Xserve
  • Next by thread: connect to db timeouts?
  • Index(es):
    • Date
    • Thread