TOPIC This document discusses methods for configuring the Java Virtual Machine under WebObjects 4.5. For information on using Java under WebObjects 3.5.1, please see the WebObjects 3.5.1 Java Bridge Troubleshooting Guide . DISCUSSION
Q:
How do I pass command-line arguments to the Java VM? I need to increase the garbage heap size, so that my application doesn't run out memory.
There are three ways to set these arguments: 1) Use the defaults command-line tool: defaults write myapp NSJavaMinHeapSize 33554432 2) Pass them on the command line: MyApp.woa/MyApp -NSJavaMinHeapSize 33554432 3) Set them programatically. Refer to the documentation for NSUserDefaults (Objective C) or com.apple.yellow.foundation.NSUserDefaults (Java). |
Document Information | |
Product Area: | WebObjects |
Category: | WebObjects 4.5 |
Sub Category: | Development; General Topics |
Copyright © 2000 Apple Computer, Inc. All rights reserved.