Describe the bug
In case of remote application started with java -jar command, ProfilerPresets.getMainClass() is trying to access file on local file system, while the actual file path is computed from information from the remote application.
There are two problems with this code:
- if the local file does not exist - the method is unreasonably slow
- if the local file exist - results can be confusing. The returned main class can be different from actual one of the remote application.
Describe the bug
In case of remote application started with
java -jarcommand,ProfilerPresets.getMainClass()is trying to access file on local file system, while the actual file path is computed from information from the remote application.There are two problems with this code: