Re: [Dspace-tech] Compiling Dspace on Mac OS X [Error]

2010-04-20 Thread Avarca, Anthony
Thank you for your guidance, I was able to overcome this hurdle by placing
the following environment variable:

MAVEN_OPTS="-Xms1024M -Xmx1024M"


Anthony Avarca
aava...@anl.gov
630.252.4940



On Tue, Apr 20, 2010 at 6:17 PM, Peter Dietz  wrote:

> I imagine that that is already enough memory for that. However, I don't
> know anything specific to the Mac server that would make that hungrier than
> any other system. Perhaps you could check that the sun implementation of
> java is installed on the mac. Sun's (Oracle's) jdk fares better than the
> open jdk.
>
> Check out this thread, I found some potentially useful things to try.
> http://www.mail-archive.com/us...@maven.apache.org/msg50655.html
>
> I would imagine the file to look into would be
> [dspace-source]/dspace/pom.xml at around line 529.
> Adding the argument to specify the memory to maven during the packaging.
>
> 
> 
> 
> 
> maven-assembly-plugin
> 2.2-beta-1
> 
> -Xmx1024m
> 
> src/assemble/assembly.xml
> 
> 
>
>
> Lastly, see if it works if you specify the memory limit to be as much as
> your system max. I do agree that it is unusual to need so much memory just
> for compilation though.
>
> Peter Dietz
> Systems Developer/Engineer
> Ohio State University Libraries
>
>
>
>
> On Tue, Apr 20, 2010 at 6:40 PM, Avarca, Anthony  wrote:
>
>> java.lang.OutOfMemoryError: Java heap space
>
>
>
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Compiling Dspace on Mac OS X [Error]

2010-04-20 Thread Peter Dietz
I imagine that that is already enough memory for that. However, I don't know
anything specific to the Mac server that would make that hungrier than any
other system. Perhaps you could check that the sun implementation of java is
installed on the mac. Sun's (Oracle's) jdk fares better than the open jdk.

Check out this thread, I found some potentially useful things to try.
http://www.mail-archive.com/us...@maven.apache.org/msg50655.html

I would imagine the file to look into would be
[dspace-source]/dspace/pom.xml at around line 529.
Adding the argument to specify the memory to maven during the packaging.





maven-assembly-plugin
2.2-beta-1

-Xmx1024m

src/assemble/assembly.xml




Lastly, see if it works if you specify the memory limit to be as much as
your system max. I do agree that it is unusual to need so much memory just
for compilation though.

Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries



On Tue, Apr 20, 2010 at 6:40 PM, Avarca, Anthony  wrote:

> java.lang.OutOfMemoryError: Java heap space
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Compiling Dspace on Mac OS X [Error]

2010-04-20 Thread Avarca, Anthony
All,

I'm trying to compile dspace 1.6 in Mac OS X 10.6.3 Server. My output is
below. I have the  $JAVA_OPTS = -Xmx1024M -Xms64M -Dfile.encoding=UTF-8

Can anyone provide assistance?

bash-3.2$ mvn -e package
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   DSpace XML-UI (Manakin)
[INFO]   DSpace XML-UI (Manakin) :: Wing-Framework
[INFO]   DSpace Kernel :: API and Implementation
[INFO]   DSpace Solr Statistics Logging Client Library
[INFO]   DSpace XML-UI (Manakin) :: API and Core Aspects
[INFO]   DSpace UI :: Shared JS code
[INFO]   DSpace XML-UI (Manakin) :: Web Application Resources
[INFO]   DSpace Addon Modules
[INFO]   DSpace XML-UI (Manakin) :: Web Application
[INFO]   DSpace LNI
[INFO]   DSpace LNI :: Core Implementation
[INFO]   DSpace LNI :: Web Application Resources
[INFO]   DSpace LNI :: Web Application
[INFO]   DSpace OAI
[INFO]   DSpace OAI :: API and Implementation
[INFO]   DSpace OAI :: Web Application Resources
[INFO]   DSpace OAI :: Web Application
[INFO]   DSpace JSP-UI
[INFO]   DSpace JSP-UI :: API and Implementation
[INFO]   DSpace JSP-UI :: Web Application Resources
[INFO]   DSpace JSP-UI :: Web Application
[INFO]   DSpace SWORD
[INFO]   DSpace SWORD :: API and Implementation
[INFO]   DSpace SWORD :: Web Application Resources
[INFO]   DSpace SWORD :: Web Application
[INFO]   DSpace SOLR :: Web Application
[INFO]   DSpace LNI :: CLI Client Application
[INFO]   DSpace Assembly and Configuration
[INFO]

[INFO] Building DSpace XML-UI (Manakin)
[INFO]task-segment: [package]
[INFO]

[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO]

[INFO] Building DSpace XML-UI (Manakin) :: Wing-Framework
[INFO]task-segment: [package]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/Users/dspace/Documents/dspace-1.6.0-src-release/dspace-xmlui/dspace-xmlui-wing/src/main/resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/Users/dspace/Documents/dspace-1.6.0-src-release/dspace-xmlui/dspace-xmlui-wing/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [jar:jar {execution: default-jar}]
[INFO]

[INFO] Building DSpace Kernel :: API and Implementation
[INFO]task-segment: [package]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 337 source files to
/Users/dspace/Documents/dspace-1.6.0-src-release/dspace-api/target/classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure
Failure executing javac, but could not parse the error:


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.jvm.ClassReader.enterPackage(ClassReader.java:1976)
at com.sun.tools.javac.jvm.ClassReader.packageExists(ClassReader.java:1967)
at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:949)
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:451)
at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.main.Main.compile(Main.java:279)
at com.sun.tools.javac.main.Main.compile(Main.java:270)
at com.sun.tools.javac.Main.compile(Main.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.compiler.j