File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Using Profiling in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Using Profiling in Java" Watch "Using Profiling in Java" New topic

Using Profiling in Java

Varun Kum

Joined: Jan 21, 2012
Posts: 1

I am trying to run HPROF Command in IBM AIX running Java 5 version.

I am using the following command:

java -Xrunhprof:cpu=times

I receive the following output:
HPROF ERROR: can't write profile file: java.hprof.txt

Has anyone been able to get HPROF working on a AIX machine running Java5 (or any version)?

Am I executing a wrong command, if so what is the correct way to get this working ?

Any insights would help !

Thanks much mates!!

I agree. Here's the link:
subject: Using Profiling in Java
It's not a secret anymore!