I have a application that reads log messages from syslog, parses it and breaks it down into 4 fields i.e "timestamp", "facility", "severity" and "message".
I display this entire data in a JTable
(with 4 columns). I also simultaneously write these data to xml files.
The problem is that the current DefaultTableModel
runs out of memory when we keep adding rows(whenever new log messages arrive). So is there any other table model that can fit my use case.(i.e the JTable
must display all the log messages to the user without running out of memory).
If at all I try to implement my very own custom table model to update from the xml files when model reaches a certain limit, what are the things I must keep in mind (i.e problems, ideas) when designing such a model.
Note: I cannot use a database
Thanks.