java - htop and top showing multiple instances of process? -


i running java process ant. running 1 process.

when use htop, seeing following information:

enter image description here

scrolling right gives: enter image description here

basically, middle section comprised of just java process.

when ps aux | grep java, see:

$ ps aux | grep java victor   27982  1.0  1.9 3799504 163112 pts/1  sl+  02:00   0:06 /usr/bin/java -classpath /usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlparserapis.jar:/usr/share/java/xercesimpl.jar -dant.home=/usr/share/ant -dant.library.dir=/usr/share/ant/lib org.apache.tools.ant.launch.launcher -cp  tag victor   28003 19.0  6.6 3523136 544812 pts/1  sl+  02:00   1:51 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java -xmx2048m -classpath /home/victor/giordano/java/lib/commons-math3-3.0.jar:/home/victor/giordano/java/lib/guava-14.0.1.jar:/home/victor/giordano/java/lib/joda-time-2.2.jar:/home/victor/giordano/java/lib/postgresql-9.2-1002.jdbc4.jar -jar /home/victor/giordano/java/build/jar/giordano.jar 15 victor   28135  0.0  0.0   9388   924 pts/3    r+   02:10   0:00 grep --color=auto java 

any idea why there many instances of process in htop?

fyi running on quad core machine.

this build file if of interested.

<project name="giordano" basedir="." default="main">    <!-- keep eclipse's bin away our build, use separate folder -->   <property name="build.dir" value="build" />   <property name="src.dir" value="src" />   <property name="lib.dir" value="lib" />   <property name="classes.dir" value="${build.dir}/classes" />   <property name="jar.dir" value="${build.dir}/jar" />    <!-- main classes different processes -->   <property name="like.main.class" value="com.crowdy.learn.similaritylike" />   <property name="model.main.class" value="com.crowdy.learn.similaritymodel" />   <property name="tag.main.class" value="com.crowdy.learn.similaritytag" />    <path id="lib.path">     <fileset dir="${lib.dir}">       <include name="*.jar" />     </fileset>   </path>    <target name="clean">     <delete dir="${build.dir}" />   </target>    <target name="compile">     <mkdir dir="${classes.dir}" />     <javac srcdir="${src.dir}" destdir="${classes.dir}">       <classpath refid="lib.path" />     </javac>   </target>    <target name="main">     <echo>ant not defined. use ant like, ant tag or ant model.</echo>   </target>    <!-- running -->   <target name="like" depends="clean,like.run" />    <!-- ant properties not mutable.        if have -ddb=xyz passed in via cmd line not defined. -->   <property name="simthreshold" value="0.05"/>   <property name="minfeedback" value="40"/>    <target name="like.jar" depends="compile">     <mkdir dir="${jar.dir}" />     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">       <manifest>         <attribute name="main-class" value="${like.main.class}" />       </manifest>       <fileset dir="${classes.dir}" includes="**/*.class" />       <zipgroupfileset dir="${lib.dir}" includes="**/*.jar" />     </jar>   </target>    <target name="like.run" depends="like.jar">     <echo>setting parameter simthreshold ${simthreshold}</echo>     <echo>setting parameter minfeedback ${minfeedback}</echo>     <java jar="${jar.dir}/${ant.project.name}.jar" fork="true" maxmemory="1024m">       <classpath refid="lib.path" />       <arg value="${simthreshold}" />       <arg value="${minfeedback}" />     </java>   </target>    <!-- running model -->   <target name="model" depends="clean,model.run" />   <property name="minfeedbackcount" value="15"/>    <target name="model.jar" depends="compile">     <mkdir dir="${jar.dir}" />     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">       <manifest>         <attribute name="main-class" value="${model.main.class}" />       </manifest>       <fileset dir="${classes.dir}" includes="**/*.class" />       <zipgroupfileset dir="${lib.dir}" includes="**/*.jar" />     </jar>   </target>    <target name="model.run" depends="model.jar">     <java jar="${jar.dir}/${ant.project.name}.jar" fork="true" maxmemory="1024m">       <classpath refid="lib.path" />       <arg value="${minfeedbackcount}" />     </java>   </target>    <!-- running tag -->   <target name="tag" depends="clean,tag.run" />   <property name="mintagcount" value="20"/>    <target name="tag.jar" depends="compile">     <mkdir dir="${jar.dir}" />     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">       <manifest>         <attribute name="main-class" value="${tag.main.class}" />       </manifest>       <fileset dir="${classes.dir}" includes="**/*.class" />       <zipgroupfileset dir="${lib.dir}" includes="**/*.jar" />     </jar>   </target>    <target name="tag.run" depends="tag.jar">     <java jar="${jar.dir}/${ant.project.name}.jar" fork="true" maxmemory="1024m">       <classpath refid="lib.path" />       <arg value="${mintagcount}" />     </java>   </target>  </project> 

htop shows threads too. think these processes threads created application. if don't want see them press shift+h.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -