Re: [Dspace-tech] index-all out of memory error

2007-06-03 Thread Gary Browne
Hi Steve

Here's some info from the system docs which may pertain to you:


##
Tomcat should be run with the following environment variable set, to
ensure that Unicode is handled properly. Also, the default JVM memory
heap sizes are rather small. Adjust -Xmx512M (512Mb maximum heap size)
and -Xms64M (64Mb Java thread stack size) to suit your hardware.

JAVA_OPTS=-Xmx512M -Xms64M -Dfile.encoding=UTF-8

###


Also, this wiki page may help:

http://wiki.dspace.org/index.php/HowToPerformanceTuneForDspace

The JAVA_OPTS configuration seemed to work for us. We changed the value
in $TOMCAT_HOME/bin/catalina.sh, bumped it up to 1024 and haven't had
any problems since.

Cheers
Gary


Gary Browne
Development Programmer
Library IT Services
University of Sydney
Australia
ph: 61-2-9351 5946 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Thomas
Sent: Friday, 1 June 2007 1:08 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] index-all out of memory error

Hi.

I'm trying to re-build our indexes, and find that index-all is failing
with
this message:

Exception in thread main java.lang.OutOfMemoryError: Java heap space

Any ideas as to a solution?


(Was working OK until last night.)


Thanks,
Steve

Stephen Thomas,
Senior Systems Analyst,
University of Adelaide Library
UNIVERSITY OF ADELAIDE SA 5005 AUSTRALIA
Phone: +61 8 830 35190
Fax: +61 8 830 34369
Email: [EMAIL PROTECTED]
URL: http://www.adelaide.edu.au/directory/stephen.thomas
CRICOS Provider Number 00123M

---
This email message is intended only for the addressee(s) and contains
information that may be confidential and/or copyright. If you are not
the
intended recipient please notify the sender by reply email and
immediately
delete this email. Use, disclosure or reproduction of this email by
anyone
other than the intended recipient(s) is strictly prohibited. No
representation is made that this email or any attachments are free of
viruses. Virus scanning is recommended and is the responsibility of the
recipient.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help needed with DBD::Pg

2007-06-03 Thread Steve Thomas
Hi.

I'm wondering if anyone has installed the DBD::Pg perl module on RedHat?
(RHEL) I'm having severe problems trying to get it to build.

I have PostgreSQL 8.2.4 installed from a package. The DBD::Pg install
requires pg_config from the development kit, so I've unpacked that and ran
gmake to build pg_config. But I still cannot get the make for DBD::Pg to run
- it crashes immediately with this:

$ make
gcc -c  -I/home/uals/kit/postgresql-8.2.4/src/include
-I/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe
-I/home/uals/kit/postgresql-8.2.4/src/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPGLIBVERSION=80204
-DPGDEFPORT=5432 -O2 -g -pipe -m64  -DPERL_EXTMALLOC_DEF
-Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc
-Dcalloc=Perl_calloc -DVERSION=\1.49\ -DXS_VERSION=\1.49\ -fPIC
-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE   Pg.c
In file included from Pg.xs:14:
Pg.h:21:22: libpq-fe.h: No such file or directory
In file included from Pg.h:47,
 from Pg.xs:14:
dbdimp.h:36: error: syntax error before PGconn
dbdimp.h:36: warning: no semicolon at end of struct or union
etc. for about another hundred error lines.

(This  was after I tinkered with the DBD::Pg Makefile to adjust the
erroneous paths provided by pg_config! Which made no difference.)

I am afraid that at this point I am stumped. Any clues as to what to try
next will be warmly welcomed.


Steve

Stephen Thomas,
Senior Systems Analyst,
University of Adelaide Library
UNIVERSITY OF ADELAIDE SA 5005 AUSTRALIA
Phone: +61 8 830 35190
Fax: +61 8 830 34369
Email: [EMAIL PROTECTED]
URL: http://www.adelaide.edu.au/directory/stephen.thomas
CRICOS Provider Number 00123M

---
This email message is intended only for the addressee(s) and contains
information that may be confidential and/or copyright. If you are not the
intended recipient please notify the sender by reply email and immediately
delete this email. Use, disclosure or reproduction of this email by anyone
other than the intended recipient(s) is strictly prohibited. No
representation is made that this email or any attachments are free of
viruses. Virus scanning is recommended and is the responsibility of the
recipient.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech