Brian S O'Neill
2003-07-03 05:35:16 UTC
I just noticed that on the win32 version of jdk1.4.2, when it runs it
creates a hsperfdata_<username> directory in my temp directory with a small
numbered file. The file is 16k bytes, but I assume it can vary. Other VMs
running get a different number for their file. When the VM exits, the file
is deleted. While the VM is running, I cannot access the file to see what's
in it. I'm not sure if this feature exists on other platforms or previous
versions of the jdk, but I do know it didn't exist in jdk1.3.1.
Does anyone know the purpose of this file? By the name I can guess it has
something to do with HotSpot gathering performance data. If the file is
always 16k bytes, it sure isn't saving much memory storing this data in a
file. Since the file is deleted upon exit, the VM isn't preserving any
profiling data for future runs. Even if the file were to grow larger, it
wouldn't likely save any memory if its accessed often enough - the file
cache will hold it in memory.
creates a hsperfdata_<username> directory in my temp directory with a small
numbered file. The file is 16k bytes, but I assume it can vary. Other VMs
running get a different number for their file. When the VM exits, the file
is deleted. While the VM is running, I cannot access the file to see what's
in it. I'm not sure if this feature exists on other platforms or previous
versions of the jdk, but I do know it didn't exist in jdk1.3.1.
Does anyone know the purpose of this file? By the name I can guess it has
something to do with HotSpot gathering performance data. If the file is
always 16k bytes, it sure isn't saving much memory storing this data in a
file. Since the file is deleted upon exit, the VM isn't preserving any
profiling data for future runs. Even if the file were to grow larger, it
wouldn't likely save any memory if its accessed often enough - the file
cache will hold it in memory.