aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Let me find the best of acheiving the performance with file I/O of storing XML files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply locked New topic
Author

Let me find the best of acheiving the performance with file I/O of storing XML files

kishore routhu
Greenhorn

Joined: Jan 17, 2013
Posts: 14
Dear Friends,

We are working Enterprise application that involves the storing of XML logs to Secondary Storage as part each request processing. But it consuming more CPU time when writing logs to Secondary Storage. Thus effecting the entire application performance.

I tried to improve this with following know methods.
1. Using ZIPInputStream to write bytes to ZIP file , It is good in accordance to less file Size but it consumes more time than writing bytes to plain text file.

2.Using GZIPInputStream to write compressed bytes of data to GZIP file relatively this is also as far as performance is concerned.

So any body please suggest me the best way for achieving best performance with I/O and less in file size ?

Thank You.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18669
    
    8

kishore routhu wrote:But it consuming more CPU time when writing logs to Secondary Storage. Thus effecting the entire application performance.


Sorry, I couldn't understand what was the other alternative. You can't just say "it consumes more CPU time", you have to say "it consumes more CPU time than X".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Let me find the best of acheiving the performance with file I/O of storing XML files