SkillAgentSearch skills...

Procname

Set process name for Java on Linux

Install / Use

/learn @airlift/Procname
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Overview

procname is a simple LD_PRELOAD library that sets the process name on Linux to the name specified in the environment variable PROCNAME. This allows Java programs to show up in top or ps acux as their logical name rather than the generic java. It could also be useful for other language runtimes such as Python or Ruby.

Usage

Run Java with the LD_PRELOAD and PROCNAME environment variables set:

LD_PRELOAD=/path/to/libprocname.so PROCNAME=hello java -jar foo.jar

License

This software is so simple, basically one line of code, that it hardly warrants a copyright or license. You may consider this software to be public domain, or use it under the terms of the MIT license.

View on GitHub
GitHub Stars103
CategoryDevelopment
Updated7d ago
Forks21

Languages

C

Security Score

95/100

Audited on Mar 25, 2026

No findings