Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 290
user27635 Avatar asked Oct 13 '08 21:10

user27635


1 Answers

For looking at Java processes jps is very useful.

This will give you the main class and jvm args:

jps -vl | grep <pid> 
like image 82
Kevin Cross Avatar answered Sep 21 '22 15:09

Kevin Cross