You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephen Nelson-Smith <sa...@gmail.com> on 2008/03/13 11:18:03 UTC
Many Java Processes
Hi,
I've noticed on one machine (4.1.31 / RHEL 3) as soon as I start Java
I see many Java processes:
$ pgrep -l java
1783 java
1844 java
1848 java
1849 java
1880 java
1881 java
1882 java
1883 java
1885 java
1886 java
1887 java
1888 java
1889 java
1890 java
1891 java
1892 java
1893 java
1894 java
1895 java
1896 java
1897 java
1898 java
1899 java
1900 java
1905 java
1906 java
1973 java
1981 java
1983 java
1984 java
1985 java
I only see one java process in the process list:
# ps auxw | grep java
root 1783 0.7 30.5 333988 156532 ? S Mar12 7:31
/usr/lib/jvm/java/bin/java -Dbuild.compiler.emacs=true
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath
/usr/lib/jvm/java/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
Is this to do with threading? I can't see a setting in server.xml
that would make this happen?
I have 4 other machines running the same version on the same OS, but I
only see one java process when I do pgrep -l java. What's happening?
S.
---------------------------------------------------------------------
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
Re: Many Java Processes
Posted by Stephen Nelson-Smith <sa...@gmail.com>.
On Thu, Mar 13, 2008 at 1:02 PM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Stephen,
>
>
> Stephen Nelson-Smith wrote:
> | I've noticed on one machine (4.1.31 / RHEL 3) as soon as I start Java
> | I see many Java processes:
>
> These are threads, not processes. Some Linux kernel versions report them
> as processes, and some don't. It also may depend on your version of ps
> (or pgrep, in this case).
Aha, well the one which reports threads as processes is
procps-2.0.13-9.2E. The one that doesn't is procps-2.0.17-13.10.
After upgrading procps, I don't see this behaviour. Thanks for the
hint!
S.
---------------------------------------------------------------------
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
Re: Many Java Processes
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephen,
Stephen Nelson-Smith wrote:
| I've noticed on one machine (4.1.31 / RHEL 3) as soon as I start Java
| I see many Java processes:
These are threads, not processes. Some Linux kernel versions report them
as processes, and some don't. It also may depend on your version of ps
(or pgrep, in this case).
| I only see one java process in the process list:
That's because your version of 'ps' knows what's up.
| Is this to do with threading?
Yes.
| I can't see a setting in server.xml that would make this happen[.]
That's because server.xml has no bearing on this behavior. It's all the OS.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkfZJdIACgkQ9CaO5/Lv0PBTvwCgtwgMRnxCiz8XNhs6trhgQ4ck
kLEAmwQ74mFrusBQ2UCz5Vxys3mqc8KP
=roA/
-----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
Re: Many Java Processes
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David,
David Short wrote:
| Don't know if this applies here or not but, I got this once when my
| ORACLE_HOME wasn't set when using Jserv (wrapper.env=) with the Apache web
| server.
Wow. Jserv? Now /that's/ a blast from the past! ;)
That would have been with the Oracle type 2 driver (which is rarely used
these days in favor of type-3 or type-4 drivers), too.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkfZTx4ACgkQ9CaO5/Lv0PA0EACgooPXkvzyqbVg6dx6UG05ie+x
yQsAoKlz9kzXPHXcHKjvXU151AAX0cbd
=RGSk
-----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
RE: Many Java Processes
Posted by David Short <ds...@san.rr.com>.
Don't know if this applies here or not but, I got this once when my
ORACLE_HOME wasn't set when using Jserv (wrapper.env=) with the Apache web
server.
-----Original Message-----
From: Stephen Nelson-Smith [mailto:sanelson@gmail.com]
Sent: Thursday, March 13, 2008 3:18 AM
To: Tomcat Users List
Subject: Many Java Processes
Hi,
I've noticed on one machine (4.1.31 / RHEL 3) as soon as I start Java I see
many Java processes:
$ pgrep -l java
1783 java
1844 java
1848 java
1849 java
1880 java
1881 java
1882 java
1883 java
1885 java
1886 java
1887 java
1888 java
1889 java
1890 java
1891 java
1892 java
1893 java
1894 java
1895 java
1896 java
1897 java
1898 java
1899 java
1900 java
1905 java
1906 java
1973 java
1981 java
1983 java
1984 java
1985 java
I only see one java process in the process list:
# ps auxw | grep java
root 1783 0.7 30.5 333988 156532 ? S Mar12 7:31
/usr/lib/jvm/java/bin/java -Dbuild.compiler.emacs=true
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath
/usr/lib/jvm/java/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
Is this to do with threading? I can't see a setting in server.xml that
would make this happen?
I have 4 other machines running the same version on the same OS, but I only
see one java process when I do pgrep -l java. What's happening?
S.
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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