ps line buffer
Kenny Lussier
klussier at gmail.com
Thu Jul 17 15:56:35 EDT 2008
On Thu, Jul 17, 2008 at 12:19 PM, Michael ODonnell <
michael.odonnell at comcast.net> wrote:
>
>
> >> 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...)
> <http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/>
>
4k is obscenely heinous. These are java apps that call and exec other jar
files, etc., so the ps output is extremely long. I did manage to get
everything by doing ps eaufww. It shows the exec tree, and gave them exactly
what they needed (I guess).
Thanks,
Kenny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20080717/3e491127/attachment.html
More information about the gnhlug-discuss
mailing list