Re: OutOfMemoryError in my Java app
Re: OutOfMemoryError in my Java app
- Subject: Re: OutOfMemoryError in my Java app
- From: Greg Guerin <email@hidden>
- Date: Wed, 1 Nov 2006 18:22:42 -0700
Paul Archibald wrote:
>I wonder if the -X options belong somewhere else. After all, my app does
>not take any arguments itself. And stopping in the debugger at main(), I
>see these options being passed to my app as arguments. Isn't that a bit
>late for setting a memory allocation?
If your Java app is seeing the -X options in its own args, then they're
definitely in the wrong place.
Exactly what kind of Java app is it?
If it's a bundled Java app, then the -X options go in the app's Info.plist.
See:
<http://developer.apple.com/documentation/Java/Conceptual/JavaPropVMInfoRef/Articles/JavaDictionaryInfo.plistKeys.html>
and find "VMOptions" on that page. It has an example of -Xmx512m.
(Page found by searching ADC Search with keywords: java info plist)
If it's not a bundled app, please describe what it is, and what you have in
the project's Executables group.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden