• 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
direct buffer allocation with Java 1.4.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

direct buffer allocation with Java 1.4.2


  • Subject: direct buffer allocation with Java 1.4.2
  • From: Guy Hoffman <email@hidden>
  • Date: Tue, 11 May 2004 20:13:42 -0400 (EDT)

Hi,

As described in bug 4879883
(http://developer.java.sun.com/developer/bugParade/bugs/4879883.html),
"Allocating direct buffers causes OutOfMemoryError" in Java 1.4.2

This is due to an automatic limit of 64M to direct buffer allocations.

Sun recommends using the undocumented flag -XX:MaxDirectMemorySize to
increase this limit. This flag does however not work with the Apple
implementation of Java.

The -server option does work with regular java, but does not seem to be
supported in the Cocoa-Java framework.

Does anyone know of a way to increase the limit on direct buffer
allocations in Cocoa-Java ?

Much appreciated,

Guy.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Views, scrolling, zoom and detail
  • Next by Date: Re: What in the world?
  • Previous by thread: Re: mouse moved events in NSView?
  • Next by thread: Re: What in the world?
  • Index(es):
    • Date
    • Thread