Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Aug 2009 21:00:18 +0930
From:      Wayne Sierke <ws@au.dyndns.ws>
To:        freebsd-eclipse@freebsd.org
Subject:   java process doesn't terminate after exiting eclipse
Message-ID:  <1249644618.2033.15716.camel@predator-ii.buffyverse>

next in thread | raw e-mail | index | archive | help
Since upgrading eclipse-devel to eclipse (along with a bunch of other
ports) a few months ago I'm finding that the java process doesn't
terminate after I exit eclipse:

%eclipse 
load: 1.49  cmd: java 14501 [umtxn] 95.12u 44.28s 3% 130276k
load: 1.20  cmd: java 14501 [ucond] 95.12u 44.28s 0% 127548k
load: 1.14  cmd: java 14501 [ucond] 95.12u 44.28s 0% 127548k
load: 0.96  cmd: java 14501 [ucond] 95.12u 44.28s 0% 127548k
load: 1.08  cmd: java 14501 [ucond] 95.12u 44.28s 0% 126872k
^C
%eclipse
load: 1.15  cmd: java 48256 [uwait] 55.02u 2.30s 0% 156472k
load: 1.13  cmd: java 48256 [uwait] 55.02u 2.30s 0% 156472k
load: 1.12  cmd: java 48256 [uwait] 55.02u 2.30s 0% 156472k
load: 1.12  cmd: java 48256 [uwait] 55.02u 2.30s 0% 156472k
load: 0.91  cmd: java 48256 [uwait] 55.02u 2.30s 0% 156472k
^C
%
%eclipse
load: 0.59  cmd: java 49405 [umtxn] 51.42u 2.77s 5% 158376k
load: 0.59  cmd: java 49405 [umtxn] 51.42u 2.77s 4% 158376k
load: 0.65  cmd: java 49405 [umtxn] 51.42u 2.77s 2% 158376k
load: 0.60  cmd: java 49405 [ucond] 51.42u 2.77s 0% 158360k
load: 0.55  cmd: java 49405 [ucond] 51.42u 2.77s 0% 158360k
load: 0.46  cmd: java 49405 [ucond] 51.42u 2.77s 0% 154768k
load: 0.70  cmd: java 49405 [ucond] 51.42u 2.78s 0% 147344k
^C
%
%eclipse
load: 1.62  cmd: java 77355 [ucond] 24.44u 2.60s 13% 117992k
load: 1.45  cmd: java 77355 [umtxn] 26.92u 2.93s 8% 118664k
load: 1.46  cmd: java 77355 [umtxn] 26.92u 2.93s 5% 118664k
load: 1.26  cmd: java 77355 [select] 26.92u 2.93s 0% 113408k
load: 1.16  cmd: java 77355 [select] 26.92u 2.93s 0% 113408k
load: 0.98  cmd: java 77355 [select] 26.92u 2.93s 0% 113408k
load: 0.70  cmd: java 77355 [select] 26.92u 2.93s 0% 113408k
load: 0.72  cmd: java 77355 [select] 26.92u 2.93s 0% 112348k
load: 0.64  cmd: java 77355 [select] 26.92u 2.95s 0% 37628k


This last instance was still running (hadn't ^C) and there's an interval
of a few hours between the third-to-last and second-to-last and about
another 20 hours before the last lines.

top(1) and ps(1) show:

%top -b 999 | grep java
14501 ws           12   4    0   904M   108K select 1   0:00  0.00% java
49405 ws           10   4    0   647M    92K select 1   0:00  0.00% java
48256 ws           10   4    0   664M    92K select 1   0:00  0.00% java
77355 ws           10   4    0   645M 37708K select 1   0:00  0.00% java
%ps auxww | grep java
ws         14501  0.0  0.0 925824   108  pa  I    Sun11PM
2:19.42 /usr/local/jdk1.6.0/bin/java -Xms40m -Xmx256m
-XX:MaxPermSize=512m
-jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -os freebsd -ws gtk -arch x86 -showsplash -launcher /usr/local/eclipse/eclipse -name Eclipse --launcher.library /usr/local/eclipse//plugins/org.eclipse.equinox.launcher.gtk.freebsd.x86_1.0.101.R34x_v20080805/eclipse_1116.so -startup /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -exitdata 40026 -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -XX:MaxPermSize=512m -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
ws         48256  0.0  0.0 680096    92  pa  I    Tue03PM
0:57.34 /usr/local/jdk1.6.0/bin/java -Xms40m -Xmx256m
-XX:MaxPermSize=256m
-jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -os freebsd -ws gtk -arch x86 -showsplash -launcher /usr/local/eclipse/eclipse -name Eclipse --launcher.library /usr/local/eclipse//plugins/org.eclipse.equinox.launcher.gtk.freebsd.x86_1.0.101.R34x_v20080805/eclipse_1116.so -startup /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -exitdata 8002e -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -XX:MaxPermSize=256m -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
ws         49405  0.0  0.0 662268    92  pa  I    Tue05PM
0:54.21 /usr/local/jdk1.6.0/bin/java -Xms40m -Xmx256m
-XX:MaxPermSize=256m
-jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -os freebsd -ws gtk -arch x86 -showsplash -launcher /usr/local/eclipse/eclipse -name Eclipse --launcher.library /usr/local/eclipse//plugins/org.eclipse.equinox.launcher.gtk.freebsd.x86_1.0.101.R34x_v20080805/eclipse_1116.so -startup /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -exitdata 4002d -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -XX:MaxPermSize=256m -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
ws         77355  0.0  1.8 660636 37708  pa  I+    8:52PM
0:29.86 /usr/local/jdk1.6.0/bin/java -Xms40m -Xmx256m
-XX:MaxPermSize=256m
-jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -os freebsd -ws gtk -arch x86 -showsplash -launcher /usr/local/eclipse/eclipse -name Eclipse --launcher.library /usr/local/eclipse//plugins/org.eclipse.equinox.launcher.gtk.freebsd.x86_1.0.101.R34x_v20080805/eclipse_1116.so -startup /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -exitdata 60035 -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -XX:MaxPermSize=256m -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar


Tried kill -HUP on the oldest process (after ^C the existing one and
launching/exiting another eclipse):

%kill -HUP 14501
%ps auxww | grep java
ws          1891  0.0  6.7 657816 139692  pa  S+    8:36PM
0:30.45 /usr/local/jdk1.6.0/bin/java -Xms40m -Xmx256m
-XX:MaxPermSize=256m
-jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -os freebsd -ws gtk -arch x86 -showsplash -launcher /usr/local/eclipse/eclipse -name Eclipse --launcher.library /usr/local/eclipse//plugins/org.eclipse.equinox.launcher.gtk.freebsd.x86_1.0.101.R34x_v20080805/eclipse_1116.so -startup /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -exitdata 50038 -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -XX:MaxPermSize=256m -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
ws         14501  0.0  0.0 925824   656  pa  S    Sun11PM
2:19.42 /usr/local/jdk1.6.0/bin/java -Xms40m -Xmx256m
-XX:MaxPermSize=512m
-jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -os freebsd -ws gtk -arch x86 -showsplash -launcher /usr/local/eclipse/eclipse -name Eclipse --launcher.library /usr/local/eclipse//plugins/org.eclipse.equinox.launcher.gtk.freebsd.x86_1.0.101.R34x_v20080805/eclipse_1116.so -startup /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -exitdata 40026 -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -XX:MaxPermSize=512m -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
ws         48256  0.0  0.0 680096     0  pa  IW   -         0:00.00 (java)
ws         49405  0.0  0.0 662268     0  pa  IW   -         0:00.00 (java)
ws         77355  0.0  0.0 660636     0  pa  IW   -         0:00.00 (java)


System is 7.2-STABLE i386 GENERIC.

Port versions: eclipse-3.4.2_1 jdk-1.6.0.3p4_11 and ports tree and ports
are generally up-to-date other than the recent spate of jpeg and libtool
PORTREVISION bumps:

# portversion -vRl'<' eclipse-\*
gnome-icon-theme-2.26.0_1   <  needs updating (port has 2.26.0_2) 
gnome-keyring-2.26.3        <  needs updating (port has 2.26.3_1) 
gnome-mount-0.8_2           <  needs updating (port has 0.8_3) 
gnome-vfs-2.24.1            <  needs updating (port has 2.24.1_1) 
gvfs-1.2.3                  <  needs updating (port has 1.2.3_2) 
libbonoboui-2.24.1          <  needs updating (port has 2.24.1_1) 
libdrm-2.4.11               <  needs updating (port has 2.4.12) 
libglade2-2.6.4             <  needs updating (port has 2.6.4_1) 
libgnome-2.26.0             <  needs updating (port has 2.26.0_1) 
libgnomecanvas-2.26.0       <  needs updating (port has 2.26.0_1) 
libgnomeui-2.24.1           <  needs updating (port has 2.24.1_1) 
libgphoto2-2.4.6            <  needs updating (port has 2.4.6_1) 
libltdl-1.5.26              <  needs updating (port has 2.2.6a) 
libnotify-0.4.5             <  needs updating (port has 0.4.5_1) 
libsoup-2.26.3              <  needs updating (port has 2.26.3_1) 
libxul-1.9.0.11_1           <  needs updating (port has 1.9.0.12) 
policykit-gnome-0.9.2_1     <  needs updating (port has 0.9.2_2) 


%diff -u /usr/local/etc/javavm_opts.conf /usr/local/etc/javavm_opts.conf.dist 
%cat /usr/local/etc/javavms
/usr/local/jdk1.6.0/bin/java # FREEBSD-JDK1.6.0
/usr/local/diablo-jdk1.5.0/bin/java # DiabloCaffe1.5.0
%java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build
diablo-1.5.0-b01)
Java HotSpot(TM) Server VM (build diablo-1.5.0_07-b01, mixed mode)
%

I'm curious and puzzled about the "java -version" result, but I note
from the ps output above that eclipse seems to find
1.6.0: /usr/local/jdk1.6.0/bin/java

Anyone know what might be going on here? I did recently encounter some
plug-in problems after updating eclipse (I've currently left the
problematic plug-ins uninstalled) but have no idea whether that holds
any relevance.


Thanks,

Wayne





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1249644618.2033.15716.camel>