Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


#82 Java Out of memory exception


Iam trying to process cvs log file of 600mb and getting out of memeory exception. I have set -Xmx2048m. I have realy memory of about 8 G.B. Can statcvs handle file size of 600mb ? If yes can u suggest me the java mem option for this .

email id:


    • assigned_to: nobody --> cyganiak
    • status: open --> closed-rejected
  • Logged In: YES
    Originator: NO

    You can't allocate more than 2GB of memory to the JVM on 32-bit operating systems. Run StatCVS on a 64-bit OS, or reduce the amount of memory it needs by limiting the date range or fiddling with the -include/-exclude options of StatCVS.

  • Logged In: NO

    Iam trying this in 64 bit . I have more that 130 projects Still getting the same issue.Kindly suggest me how to go abt apart from date ..

  • Logged In: YES
    Originator: NO

    I'm sorry, the StatCVS team doesn't know why your OS won't allocate more than 2GB to the JVM—this is not a StatCVS issue, it's a JVM/OS issue.

    The only easy way to reduce StatCVS memory consumption is using a date range, or analyzing a smaller number of files by using the -include or -exclude switches. Details are in the manual.

    I'm sure StatCVS could be improved to use less memory (e.g. by persisting to a database). If you want to work on this, patches are welcome.