Profiling (-agentlib:hprof) of "endless" applications?
When I start my server application with
-agentlib:hprof=cpu=times
it creates a file 'java.hprof.txt' and the execution is very slow. So, I guess profiling is working. But how do I get the results? I read somewhere that the results are written to the hprof file when the applicatione exits. But our server application runs "endlessly", meaning: it doesn't have an exit method because it runs as a (Windows) service. So is there a special option telling to write current state to the file, e.g. every minute?

