[jboss-osgi-issues] [JBoss JIRA] Commented: (JBOSGI-297) OSGiBootstrapBean spinning on System.in read

Scott M Stark (JIRA) jira-events at lists.jboss.org
Fri Mar 5 11:52:10 EST 2010


    [ https://jira.jboss.org/jira/browse/JBOSGI-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12518422#action_12518422 ] 

Scott M Stark commented on JBOSGI-297:
--------------------------------------

>From these comments I'm not sure if your looking at the cpu utilization. Its not an issue of the runtime not starting quickly. I see the same type of startup logs. The issue is that once the boot has occurred, the cpu goes to 100% utilization due to the read on System.in returning -1. No one else is seeing that cpu usage?


> OSGiBootstrapBean spinning on System.in read
> --------------------------------------------
>
>                 Key: JBOSGI-297
>                 URL: https://jira.jboss.org/jira/browse/JBOSGI-297
>             Project: JBoss OSGi
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Core Framework
>    Affects Versions: JBossOSGi 1.0.0 Beta6
>         Environment: Mac OSX 10.5.8
> [523][valkyrie: trunk]$ java -version
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
>            Reporter: Scott M Stark
>            Assignee: Thomas Diesler
>
> At least under OSX, I'm seeing the default runtime configuration spinning in a loop reading the System.in stream:
> "Thread-2" prio=5 tid=0x0000000101955000 nid=0x13a6f9000 runnable [0x000000013a6f8000]
>    java.lang.Thread.State: RUNNABLE
> 	at java.io.FileInputStream.readBytes(Native Method)
> 	at java.io.FileInputStream.read(FileInputStream.java:199)
> 	at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
> 	- locked <0x0000000107aaf788> (a java.io.BufferedInputStream)
> 	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
> 	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
> 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
> 	- locked <0x0000000108289d20> (a java.io.InputStreamReader)
> 	at sun.nio.cs.StreamDecoder.read0(StreamDecoder.java:107)
> 	- locked <0x0000000108289d20> (a java.io.InputStreamReader)
> 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:93)
> 	at java.io.InputStreamReader.read(InputStreamReader.java:151)
> 	at org.jboss.osgi.spi.internal.OSGiBootstrapBean$StartupThread.run(OSGiBootstrapBean.java:205)
> This is a busy loop consuming 100% cpu. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-osgi-issues mailing list