1. java stringbuffer declaration stackoverflow.comWhen I don't include the commented line, prevLineBuffer contains "null." When i do include the commented line it still works, but prints an empty string. Does Java statically allocate space for ... |
2. Memory leak in being use the stringBuffer coderanch.comDoes anyone have the memory leak error while the stringBuffer uses in while loop? In the application, there are lots of record which needs to append with Stringbuffer. even though Stringbuffer has been null reguarly, the memory monitoring tool shows the char[] class are eating too many memory. GC is dropped the heap memory from the char[]. but not enough to ... |
3. asking about StringBuffer memory location coderanch.com |
4. clearing a StringBuffer and re-use his memory forums.oracle.comShort version: Don't try to get clever and "help" the VM's memory management unless you have verified a specific need to do so and you really know what you're doing. Thanks all for answers. But I have writen many memory builders in diferent languages, and setting an integer to 0 is always be shorter cpu time than allocating memory. Of course ... |
5. StringBuffer(Out of memory) forums.oracle.com |
6. stringbuffer memory problem forums.oracle.comThe question is: what are 25 MB of text doing in an applet? Who's supposed to look at all that info? Trim down the amount of information you display. You couldn't even navigate through that pile of text. A datatype that takes up less memory than stringbuffer perhaps? How would that work? If you have 25 MB of data, you'll have ... |