users@glassfish.java.net

Re: How does one increase heap memory on the ACC?

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Jan 2009 12:18:02 PST

If you are launching the app client using the appclient script, you can set the VMARGS environment variable.

If you are launching using the built-in Java Web Start support (which it looks like given your example) you can try to add

vmarg=jnlp-setting

as a query parameter in the URL you use to launch the client. (You might recall that you can pass arguments to the client itself using arg=value query parameter elements.)

So the URL might look something like

http://host:port/client-url?arg=argToYourArg&vmarg=initial-heap-size="64m"&vmarg=max-heap-size="512m"

Part of our plan for improvements in the Java Web Start support in a v3 release is to give developers more control over the generated JNLP document. In many cases that would be a better way to set VM args, since they are likely to depend on the specific client for all users (so it would make sense to define settings like these with the app client rather than in the URL which launches them.) Because that's not available yet, can you use the query parameter approach in the meantime?

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

http://forums.java.net/jive/thread.jspa?messageID=326316