I have just noticed that because of one action(that i am trying to find out) virtual machine stucked few times(looks like Garbage Collector stopped the world). Normally small GC takes 0.05 second and suddently something happened, i can see in logs that it increased to even 15 seconds per one small GC. Virtual Machine was unstable for about 10 minutes.
Is there any way to find out the cause in source code(except asking users what they were doing in that moment)?
Virtual Machine is run in dedicated machine(Linux OS) and i have got access to it only remotely. Total memory used by the process is 6 gb(in the stable moment) so it takes a lot of time to create memory snapshot