LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ubuntu 10.04LTS and Java Multi Core (https://www.linuxquestions.org/questions/linux-software-2/ubuntu-10-04lts-and-java-multi-core-923347/)

Mahalito 01-11-2012 08:16 PM

Ubuntu 10.04LTS and Java Multi Core
 
I am running a virtual server with Ubuntu 10.04LTS that shows 4 cores available in top and nmon. I have attempted several java applications that run multi-core with no problem on a windows box. To be specific, as a sanity test I am attempting to run the Java 7 Fork/Join sample at: http://www.javacodegeeks.com/2011/02...ogramming.html which has a single-thread and multi-thread example.

Whenever I run ANY multithreaded Java application in Ubuntu, It thrashes one of the cores and leaves the remaining 3 undisturbed. How do I get Ubuntu and Java to play nice with these apps and give them the multi-core loving I so desperately want them to enjoy?

corp769 01-13-2012 08:22 AM

Since you said you are running a virtual server, what are you using to do this? VMware? VirtualBox? You may need to enter the settings of said program and make sure that it has the correct permissions to use all cores of your CPU.

Mahalito 01-13-2012 06:45 PM

The VM is on Rackspace. Interesting thought... They may be showing multiple cores, but on lower timeshare/ram servers, they may truly only be exposing one. I'll experiment and report.


All times are GMT -5. The time now is 02:21 AM.