ps line buffer

Michael ODonnell michael.odonnell at comcast.net
Thu Jul 17 12:19:27 EDT 2008



>> If they know the PID in question this might work:
>>
>>   xargs -0 < /proc/$PID/cmdline
>>
>
> Apparently /proc/$PID/cmdline only holds 4096 characters as well
> (on RHEL5 at least).

Now that you mention it I think that might be a hard
system limit.  Can you demonstrate that the command line
as presented to the app hasn't been truncated to 4096 by
the kernel's exec code?  I suspect not.  

(and a 4k command line seems heinous, anyway...)



More information about the gnhlug-discuss mailing list