[Building Sakai] Too many open files?

Branden Visser branden at uwindsor.ca
Wed Apr 14 06:41:17 PDT 2010


Perfect. Thanks Tom and Kevin Chan, ulimit was the problem.

I couldn't set ulimit at the command-line for my user due to 
permissions, but I stuck it in /etc/security/limits.conf, problem solved.

Cheers,
Branden

Tom Hall wrote:
> HI Branden
> 
> 
> Just because the sytem file limit is high doesn't mean that any individual
> process limit is (especially if you are not root).
> 
> Try putting 'ulimit -n 10000' (max 10,000 open files) in the script that
> actually launches the jvm before the call to the jvn.
> 
> Tom
> 
> 
> 
> On Tue, 13 Apr 2010, Branden Visser wrote:
> 
>> Hi everyone,
>>
>> I'm starting up a fresh copy of Sakai trunk with the
>> demo.sakai.properties properties, and I'm consistently getting an error
>> while the sakai-axis2 WAR file deploys. I've attached the stack trace.
>>
>> I have a hard time believing it's actually opening too many files, since
>> file-max on my system is 341749 and "lsof | wc -l" hovers around 5700 at
>> the time of the error.
>>
>> I tried the following JDK's:
>>
>> branden at branden-workstation:/opt/jdk6/bin$ ./java -version
>> java version "1.6.0_14"
>> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
>> Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
>>
>> branden at branden-workstation:~/Downloads/jdk1.6.0_19/bin$ ./java -version
>> java version "1.6.0_19"
>> Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
>> Java HotSpot(TM) 64-Bit Server VM (build 16.2-b04, mixed mode)
>>
>> JAVA_OPTS:
>>
>> -server
>> -d64
>> -Djava.awt.headless=true
>> -Duser.language=en
>> -Duser.region=CA
>> -XX:+UseParallelGC
>> -Xmx768m
>> -XX:PermSize=128m
>> -XX:MaxPermSize=256m
>> -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
>> -Dsun.lang.ClassLoader.allowArraySyntax=true
>>
>> Tomcat 5.5.27
>>
>> Have I done something crazy?
>>
>> Thanks,
>> Branden
>>


More information about the sakai-dev mailing list