length « StringBuffer « Java Data Type Q&A

1. Maximum length of StringBuffer object    forums.oracle.com

Tell us what you are trying to acheive. As others have said, it's not likely that you want to load up the StrungBuffer and leave it there. If you are working on a file then you would be better off reading in a section at a time instead of just loading the whole thing. Ted.