Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Process name in PS for HttpServers #88

Closed
mattstep opened this Issue Apr 12, 2012 · 7 comments

Comments

Projects
None yet
4 participants
Contributor

mattstep commented Apr 12, 2012

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.

Contributor

mattstep commented Apr 12, 2012

From John Meyers

Contributor

electrum commented Apr 13, 2012

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

Contributor

mattstep commented Apr 13, 2012

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

Owner

johngmyers commented May 22, 2012

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

Owner

johngmyers commented May 23, 2012

Fixed by pull request #114

Owner

johngmyers commented May 23, 2012

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.

Contributor

davidhagar-zz commented Aug 24, 2012

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