mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2016-04-04
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
45
content/2016-04.md
Normal file
45
content/2016-04.md
Normal file
@ -0,0 +1,45 @@
|
||||
+++
|
||||
date = "2016-04-04T11:06:00+03:00"
|
||||
author = "Alan Orth"
|
||||
title = "April, 2016"
|
||||
tags = ["notes"]
|
||||
image = "../images/bg.jpg"
|
||||
|
||||
+++
|
||||
## 2016-04-04
|
||||
|
||||
- Looking at log file use on CGSpace and notice that we need to work on our cron setup a bit
|
||||
- We are backing up all logs in the log folder, including useless stuff like solr, cocoon, handle-plugin, etc
|
||||
- After running DSpace for over five years I've never needed to look in any other log file than dspace.log, leave alone one from last year!
|
||||
- This will save us a few gigs of backup space we're paying for on S3
|
||||
- Also, I noticed the `checker` log has some errors we should pay attention to:
|
||||
|
||||
```
|
||||
Run start time: 03/06/2016 04:00:22
|
||||
Error retrieving bitstream ID 71274 from asset store.
|
||||
java.io.FileNotFoundException: /home/cgspace.cgiar.org/assetstore/64/29/06/64290601546459645925328536011917633626 (Too many open files)
|
||||
at java.io.FileInputStream.open(Native Method)
|
||||
at java.io.FileInputStream.<init>(FileInputStream.java:146)
|
||||
at edu.sdsc.grid.io.local.LocalFileInputStream.open(LocalFileInputStream.java:171)
|
||||
at edu.sdsc.grid.io.GeneralFileInputStream.<init>(GeneralFileInputStream.java:145)
|
||||
at edu.sdsc.grid.io.local.LocalFileInputStream.<init>(LocalFileInputStream.java:139)
|
||||
at edu.sdsc.grid.io.FileFactory.newFileInputStream(FileFactory.java:630)
|
||||
at org.dspace.storage.bitstore.BitstreamStorageManager.retrieve(BitstreamStorageManager.java:525)
|
||||
at org.dspace.checker.BitstreamDAO.getBitstream(BitstreamDAO.java:60)
|
||||
at org.dspace.checker.CheckerCommand.processBitstream(CheckerCommand.java:303)
|
||||
at org.dspace.checker.CheckerCommand.checkBitstream(CheckerCommand.java:171)
|
||||
at org.dspace.checker.CheckerCommand.process(CheckerCommand.java:120)
|
||||
at org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:236)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:606)
|
||||
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
|
||||
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
|
||||
******************************************************
|
||||
```
|
||||
|
||||
- So this would be the `tomcat7` Unix user, who seems to have a default limit of 1024 files in its shell
|
||||
- For what it's worth, we have been setting the actual Tomcat 7 process' limit to 16384 for a few years (in `/etc/default/tomcat7`)
|
||||
- Looks like cron will read limits from `/etc/security/limits.*` so we can do something for the tomcat7 user there
|
||||
- Submit pull request for Tomcat 7 limits in Ansible dspace role ([#30](https://github.com/ilri/rmg-ansible-public/pull/30))
|
Reference in New Issue
Block a user