Re: ps line buffer

2008-07-17 Thread Kenny Lussier
On Thu, Jul 17, 2008 at 12:19 PM, Michael ODonnell <
[EMAIL PROTECTED]> 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...)
>  
>

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
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: ps line buffer

2008-07-17 Thread Michael ODonnell


>> 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...)

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: ps line buffer

2008-07-17 Thread Charlie Farinella
On Thursday 17 July 2008, Kenny Lussier wrote:
> Hi All,
> 
> Does anyone know how I can circumvent to 4096 character buffer limit 
in the
> ps command? We have an extremely long java command and when they 
developers
> do a ps auxww, it truncates the command at 4096 characters. They want 
to see
> the entire thing...
> 
> TIA,
> Kenny
> 

I had the same exact problem yesterday and took the easy way out by 
dumping the ps output to a file.

--charlie

-- 

Charles Farinella 
Appropriate Solutions, Inc. (www.AppropriateSolutions.com)
[EMAIL PROTECTED]
voice: 603.924.6079   fax: 603.924.8668

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: ps line buffer

2008-07-17 Thread Kenny Lussier
On Thu, Jul 17, 2008 at 11:50 AM, Michael ODonnell <
[EMAIL PROTECTED]> wrote:

>
> > ps auxww truncates command at 4096 characters,
> > [developers] want to see the entire thing...
>
> 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).

Thanks,
Kenny
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: ps line buffer

2008-07-17 Thread Mark Greene
Try removing the headers and piping the output to fold using the -w option
to specify the width you want

mark


On Thu, Jul 17, 2008 at 11:44 AM, Kenny Lussier <[EMAIL PROTECTED]> wrote:

> Hi All,
>
> Does anyone know how I can circumvent to 4096 character buffer limit in the
> ps command? We have an extremely long java command and when they developers
> do a ps auxww, it truncates the command at 4096 characters. They want to see
> the entire thing...
>
> TIA,
> Kenny
>
>
> ___
> gnhlug-discuss mailing list
> gnhlug-discuss@mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
>
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: ps line buffer

2008-07-17 Thread Michael ODonnell

> ps auxww truncates command at 4096 characters,
> [developers] want to see the entire thing...

If they know the PID in question this might work:

   xargs -0 < /proc/$PID/cmdline
 
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/