Hi Meredith,

The culprit in these situations is normally that your JVM is
encountering a hard memory limit set by default configuration options to
 java, or Tomcat.  There is an environmental variable for JAVA_OPTS that
can be set to contain options to increase the hard limit and allocate
more memory to Java.

The catalina.sh script that starts Tomcat will look for  setenv.sh
script in the $CATALINA_HOME directory to load these.  The two that will
probably be of use to you are -Xms and -Xmx. The first defines the
minimum amount of memory allocated, and the latter defines the maximum.
 The default maximum is 64Mb.

Have a look here:

http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html#nonstandard

Jason
On 5/13/10 11:58 AM, Ricker, Meredith wrote:
> Hi all,
> 
> I'm just starting to ingest objects from a local directory using the Fedora 
> client on a Mac with 4 GB of memory.  I'm able to ingest files of up to 300kb 
> with no problem but when I try to ingest a 10.3mb jpeg I get this error: All 
> factories fail for the operation "stream" and see the message "Caused by 
> java.lang.OutOfMemoryError: Java heap space.
> 
> Has anybody run into this problem?
> 
> Thanks,
> Meredith Ricker
> Digital Collections Manager
> University of New Hampshire Library
> Durham, NH 03824
> 
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
> 

-- 
Jason Nugent
Systems Programmer/Database Developer
Electronic Text Centre
University of New Brunswick
[email protected]
(506) 447 3177

------------------------------------------------------------------------------

_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to