Skip to main content

how to set the instance's jvm max memory parameter

6 replies [Last post]
dean_chen
Offline
Joined: 2010-03-17

like the parameter of "java" : -Xmx1024m
I dont know where to set it

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dean_chen
Offline
Joined: 2010-03-17

thanks

I found that the jvm-options element is global , not for any instance individually ,if I want to set a instance's JVM option , how ?

Oleksiy Stashok

Hmm, may be by "instance" we mean different things? :)
For me one GF domain is one instance. So when you change the jvm-
option - it gets changed per domain (instance).

If you create another domain (instance) - you are able to set
different value for max memory. Do I miss something?

On Mar 25, 2010, at 4:09 , glassfish@javadesktop.org wrote:

> thanks
>
> I found that the jvm-options element is global , not for any
> instance individually ,if I want to set a instance's JVM option ,
> how ?
> [Message sent by forum member 'dean_chen']
>
> http://forums.java.net/jive/thread.jspa?messageID=393620
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

dean_chen
Offline
Joined: 2010-03-17

when I say instance , I mean the domain or cluster 's member , if I just can set a jvm parameter for a domain , dose that mean all the member in the cluster must use the same jvm's setting ?

> Hmm, may be by "instance" we mean different things?
> :)
> For me one GF domain is one instance. So when you
> change the jvm-
> option - it gets changed per domain (instance).
>
> If you create another domain (instance) - you are
> able to set
> different value for max memory. Do I miss something?
>
>
> On Mar 25, 2010, at 4:09 , glassfish@javadesktop.org
> wrote:
>
> > thanks
> >
> > I found that the jvm-options element is global ,
> not for any
> > instance individually ,if I want to set a
> instance's JVM option ,
> > how ?
> > [Message sent by forum member 'dean_chen']
> >
> >
> http://forums.java.net/jive/thread.jspa?messageID=3936
> 20
> >
> >
> ------------------------------------------------------
> ---------------
> > To unsubscribe, e-mail:
> users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail:
> users-help@glassfish.dev.java.net
> >
>
>
> ------------------------------------------------------
> ---------------
> To unsubscribe, e-mail:
> users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail:
> users-help@glassfish.dev.java.net

Oleksiy Stashok

AFAIK each cluster node has own jvm settings section.

On Mar 25, 2010, at 15:58 , glassfish@javadesktop.org wrote:

> when I say instance , I mean the domain or cluster 's member , if I
> just can set a jvm parameter for a domain , dose that mean all the
> member in the cluster must use the same jvm's setting ?
>
>> Hmm, may be by "instance" we mean different things?
>> :)
>> For me one GF domain is one instance. So when you
>> change the jvm-
>> option - it gets changed per domain (instance).
>>
>> If you create another domain (instance) - you are
>> able to set
>> different value for max memory. Do I miss something?
>>
>>
>> On Mar 25, 2010, at 4:09 , glassfish@javadesktop.org
>> wrote:
>>
>>> thanks
>>>
>>> I found that the jvm-options element is global ,
>> not for any
>>> instance individually ,if I want to set a
>> instance's JVM option ,
>>> how ?
>>> [Message sent by forum member 'dean_chen']
>>>
>>>
>> http://forums.java.net/jive/thread.jspa?messageID=3936
>> 20
>>>
>>>
>> ------------------------------------------------------
>> ---------------
>>> To unsubscribe, e-mail:
>> users-unsubscribe@glassfish.dev.java.net
>>> For additional commands, e-mail:
>> users-help@glassfish.dev.java.net
>>>
>>
>>
>> ------------------------------------------------------
>> ---------------
>> To unsubscribe, e-mail:
>> users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail:
>> users-help@glassfish.dev.java.net
> [Message sent by forum member 'dean_chen']
>
> http://forums.java.net/jive/thread.jspa?messageID=393730
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Oleksiy Stashok

Please take a look at the GF domain.xml file, usually located at GF/
domains/domain1/config/domain.xml

there you can find one of the jvm-options:
-Xmx512m

On Mar 24, 2010, at 4:54 , glassfish@javadesktop.org wrote:

> like the parameter of "java" : -Xmx1024m
> I dont know where to set it
> [Message sent by forum member 'dean_chen']
>
> http://forums.java.net/jive/thread.jspa?messageID=393398
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Alexis Moussine-Pouchkine

For the record, the alternate "asadmin" command would be this :
asadmin create-jvm-options -- -Xmx1024m
-Alexis

On 24 mars 2010, at 02:31, Oleksiy Stashok wrote:

> Please take a look at the GF domain.xml file, usually located at GF/domains/domain1/config/domain.xml
>
> there you can find one of the jvm-options:
> -Xmx512m
>
>
> On Mar 24, 2010, at 4:54 , glassfish@javadesktop.org wrote:
>
>> like the parameter of "java" : -Xmx1024m
>> I dont know where to set it
>> [Message sent by forum member 'dean_chen']
>>
>> http://forums.java.net/jive/thread.jspa?messageID=393398
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net