Checking more carefully, on Mac OS X 10.5.2 (Intel), I see peak memory
usage (resident set size) of 175MB, with VM size of 1.2GB.
Lloyd
On Feb 19, 2008, at 11:07 AM, Lloyd L Chambers wrote:
> That worked for me too (3 tries).
>
> As I have 4GB with 2.5GB or so free I'm trying Jane's suggestion as
> follows:
>
> export MAVEN_OPTS=-Xmx512m
>
> The JVM never seems to use more than about 130MB of real memory, but
> has a VM size of 1.2GB.
>
> Lloyd
>
> On Feb 19, 2008, at 10:51 AM, Tim Quinn wrote:
>
>> I ran into that over the weekend and tried manually building that
>> component first (which worked for me) then did the top-level build
>> again (which then worked for me).
>>
>> There is probably some memory setting to be bumped up but rather
>> than poking around to figure out how to set an alternative value
>> for Maven to use I tried that workaround and it got me past my
>> immediate problem.
>>
>> - Tim
>>
>> Lloyd L Chambers wrote:
>>> This is new, started today.
>>>
>>>
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [hk2:hk2-compile]
>>> [INFO] Compiling 660 source files to /v3/code/web/webtier/target/
>>> classes
>>>
>>>
>>> The system is out of resources.
>>> Consult the following stack trace for details.
>>> java.lang.OutOfMemoryError: Java heap space
>>> at com.sun.tools.javac.util.Name.fromChars(Name.java:115)
>>> at com.sun.tools.javac.util.Name.fromString(Name.java:144)
>>> at com.sun.tools.javac.util.Name$Table.fromString(Name.java:513)
>>> at
>>> com
>>> .sun.tools.javac.jvm.ClassReader.includeClassFile(ClassReader.java:
>>> 1694)
>>> at com.sun.tools.javac.jvm.ClassReader.list(ClassReader.java:1758)
>>> at com.sun.tools.javac.jvm.ClassReader.listAll(ClassReader.java:
>>> 1882)
>>> at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:
>>> 1901)
>>> at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:
>>> 1538)
>>> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
>>> at
>>> com
>>> .sun.tools.javac.jvm.ClassReader.completeOwners(ClassReader.java:
>>> 1547)
>>> at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:
>>> 1534)
>>> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
>>> at com.sun.tools.javac.code.Symbol
>>> $ClassSymbol.complete(Symbol.java:612)
>>> at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:
>>> 550)
>>> at com.sun.tools.javac.code.Types
>>> $AsSuperFcn.visitClassType(Types.java:1440)
>>> at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:482)
>>> at com.sun.tools.javac.code.Types$AsSuperFcn.asSuper(Types.java:
>>> 1417)
>>> at com.sun.tools.javac.code.Types
>>> $AsSuperFcn.visitClassType(Types.java:1434)
>>> at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:482)
>>> at com.sun.tools.javac.code.Types$AsSuperFcn.asSuper(Types.java:
>>> 1417)
>>> at com.sun.tools.javac.code.Types.asSuper(Types.java:1407)
>>> at com.sun.tools.javac.code.Types
>>> $IsSubTypeFcn.visitClassType(Types.java:429)
>>> at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:482)
>>> at com.sun.tools.javac.code.Types
>>> $IsSubTypeFcn.isSubType(Types.java:353)
>>> at com.sun.tools.javac.code.Types.isSubType(Types.java:331)
>>> at com.sun.tools.javac.code.Types.isSubTypeUnchecked(Types.java:
>>> 311)
>>> at com.sun.tools.javac.code.Types.isConvertible(Types.java:278)
>>> at com.sun.tools.javac.code.Types.isAssignable(Types.java:1630)
>>> at com.sun.tools.javac.comp.Check.checkType(Check.java:325)
>>> at
>>> com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:122)
>>> at
>>> com
>>> .sun
>>> .tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:705)
>>> at com.sun.tools.javac.comp.MemberEnter.access
>>> $300(MemberEnter.java:39)
>>>
>>>
>>> The system is out of resources.
>>> Consult the following stack trace for details.
>>> java.lang.OutOfMemoryError: Java heap space
>>> at
>>> java
>>> .lang
>>> .AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
>>> at
>>> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:
>>> 393)
>>> at java.lang.StringBuilder.append(StringBuilder.java:120)
>>> at com.sun.tools.javac.jvm.ClassReader.list(ClassReader.java:1756)
>>> at com.sun.tools.javac.jvm.ClassReader.listAll(ClassReader.java:
>>> 1882)
>>> at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:
>>> 1901)
>>> at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:
>>> 1538)
>>> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
>>> at
>>> com
>>> .sun.tools.javac.jvm.ClassReader.completeOwners(ClassReader.java:
>>> 1547)
>>> at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:
>>> 1534)
>>> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
>>> at com.sun.tools.javac.code.Symbol
>>> $ClassSymbol.complete(Symbol.java:612)
>>> at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:
>>> 550)
>>> at com.sun.tools.javac.code.Types
>>> $AsSuperFcn.visitClassType(Types.java:1440)
>>> at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:482)
>>> at com.sun.tools.javac.code.Types$AsSuperFcn.asSuper(Types.java:
>>> 1417)
>>> at com.sun.tools.javac.code.Types
>>> $AsSuperFcn.visitClassType(Types.java:1434)
>>> at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:482)
>>> at com.sun.tools.javac.code.Types$AsSuperFcn.asSuper(Types.java:
>>> 1417)
>>> at com.sun.tools.javac.code.Types.asSuper(Types.java:1407)
>>> at com.sun.tools.javac.code.Types
>>> $IsSubTypeFcn.visitClassType(Types.java:429)
>>> at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:482)
>>> at com.sun.tools.javac.code.Types
>>> $IsSubTypeFcn.isSubType(Types.java:353)
>>> at com.sun.tools.javac.code.Types.isSubType(Types.java:331)
>>> at com.sun.tools.javac.code.Types.isSubTypeUnchecked(Types.java:
>>> 311)
>>> at com.sun.tools.javac.code.Types.isConvertible(Types.java:278)
>>> at com.sun.tools.javac.code.Types.isAssignable(Types.java:1630)
>>> at com.sun.tools.javac.comp.Check.checkType(Check.java:325)
>>> at
>>> com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:122)
>>> at
>>> com
>>> .sun
>>> .tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:705)
>>> at com.sun.tools.javac.comp.MemberEnter.access
>>> $300(MemberEnter.java:39)
>>> at com.sun.tools.javac.comp.MemberEnter
>>> $5.enterAnnotation(MemberEnter.java:686)
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Fatal error compiling
>>>
>>>
>>> ---
>>> Lloyd L Chambers
>>> lloyd.chambers_at_sun.com
>>> Sun Microsystems, Inc
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>
> ---
> Lloyd L Chambers
> lloyd.chambers_at_sun.com
> Sun Microsystems, Inc
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc