Profiled application started too soon



When I try to perform the application startup profiling getting Profiled application started too soon have attached error message screenshot below.

https://i.stack.imgur.com/9ywTW.png

This warning shows after I forcibly killed a previously profiled application. Have restarted my system but still shows that warning.

Thanks in advance.

Answer

After analysing the visualvm source code, there is a file (${user.home}/.nbprofiler/5140) which will be create by visualvm on each profiling startup and will deleted at the end of profiling.

In my case due to the previous force killing of application which eventually leaves that file (not deleted) after manual deleting that file it works fine.

Reference links



Source: stackoverflow