Hi…
I am having a problem with DSpace 1.6.2. Every few times during the week, people are no longer able to add records and even going to the site causes “Internal Server Error”.
I see java processes that are using up memory and these run even after I shutdown tomcat and I have to manually “kill” them. Also, I have trouble shutting down PostGreSQL and need to “kill” a few processes before PostGreSQL will shutdown.
What I see in the dspace log is this:
2011-04-25 01:21:39,739 WARN org.dspace.app.webui.servlet.DSpaceServlet @ anonymous:no_context:database_error:org.apache.commons.dbcp.SQLNestedException\colon; Cannot get a connection, pool error\colon; Timeout waiting for idle object
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error: Timeout waiting for idle object
at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:184)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:620)
at org.dspace.core.Context.<init>(Context.java:126)
at org.dspace.app.webui.util.UIUtil.obtainContext(UIUtil.java:113)
…27 more
I have seen looking through the dspace-tech archives that people have reported the problem before, but I did not see any mention of a “fix”.
I am allowing 300 max_connections from PostGreSQL and my Java_opts for tomcat is:
JAVA_OPTS="-server -Xms1024m -Xmx2048m -Xmn64m -Dfile.encoding=UTF-8 -XX:+UseParallelGC -verbose:gc -Xloggc:/dspace/dspace/log/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:-UseGCOverheadLimit"
Any help that I can get here will be GREATLY appreciated.
George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/_______________________________________________
[...]
Today, with db.maxconnections at 30 (I got superstitious and reverted to this default) and db.maxidle at 8 I had the following idle connections in PostgreSQL:
$ psql -c 'SELECT * from pg_stat_activity;' | grep dspace | grep -c idle49
I'm starting to wonder if I should start drastically *increasing* the limits, or if I should start blaming DSpace for not closing connections properly...
For everyone's reference, there's a running Jira issue about this that has comments going back to DSpace 1.7: https://jira.duraspace.org/browse/DS-1458
-- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand +64-7-837 9120
Alan:
We at Cornell University are running DSpace 5.2 with the following settings:
db.maxconnections = 50
db.maxwait = 5000
db.maxidle = 5
db.statementpool = true
In the Cocoon logs and DSpace , I still do see occasionally:
“Cannot get a connection, pool error Timeout waiting for idle object”
and
“Timeout waiting for idle object”
But it doesn’t happen every day for us and it doesn’t appear to bring down the system. So, I don’t think I have a solution for you outside of playing with the settings.
Best of luck,
George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
218 Olin Library
--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.