File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I permamently tenure a datastructure.

 
winton davies
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a big big in memory datastructure (~1gb) (and this is just about the limit for most JVMs as well).
I have had some success earlier in LISP on a similar problem, by basically loading the datastructure, and the telling the GC that it is never, ever, supposed to look at it.
I've been looking through the 1.3.1 hotspot JVM hints, and can't find how to get stuff into the "Perm" area. Any other ideas ?
Many thanks,
Winton
------------------
 
winton davies
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, answered it myself...
use static final.... seems to work...
Winton
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic