dev@glassfish.java.net

Re: QL with OutOfMemoryError

From: Ming Zhang <Ming.Zhang_at_Sun.COM>
Date: Tue, 27 Jan 2009 13:00:41 -0800

The QL default profile and Web profile are using asadmin start-domain.
The dev_debug profile is not start/restart domain so that user can add
debug option in starting domain.

Thanks,
Ming

Kedar Mhaswade wrote:
> This is strange, because I thought we already have MaxPermSize as
> 192m, which
> is maximum size of the permanent generation.
>
> Can you please try just specifying -XX:PermSize=64m, since that is the
> *initial* size of the permanent generation.
>
> I am hoping that QL is using asadmin start-domain which passes the
> settings
> in domain.xml to the server's JVM at startup.
>
> -Kedar
>
> Shing Wai Chan wrote:
>> It seems that if I add the following jvm options, then QL always
>> passes in Mac.
>> -XX:PermSize=64m -XX:MaxPermSize=128m
>>
>> Shing Wai Chan
>>
>>
>> Shing Wai Chan wrote:
>>> Hi,
>>> I have updated the workspace this morning.
>>> In Mac, I notice that the QL fails from time to time with the
>>> following in serverl.log.
>>> It seems to be ok in Solaris x86.
>>>
>>> java.lang.OutOfMemoryError: PermGen space
>>> at
>>> com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:314)
>>>
>>> at
>>> com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
>>>
>>> at
>>> com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:109)
>>>
>>> at
>>> com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
>>>
>>> at
>>> com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:338)
>>>
>>> at
>>> com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
>>>
>>> at
>>> com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:480)
>>>
>>> at
>>> com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
>>> at
>>> com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
>>>
>>> at
>>> com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
>>>
>>> at
>>> com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
>>>
>>> at
>>> com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75)
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>>
>>> Regards,
>>> Shing Wai Chan
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>