Hi,

On 27 May 2015 at 19:20, Sean Carte <sean.ca...@gmail.com> wrote:

>
> 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?
>

No, my guess it that you aren't running jps as root. It only shows
information for the processes owned by the current user.


> Anyway,
>
> ps -ef | grep java | grep handle | grep -v 'grep'
>
> gets me the PID I need, so I'll just continue grepping excessively!
>

Sure thing, I just thought I'd mention the jps method in case it's useful
for someone!

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
------------------------------------------------------------------------------
_______________________________________________
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