#27 10.4 beta genConfig on linux with command line > 4096


This is due to the fact that /proc/PID/cmdLIne only stores first 4096 characters of the command.

For maven projects I would expect this might be a common problem, it certainly is in our case. Not sure what the options are however.


  • Jason Pell

    Jason Pell - 2010-12-04

    I did some more checking and it looks like there is actually a 1024 character limitation because the
    org.rzo.yajsw.os.posix.Utils only reads the first 1024 characters, which is just a little strange to be honest. Why would you stop reading a file at 1k?

  • rzo

    rzo - 2011-01-07

    Thanks for reporting this.
    The 1024 limit is just because I was assuming that there will be no longer command line.
    For the next release I have set the limit to the Linux supported limit of 4096.

    I currently do not see how to get beyond this limit.
    If you have any idea how to get the command line of a process without this limit I would be happy to adapt. Searching the net I have not found how to do this.

    BTW, what are you using the genConfig feature for ? It is not clear to me what you mean by "maven projects". Would a maven plugin be more appropriate for your use case ?

    -- Ron

  • rzo

    rzo - 2011-01-12
    • status: open --> open-accepted

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks