How do I increase the /proc/pid/cmdline 4096 byte limit?

user27635 picture user27635 · Oct 13, 2008 · Viewed 18.7k times · Source

For my Java apps with very long classpaths, I cannot see the main class specified near the end of the arg list when using ps. I think this stems from my Ubuntu system's size limit on /proc/pid/cmdline. How can I increase this limit?

Answer

Kevin Cross picture Kevin Cross · Sep 8, 2010

For looking at Java processes jps is very useful.

This will give you the main class and jvm args:

jps -vl | grep <pid>