Thanks for the helpful suggestions. Using the commands you gave me
highlight that it is JBoss and the JVM that appear to be using up the
resources. However, the "Too many open files" error has now transformed
itself into a JVM crashing problem. I have had this problem off and on
for a number of months, but it has now reached the point where I can't
work around it. I am fairly convinced that it is a resource limitation
problem somewhere, but I'm no expert in Linux and am running out of
time. The server is on a small network, so I was wondering someone
would be prepared to come around and look at it, for an appropriate
fee, to see if there was any obvious (to them) problem.
I have a couple of strange things happening on my system, if anyone has
any ideas on what is cause them please let me know.
First, I am running RH 9 on my workstation and have a RH 7.1 box
running as a webserver. I mount /home via nfs from the RH 7 box to my
workstation. I have noticed that write speeds to /home are very slow,
with no obvious reason. If I copy a file from /tmp (local) to
/home/raymond (remote) it takes forever, and there is next to no network
usage or cpu load. Transfers in the opersite direction saturate the
I am using the following options for mount: rsize=8192,wsize=8192,intr
Any Ideas why writes would be so slow? I have ftp running on the RH 7
box and ftping the data to /home/raymond via ftp runs at fullspeed.
Second issue is a also strange, once I reboot I am able to run up2date
and any rpm command, so I can install packages but after a day or two
for no reason these commands just stop. They hang on execution as if
they are waiting for something. You can't stop them with CTRL-C either,
you have to kill -9 the process. This means I have to reboot my machine
if want to install a new package, which isn't as much of a problem now I
have things installed but was initially a pain in the bu when I first
built the machine.
John R. McPherson wrote:
>> Roger wrote:
>>> I am running an application server on Red Hat 8.0 and every so often
>>> machine generates an error message "Too many files open" and then
>>> up. I have to restart the machine from the console to rectify the
>>> situation. Can anyone please tell me if there is some configuration
>>> setting that I can change to increase the number of permitted
>>> there some command that allows me to monitor the number of open
>>> the system?
>> The other reply was for kernel version 2.6-something, but as far as I
>> know, under kernel 2.4.x and earlier, there is a hard-coded limit in
>> the kernel - /usr/include/linux/limits.h has
>> #define OPEN_MAX 256 /* # open files a process may have
>> (but that is per-process, not in total).
>> You could install and try the lsof(8) command - I haven't used it
>> much, but it stands for "LiSt Open Files", so it sounds like what you
>> want :p
>Under 2.4 a process can have a stupidly large number of fd's open, you
>need to modify /proc/sys/fs/file-max and perhaps /proc/sys/fs/inode-max
>which is the system wide limit, to raise the limit per process you can
>use ulimit to raise it above the 256 (default limit) you mentioned
>Running out of fd's is a pretty nasty business, what on earth are you
>doing to that poor machine? Are you running lots of programs? (like,
>hundreds of copies of something?)
That is part of the problem, I am not precisely sure why there are so
many files opened. I am running a fairly large J2EE application on
JBoss and it seems to load heaps of files into the JVM. I may need to
change some settings in JBoss, but that of course is the subject for
Thanks for all the help.
I am running an application server on Red Hat 8.0 and every so often the
machine generates an error message "Too many files open" and then locks
up. I have to restart the machine from the console to rectify the
situation. Can anyone please tell me if there is some configuration
setting that I can change to increase the number of permitted files? Is
there some command that allows me to monitor the number of open files in
Thanks in anticipation
RimuHosting is a web hosting company that does Linux Virtual Private Server
RimuHosting's web page says it is based in Hamilton, but that is all. There
are no names are full addresses anywhere on web site. Googling, I found a
number of message boards posts promoting rimuhosting.com by someone called
"Peter B". I'd feel happier if I knew more about the business than that.
Other than that, does it look like good thing? A friend and I plan to run a
few low volume websites from something like this. One will be a dynamic one
using Apache, Python and PostgreSQL. Will those all run happily under a 64MB
Glyn Webster ~ Simplicity Himself. ~ glyn(a)wave.co.nz ~ http://tiddly-pom.com
I am wanting to set up a production application server using JBoss
(written in Java) and PostgreSQL (written in C I believe), so would be
interested in opinions as to what the most reliable platform would be
for this. Firstly, I am wondering what flavour of Linux is considered
the most reliable and what version. I am currently using Red Hat 8.0.
Secondly, I am would be interested if people have experience with
different JVMs for such a application.
Perhaps another way of asking the same question: Are there any
platforms or combination of platforms that should be avoided.
I seem to have won a back issue CD from linux journal, so if anyone
wants a copy (maybe a few for the library?) give me a buzz and ill run
some out when it turns up.
(o< - A l a s t a i r P o r t e r
Because I want to see a big "Happy Birthday to me" audience, based on
current relevance and suggestions prior to the AGM we're cobbling together a
great topic for the next meeting: "Anti-Virus and Anti-Spam E-Mail Filtering
Suggestions for what to talk about include:
* server side filtering options (MailScanner, Amavis, ClamAV & SpamAssassin,
probably presented in a "How To" format with Debian Woody, Exim and Courier
* client side filtering (how bayesian filtering works, Mozilla Mail's
implementation, plugging SpamAssassin into Evolution or Kmail)
Since I've been doing this at work lately, I don't mind presenting it (and
might even drag Greig into it too), unless anyone else would specifically
Seeing there are a lot of new users in WLUG lately, and that it would seem a
lot of you start with KDE on Mandrake; can you let me know what email client
If you're interested in this topic and can't wait till the meeting, I've put
some preliminary notes up at
The The Hamilton Computer Club meeting is tonight
This is an announcement about the Hamilton Computer Club, not the
next WLUG meeting. Feel free to ignore it.
If you're interested in the Computer Club, they meet about 7:30pm
on the second Wednesday of each month at St Peters Cathedral Hall which
is up the hill at the South End of Victoria Street.
For further details, see http://www.hamiltoncomputerclub.co.nz/