Re: Jvm process sometimes hangs and does not respond to ctrl-c

View: New views
5 Messages — Rating Filter:   Alert me  

Re: Jvm process sometimes hangs and does not respond to ctrl-c

by Mattias Bergander-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi again,
Noone has ever seen this? This is currently a showstopper for us. Any kind of feedback would be appreciated.
 
--
Mattias Bergander MSc
Consat Engineering
Phone: +46 31 340 00 30
 
 


From: Mattias Bergander
Sent: Thursday, December 14, 2006 2:47 PM
To: 'jamvm-general@...'
Subject: Jvm process sometimes hangs and does not respond to ctrl-c

Hi,
 
jamvm (1.4.4) works great for us except that it hangs about 1 out of 10 startups. When this happens CTRL-C can't be used to terminate the process and QUIT does not work to get a thread dump on those occasions.
CPU load is next to nothing when this happens.
 
Platform:
PPC MPC5200
Linux eldk 2.1, gcc 2.95.4
Also tried to compile with disable-int-thread disable-int-direct, no difference
Classpath version: 0.92
 
Attached are logs when it works fine and when it hangs with verbose jni and strace information. Both are zipfiles containing one text-file each, but with an extra suffix to get around the zip-file filter on the sf-mailing lists.
 
Does anyone have any ideas what could be the cause of this, or more things for us to try?
 
/mattias & jon
 
--
Mattias Bergander MSc
Consat Engineering
Phone: +46 31 340 00 30
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jvm process sometimes hangs and does notrespond to ctrl-c

by Mattias Bergander-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh, and we've since then tried with jamvm 1.4.5 and classpath 0.93.
 
--
Mattias Bergander MSc
Consat Engineering
Phone: +46 31 340 00 30
 
 


From: jamvm-general-bounces@... [mailto:jamvm-general-bounces@...] On Behalf Of Mattias Bergander
Sent: Tuesday, February 20, 2007 2:05 PM
To: jamvm-general@...
Subject: Re: [Jamvm-general] Jvm process sometimes hangs and does notrespond to ctrl-c

Hi again,
Noone has ever seen this? This is currently a showstopper for us. Any kind of feedback would be appreciated.
 
--
Mattias Bergander MSc
Consat Engineering
Phone: +46 31 340 00 30
 
 


From: Mattias Bergander
Sent: Thursday, December 14, 2006 2:47 PM
To: 'jamvm-general@...'
Subject: Jvm process sometimes hangs and does not respond to ctrl-c

Hi,
 
jamvm (1.4.4) works great for us except that it hangs about 1 out of 10 startups. When this happens CTRL-C can't be used to terminate the process and QUIT does not work to get a thread dump on those occasions.
CPU load is next to nothing when this happens.
 
Platform:
PPC MPC5200
Linux eldk 2.1, gcc 2.95.4
Also tried to compile with disable-int-thread disable-int-direct, no difference
Classpath version: 0.92
 
Attached are logs when it works fine and when it hangs with verbose jni and strace information. Both are zipfiles containing one text-file each, but with an extra suffix to get around the zip-file filter on the sf-mailing lists.
 
Does anyone have any ideas what could be the cause of this, or more things for us to try?
 
/mattias & jon
 
--
Mattias Bergander MSc
Consat Engineering
Phone: +46 31 340 00 30
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jvm process sometimes hangs and does not respond to ctrl-c

by Rafael Teixeira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On ARM, using uclibc, we had to patch java thread creation as some
error on pthreads was giving the same PID twice for the creation of
the first secondary thread. That led to strange locks. As we didn't
have the expertise to correct pthreads we patched the creation of
threads in jamvm to just toss out the first created thread and use the
subsequent ones.

Hope it helps,

On 2/20/07, Mattias Bergander <mattias.bergander@...> wrote:

>
>
> Hi again,
> Noone has ever seen this? This is currently a showstopper for us. Any kind
> of feedback would be appreciated.
>
> --
> Mattias Bergander MSc
> Consat Engineering
> Phone: +46 31 340 00 30
>
>
>
>  ________________________________
>  From: Mattias Bergander
> Sent: Thursday, December 14, 2006 2:47 PM
> To: 'jamvm-general@...'
> Subject: Jvm process sometimes hangs and does not respond to ctrl-c
>
>
>
>
> Hi,
>
> jamvm (1.4.4) works great for us except that it hangs about 1 out of 10
> startups. When this happens CTRL-C can't be used to terminate the process
> and QUIT does not work to get a thread dump on those occasions.
>
> CPU load is next to nothing when this happens.
>
> Platform:
> PPC MPC5200
> Linux eldk 2.1, gcc 2.95.4
> Also tried to compile with disable-int-thread disable-int-direct, no
> difference
> Classpath version: 0.92
>
> Attached are logs when it works fine and when it hangs with verbose jni and
> strace information. Both are zipfiles containing one text-file each, but
> with an extra suffix to get around the zip-file filter on the sf-mailing
> lists.
>
> Does anyone have any ideas what could be the cause of this, or more things
> for us to try?
>
> /mattias & jon
>
> --
> Mattias Bergander MSc
> Consat Engineering
> Phone: +46 31 340 00 30
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Jamvm-general mailing list
> Jamvm-general@...
> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>
>


--
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jvm process sometimes hangs and does not respond to ctrl-c

by andreas6410 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
we have a similar problem with the same configuration 0,92, uclic, ARM.
Our App runs a couple of hours. At a certainly point the app stops and hangs. Only a kill -9 jamvm can stop the app.
I think this is the same problem, because it happens only if thread are created.

I want to know what is the exactly reason for this behaviour (identical PID`s).


>On ARM, using uclibc, we had to patch java thread creation as some
error on pthreads was giving the same PID twice for the creation of
the first secondary thread. <


Re: Jvm process sometimes hangs and does not respond to ctrl-c

by Rafael Teixeira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think it is some bug on the pthread code in uclibc, but I am not sure.
My patch was on jamvm, to circunvent the problem, for the first thread
I create it twice, to get a sane thread for java to use.

On 4/30/07, andreas6410 <verkauf@...> wrote:

>
> Hello,
> we have a similar problem with the same configuration 0,92, uclic, ARM.
> Our App runs a couple of hours. At a certainly point the app stops and
> hangs. Only a kill -9 jamvm can stop the app.
> I think this is the same problem, because it happens only if thread are
> created.
>
> I want to know what is the exactly reason for this behaviour (identical
> PID`s).
>
>
> >On ARM, using uclibc, we had to patch java thread creation as some
> error on pthreads was giving the same PID twice for the creation of
> the first secondary thread. <
>
>
> --
> View this message in context: http://www.nabble.com/Re%3A-Jvm-process-sometimes-hangs-and-does-not-respond-to-ctrl-c-tf3260395.html#a10256978
> Sent from the JamVM mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jamvm-general mailing list
> Jamvm-general@...
> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>


--
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general