embedded@glassfish.java.net

Re: [embedded] MaxPermSize

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Tue, 12 May 2009 10:49:08 -0700

Indeed Embedded has its hands tied -- it isn't around when the JVM comes
up and that is the only time you can set -X or -XX options.

Here is another hint:
You can put your domain.xml into a jar file. Once you do that you have
2 options:

(a) explicitly call EFS.setSource() with the URL
(b) Cooler! Simply make the URL of *your* domain.xml exactly the same
as the canned domain.xml in the Embedded jar. Then put your jar ahead
of the Embedded jar in the Classpath and, voila, your domain.xml will
automatically be picked up.




Joey Jarosz wrote:
>
> Ok, I was able to confirm using Java VisualVM that indeed MaxPermSize
> cannot be controlled from within domain.xml for embedded applications.
> It looks like the only <jvm-option> that takes affect is (-D) system
> properties.
>
>
>
> Thanks for the hint. Btw, what I am working on is shrinking my source
> domain.xml file as much as possible such that it only contains
> information relevant to running embedded.
>
>
>
>
>
> ------------------------------------------------------------------------
>
> *From:* Byron.Nevins_at_Sun.COM [mailto:Byron.Nevins_at_Sun.COM]
> *Sent:* Sunday, May 10, 2009 12:09 PM
> *To:* embedded_at_glassfish.dev.java.net
> *Subject:* Re: [embedded] MaxPermSize
>
>
>
> Sorry I haven't been keeping up with embedded lately.
>
> What's MaxPermSize ?
> If it is a -X java argument then it is your responsibility.
> If it is a System property (jvm-option in domain.xml) -- then it will
> be set for you automatically.
>
>
> Joey Jarosz wrote:
>
> When running embedded, does the value of MaxPermSize come from the
> domain.xml file that I specify as my source domain xml (section
> java-config) or from what I pass into Java when I start my application?
>
>
>
>
>
> --------------------------------------------
> Joey Jarosz
>
> Senior Architect
>
> //Chip Planning Solutions//
>
> **/Cadence Design Systems, Inc./***/
> /*(408) 914-6269
>
>
> /*/Need some IP? Check out /*//*/www.chipestimate.com/*/
> <http://www.chipestimate.com>
>
>
>
>
>