Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java Application Bundle not launching on 10.3.x



Dan Crow wrote:

>So my question becomes: is there an easy way to display a dialog to the
>user if their machine doesn't have enough memory to launch the VM with the
>requested minimum heap allocation?

None that I know of.  Can you just lower the -Xms value?

What are the min and max heap values you're using, anyway?

Heap-size parameters can have unexpected side-effects on machines that have
less memory than the heap-size request.  For example, swapping problems can
occur:
  <http://lists.apple.com/archives/java-dev/2005/Aug/msg00053.html>

If you have a minimal -Xms value, the app itself can evaluate whether
there's enough physical memory to run usefully.  Then it could display it's
own dialog and quit, or continue running with the memory it has.

Also run the command 'sysctl hw.physmem' (read 'man sysctl' first), which
you may wish to use to dynamically tune the -Xms and -Xmx values for a
given host, and then start your Java app with a prelude shell-script:
  <http://www.amug.org/~glguerin/howto/More-open-files.html>

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.