[Advanced-java] Wierd Behavior at time of creating a thread -
Kashikar, Makarand
makarand.kashikar at etrade.com
Mon Mar 24 20:45:37 2003
Yes - moving to 1.4.1 is better option but unfortunately
thats not so quick for me - since I will have to get approvals,
get code tested etc. etc. Since its production boxes that I
am talking about -
I am quite sure its not my code since between "new MyThread()"
and inside the MyThread constructor there is only this Thread.super() call
and nothing else - and my comments are printed that tells me this -
I tried using that -XX:+UseBoundThreads option on those production
boxes and since last 3 days its looking fine - but its still haunting me.
Thanks for help - any posting on this topic would really help me -
-----Original Message-----
From: Nikolaos Giannopoulos [mailto:nikolaos@solmar.ca]
Sent: Monday, March 24, 2003 11:16 AM
To: Kashikar, Makarand; Advanced-java@lists.xcf.berkeley.edu
Subject: RE: [Advanced-java] Wierd Behavior at time of creating a thread
-
Have you (or better yet) can you use 1.4.1?
Either way you may want to try it out to ensure its the VM and not the code.
As well, if you really need 1.3.X then maybe you could try out IBM's version
or somebody elses JVM of the same version.
--Nikolaos
> -----Original Message-----
> From: advanced-java-bounces@lists.xcf.berkeley.edu
> [mailto:advanced-java-bounces@lists.xcf.berkeley.edu]On Behalf Of
> Kashikar, Makarand
> Sent: Friday, March 21, 2003 7:56 PM
> To: 'Advanced-java@lists.xcf.berkeley.edu'
> Subject: [Advanced-java] Wierd Behavior at time of creating a thread -
>
>
> Hi all,
> I need to know if anyone of you has experienced this kind of behavior
>
> Solaris Info :
> Release: 5.7
> Kernel architecture: sun4u
> Application architecture: sparc
> Hardware provider: Sun_Microsystems
> Domain:
> Kernel version: SunOS 5.7 Generic 106541-19
>
> JDK info :
> java version "1.3.1"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
> Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
>
> When my java server starts - in the main thread i do this -
>
> System.out.println("Creating the my Thread");
> lt = new MyThread (); // and the MyThread extends from java.lang.Thread
>
> // MyThread in simplest form looks like this -
> public class MyThread extends Thread
> {
> public MyThread()
> {
> super("My thread");
> System.out.println("Super returned");
> }
> }
>
> Like once in 20 times (this is also random)
> sometimes the program just hangs at the statement "lt = new MyThread ();"
> so what I see in log file is "Creating the my Thread" and then I never see
> "Super returned".
>
> Basically looks like the thread constructor doesnt return -
>
> Has anyone experienced this kind of situation -
> There is a bug for this which is close to this situation -
> http://developer.java.sun.com/developer/bugParade/bugs/4545731.html
>
> I am going to try this -XX:+UseBoundThreads option -
> but any other help would be greatly appreciated -
>
> Makarand Kashikar
> _______________________________________________
> Advanced-java mailing list
> Advanced-java@lists.xcf.berkeley.edu
> http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java