Re: [Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-30 Thread Alan Orth
Peter, A queue would be awesome. You're absolutely right regarding the cron jobs; it's almost like you need to set a weekly reminder to go check the execution times of your DSpace maintenance cron jobs to make sure they're all completing and not running at the same time. :) I find that I tweak e

Re: [Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-30 Thread Peter Dietz
My "hammer" java_opts on our production server, for when some site has crazy big content is to temporarily run it with: JAVA_OPTS="-server -Xms256m -Xmx4g -XX:MaxPermSize=256m" We have 64GB ram on our boxes, so we'll survive. Not to derail onto a tangent, but one thing I'd like to see DSpace su

Re: [Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-30 Thread Alan Orth
Peter, Ahh, that's very interesting. I just looked up the -server flag and it seems on recent Sun/Oracle JVMs -server is implied on 64-bit Linux platforms[0]. It seems my problem was the fact that heuristics used by the OOM killer were killing Tomcat's java instead of whatever filter-media, etc

Re: [Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-28 Thread Peter Dietz
Hi Alan, At Longsight, we customize the JAVA_OPTS in dspace/bin/dspace https://github.com/LongsightGroup/DSpace/blob/longsight-4_x/dspace/bin/dspace#L66 #Allow user to specify java options through JAVA_OPTS variable if [ "$JAVA_OPTS" = "" ]; then #Default Java to use 256MB of memory JAVA_OPTS

Re: [Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-27 Thread Terry Brady
Alan, We override JAVA_OPTS for the nightly filter-media task in our cron. export JAVA_OPTS=-Xmx1200m;dspace filter-media ... We have a set of automated ingest tools. We set JAVA_OPTS in some of the workflows that are run by those tools. https://github.com/Georgetown-University-Libraries/batch

Re: [Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-20 Thread Alan Orth
That's good advice, Mark. You're right on about the OOM killer bit. I actually had just realized that Tomcat will always be killed by OOM if OOM is invoked, because Tomcat of course is carving a substantial heap of memory for itself. :) I just had a look at my DSpace Control panel and found that

Re: [Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-20 Thread Mark H. Wood
On Tue, May 20, 2014 at 11:33:48AM +0300, Alan Orth wrote: > I'm curious if anyone sets memory limits for DSpace's various cron jobs? As delivered, DSpace does that itself. In bin/dspace, around line 69, the script sets a maximum heap size of 256 MB, *unless* you already have JAVA_OPTS set. One

Re: [Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-20 Thread Hilton Gibson
Hi Alan See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S08#Step_8.2_Java_environment_settings_for_other_java_web_applications Cheers hg *Hilton Gibson* Ubuntu Linux Systems Administrator JS Gericke Library Room 1025D Stellenbosch University Private Bag X5036 Stellenbosch 75

[Dspace-tech] JAVA_OPTS for cron jobs?

2014-05-20 Thread Alan Orth
Hi, I'm curious if anyone sets memory limits for DSpace's various cron jobs? Lately we've been having Tomcat's java process get killed every morning around the same time, and all dmesg shows is that "java" was killed by the kernel's OOM killer. Catalina logs don't show any "SEVERE" errors, so I