I have a very unexpected behavior with my Java Code, I am working on ML-algorithms, and my code executes more than 15 times faster when I use "Run File" in my IDE (NetBeans 7.0.1) than when I execute exact same classes and inputs from a terminal (Konsole 2.11.3). I am running Mint Linux.
Case #1 NetBeans:
...
99.69348%
99.808426%
99.92337%
Total FS time: 830ms
Converting Test Data...
Test Data Ready!
...
Case #2 Konsole:
...
99.69348%
99.808426%
99.92337%
Total FS time: 15496ms
Converting Test Data...
Test Data Ready!
...
You may ask what I have tried but.... I really have no idea where to start, the classes are literally the same, as well as the input, I opened my System Monitor and noticed that when I run the file from NetBeans, it can use all my CPU threads (8), and when running from Konsole it only uses 1, I think that! is causing the delay but as far as I know is the O.S who is in charge about how to use the CPU cores.
Hopefully somebody could point me in the right direction. Maybe a Profiler could help?