Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / October 2005

Tip: Looking for answers? Try searching our database.

Java and Hyperthreading processors

Thread view: 
Firdousi Farozan Z - 06 Oct 2005 05:24 GMT
Hi All,

How does JVM handle hyper threading? I am using Tomcat as the servlet
engine. And I have multiple servlets (and the threads from the servlets)
making JNI calls and when hyperthreading is enabled, I see some strange
deadlock issues. JNI calls just hang, making the other threads to
continously wait for the monitor (lock). This is making my entire
application to hang.

(Since JNI calls hang, I suspect it could be some deadlock issues in the
native code. But still wanted to ask if there are known issues with JVM
with respect to hyperthreading)

Anyone faced similar issues?

No issues when we disable hyperthreading.

Regards,
Firdousi Farozan
Denis - 07 Oct 2005 04:39 GMT
As far as I know, Sun's JVM is fully compatible with hyperthreading, in
the sence that it must run fine on an HT computer. There is a chance
that your problem is a bug in JVM, but this is unlikely.

Most likely, the problem is somewhere in your native code. Running an
applicaiton on HT machine greatly increases amount of locks and thread
competitions, so I guess there is a bug in your code (lack of
synchronization somewhere, maybe in native code)  that does not
reproduce on traditional single-cpu PC, but strikes on an HT machine.
You can also try to run your app on a machine with four virtual CPUs
(2CPU, both with HT enabled).

We debug such problems by adding excessive amount of logging (printig
thread IDs everywhere), and then spending hours looking at logs and the
source code ;-)

Denis

-------------------
http://www.excelsior-usa.com/jet.html
Accelerate and protect your Java applications with Excelsior JET


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.