On 26 May 2015 at 23:44, Andrea Schweer <schw...@waikato.ac.nz> wrote:

> I use
> sudo jps -l
> (jps is like ps but just for JVM processes; the -l option tells it to
> output the full class name incl package)
>
> On one of my production DSpace servers, that currently says:
> 13042 sun.tools.jps.Jps
> 1768 org.apache.catalina.startup.Bootstrap
> 1978 net.handle.server.Main
>
> So the first one is jps itself, the second one is tomcat and the third one
> is the handle service. A few greps less ;)
>

Thanks, Andrea, unfortunately my servers produce output like this:

~# jps -lv
1867 -- process information unavailable
6514 sun.tools.jps.Jps -Dapplication.home=/usr/lib/jvm/java-7-openjdk-amd64
-Xms8m
1636 -- process information unavailable

I'm guessing that's because I'm using the OpenJDK?

Anyway,

ps -ef | grep java | grep handle | grep -v 'grep'

gets me the PID I need, so I'll just continue grepping excessively!

Sean
--
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to