tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: SESSIONS.ser (Too many open files)
Date Wed, 26 Sep 2007 21:15:29 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David,

David Delbecq wrote:
> By default, lsof show all files for all processes, thise can be very big
> man lsof will give you description of lsof parameter. There should be
> one to restrict to a specific process :)

Yup:

$ lsof -p pid

Looking at one of my java processes in a development environment, I see
77 open files (well, 77 lines of output).

This process is a Cocoon instance running on Tomcat. It has no database
connections. Most of the files opened are JAR files (not sure why they
stay open; the JVM must assume that an opened JAR file will eventually
be used again) and a few binary shared object (.so) files.

A more interesting application shows 89 files open. This one basically
has the same libraries and stuff open, and includes database connections
and mod_jk connections.

Note that individual class files are not counted here. One poster
asserted that class files and JSPs would require files to be opened:
this appears not to be the case.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+svx9CaO5/Lv0PARAvcqAJ45QABzoXL2QxJsA0o0NUJdPcdVVACeP2Rp
q6wBtEe83GRjnHQI3DMAfLc=
=uYuj
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message