my dog learned polymorphism*
The moose likes I/O and Streams 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Let me find the best of acheiving the performance with file I/O of storing XML files" Watch "Let me find the best of acheiving the performance with file I/O of storing XML files" 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: 18541
    
    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".
 
Don't get me started about those stupid light bulbs.
 
subject: Let me find the best of acheiving the performance with file I/O of storing XML files
 
Similar Threads
file compression and hard disk block sizes
Multi Files Transfer from client machines to server machines using socket communication in java
XMLData in oracle
Urgent comments needed please - file storage (DB vs. File Server)
Let me find the best of acheiving the performance with file I/O of storing XML files