I have a java app that reads/writes many binary files. I'm looking for a tool to give me a breakdown of #of writes and #of reads per hour for each file it writes.
You could just record each time you read/write a file and have a counter which resets every hours. Or am I missing something? I am not aware of an external tool which reports this sort of information for Java.
You could try tracing the systems calls with something like pstrace or dtrace but that only works on unix. There might be a similar tool for windows. In any case the tool wouldn't be written in Java as it need to make very low level system calls to monitor this information.
Its not a very common requirement, are you sure you need to know this?
The applicataion is quite large so I cannot change all the source. I have benn having good results with Process Monitor which seems to give me what I need.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.