Skip to content
This repository

Process name in PS for HttpServers #88

Closed
mattstep opened this Issue · 7 comments

4 participants

Matt Stephenson David Phillips John Gardiner Myers David Hagar
Matt Stephenson

The name for the http server should be the service name instead of java.... So we can use normal unix utilities to find and work with various platform processes.

Matt Stephenson

From John Meyers

David Phillips

I have a library for this: https://github.com/electrum/procname

Matt Stephenson

Awesome! It will be some work to make it generic enough to be brought in for all our stuff, but maybe there is a way to make a simple mechanism to bring this in on a per-build basis with the target arch and such as build parameters...

John Gardiner Myers
Owner

A simpler mechanism would be to have a symlink or hardlink to the java executable.

John Gardiner Myers
Owner

Fixed by pull request #114

John Gardiner Myers
Owner

The symlink doesn't affect the process name. The hard link is looking untenable as Java seems to depend on the directory containing the executable in order to find shared libraries.

In Linux 2.6.33, one can do this by writing to /proc/self/comm. Unfortunately, CentOS 6 is based on 2.6.32.

David Hagar

Won't fix. Would like to but can't find a way to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.