2009/4/17 Sahoo <[email protected]> > Stuart McCulloch wrote: > >> 2009/4/16 Sahoo <[email protected]> >> >> >>> I consistently faced the following error while building latest trunk and >>> to >>> work around, I had to set MAVEN_OPTS=-Xmx512m in my environment. Is it >>> because there are just a lot of things getting built in the same reactor >>> requiring more memory? >>> >> >> I'd say that's very likely, also note that an OOM in PermGen means the JVM >> has exhausted >> its allocated space for class instances (ie. too many classes and/or proxy >> classes loaded). >> >> There's also an issue wrt. the default maximum heap - depending on which >> JDK >> release you >> use (and even the OS) this can vary from being ~64mb to being half of the >> physical memory. >> >> So setting your MAVEN_OPTS to a reasonably large maximum sounds reasonable >> to me >> if you want to build the whole project tree at once. >> >> > If the build does require higher than usual memory, should this not be set > in build.xml before execing mvn? >
sure, if you can send me a patched build.xml that works for you I'd be happy to apply it Sahoo > -- Cheers, Stuart
