performance - Export large amount of data in JAVA EE Application -
i working on search based java ee application, simple search engine there, 1 page allows user search content , pagination move next set of result.now want provide functionality exporting data in text file problem when there large data exported consumes 100mb of jvm memory.
java ee experts please advice ?
i had here not helpful me
you saving whole data in kind of collection , serializing text file. - have noticed - might work small amounts of data application on knees when amount of data large. in case not way of doing because never how data query return.
you should stream results of query output, i.e. write each query result write aftre fetching it, no need temporarly saving it. might use implementation of outputstream. if sending file servlet might want write directly outputstream of servlet after setting right content type.
Comments
Post a Comment