LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2012, 08:16 PM   #1
Mahalito
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
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?

Last edited by Mahalito; 01-11-2012 at 08:20 PM.
 
Old 01-13-2012, 08:22 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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.
 
Old 01-13-2012, 06:45 PM   #3
Mahalito
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bin file install failed on Ubuntu 10.04LTS but worked on Ubuntu 11.10 wh33t Linux - Software 8 01-18-2012 01:51 PM
[SOLVED] what's the difference between a multi-cpu , multi-core and a multi-thread system ? entz Linux - Hardware 11 12-20-2011 04:49 PM
OOo 3.2 crashes in Ubuntu 10.04lts dgermann Ubuntu 7 08-18-2010 09:37 PM
Cant install ubuntu 8.04LTS on my server. forcevision Linux - Server 6 05-26-2009 03:33 PM
Help for wine installation on Ubuntu 8.04LTS Ye Myint Linux - Newbie 4 09-29-2008 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration