Thank you for the advice Stuart. I installed the Sun JDK and got the same
error (see below). I have also tried changing the number of files allowed in
the shell by adding the following lines to the /etc/security/limits.conf file:
* hard nofile 65536
* soft nofile 65536
I have read on other mailing list archives that I should adjust the kernel file
limits to 200k, but when I check the current value, it is already much larger!
> cat /proc/sys/fs/file-max
799000
I'm wondering if I should try doubling the shell limit. Does anyone have any
other suggestions? Below is the error output:
Updating search index:
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError:
/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/amd64/libmanagement.so:
/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/amd64/libmanagement.so: cannot open
shared object file: Too many open files
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1720)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.management.ManagementFactory.<clinit>(ManagementFactory.java:467)
at
java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
at
org.dspace.kernel.DSpaceKernelManager.unregisterMBean(DSpaceKernelManager.java:178)
at
org.dspace.servicemanager.DSpaceKernelImpl.destroy(DSpaceKernelImpl.java:211)
at
org.dspace.servicemanager.DSpaceKernelImpl.doDestroy(DSpaceKernelImpl.java:233)
at
org.dspace.servicemanager.DSpaceKernelImpl$1.run(DSpaceKernelImpl.java:78)
>>> Stuart Lewis <[email protected]> 7/11/2011 6:06 PM >>>
Hi Joshua,
The error message below suggests that you are running the openjdk. Instead,
try installing the official Sun JDK:
-
https://wiki.duraspace.org/display/DSPACE/Installing+DSpace+1.7+on+Ubuntu#InstallingDSpace1.7onUbuntu-%28OPTIONAL%29ChangetousingSun%2FOracleJavaJDK
This will hopefully help.
Thanks,
Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928
On 12/07/2011, at 3:33 AM, Joshua Gomez wrote:
> I ran across the following error last week while trying to run the media
> filter (I'm using DSpace 1.7.2, on Ubuntu 10.04.2):
>
> Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError:
> /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/libmanagement.so:
> /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/libmanagement.so: cannot open
> shared object file: Too many open files
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1667)
> at java.lang.Runtime.loadLibrary0(Runtime.java:840)
> at java.lang.System.loadLibrary(System.java:1047)
> at
> sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
> at
> sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> sun.management.ManagementFactory.<clinit>(ManagementFactory.java:485)
> at
> java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:521)
> at
> org.dspace.kernel.DSpaceKernelManager.unregisterMBean(DSpaceKernelManager.java:178)
> at
> org.dspace.servicemanager.DSpaceKernelImpl.destroy(DSpaceKernelImpl.java:211)
> at
> org.dspace.servicemanager.DSpaceKernelImpl.doDestroy(DSpaceKernelImpl.java:233)
> at
> org.dspace.servicemanager.DSpaceKernelImpl$1.run(DSpaceKernelImpl.java:78)
>
> It appears this error is not a problem with DSpace so much as the server
> environment, but I'm wondering if anyone else has come across such an error
> before?
>
> This error occurred after the new items had been filtered and the script was
> in the process of updating the index. I recently added about a thousand items
> that had very poor OCR (they were very old documents) and our index word
> limit is not set, so I am wondering if the index has become too large due to
> all the new "words" from the bad OCR. Many of the pdfs we added are pretty
> large so I'm also wondering if it's just a memory issue.
>
> Any thoughts?
>
> Joshua
>
>
> Joshua Gomez
> Digital Library Programmer Analyst
> Gelman Library
> George Washington University
> (202) 994-8267
> [email protected]
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________
>
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech