Windows – How to verify the heap size startup arguments for an active JVM that’s running as a Windows service and loading JVM params from registry

heapspacejavawindows

I've got a Windows server with a third-party application on it that runs as a Windows service. The service/application is actually a java virtual machine however it displays in task manager as an exe (let's call it foo.exe).

I know that the program is designed to pick up JVM heap size allocation preferences from the registry and I know where in the registry it's looking for that information. That being said, I'm not sure if an admin edited the registry before (or after) starting the service.

Since this is a production system, I'm reluctant to restart the service (especially if it's already using the heap allocation values I'm seeing in the registry now). Is there any other way I can tell WITHOUT restarting the service? I suppose I could look at the currently use memory in task manager but that wouldn't provide the exact values.

Best Answer

Show the command line column in task manager, which should have the settings assuming they were passed on the command line:

task manager

Related Topic