/etc/security/limits ?
On Thu, Jun 03, 2004 at 12:15:28AM +, tripolar wrote:
I have read Ed's tips below though I am still at a loss as how to add
ulimit stuff to /etc/profile and /etc/initscript
here is the path to java
/usr/lib/j2re1.4-sun/bin/java
and the path for freenet is
/home/freenet/freenet/./start-freenet.sh
Here is /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
if [ $PS1 ]; then
if [ $BASH ]; then
PS1='[EMAIL PROTECTED]:\w\$ '
else
if [ `id -u` -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
#export CLASSPATH=.:/usr/local/j2re1.4.2_04/lib:/usr/local/j2re1.4.2_04/lib
#export JAVA_HOME=/usr/local/j2re1.4.2_04
#export PATH=$PATH:/usr/local/j2re1.4.2_04/bin
umask 022
I have read man initscript and still left scratching my head??
Any help would be appreciated
P.S.- Sorry about tagging this problem on to a different thread about
searching archives. Didnt realise the ooops until after hitting the send
button.
Caught a java.io.IOException: Too many open files,
LSL.processConnections failing
java.io.IOException: Too many open files
[...]
When I got this (on Sun 1.4.1_02) I looked with lsof and found 1024 open
file descriptors.
On redhat 9 I put fs.file-max = 65536 in /etc/syscntrl.conf...
I found users still have ulimit -u showing max files 1024, and that
they can't increase it.
After googling a bit, I discovered two approaches (I fixed both)
1) Change /etc/profile to add ulimit -Hn 65536
2) Create /etc/initscript as described in man initscript, including
ulimit -Hn 65536
Using this approach, I also had to add ulimit -n 65536 to
start-freenet.sh, since I don't want to give every process
a huge default file descriptor limit.
-- Ed Huff
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]
--
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.
signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]