I've been trying to get a slow NBM Application to perform better. Upon running a profiler, I saw that most of the time is spent in poll0().
The top 6 methods (by Total Time(CPU) above are all in sun.nio.ch.WindowSelectorImpl or SelectorImpl.
Could someone help me interpret the profiling results? My guess would be that there are far too many threads repainting far too often. Could this be a plausible explanation?
I think I should add that the application is poorly programmed, with incompetent concurrency stuff going on. So, it's quite possible that there are stupid things going on.
Also, I'd be nice if someone could point out any reading material on how to find bottlenecks in such applications.