We have been running into a very hard to track down problem in our app. Periodically (once every couple of days) the CPU will spike to 100% and stay there. After some investigation, we tracked it down to this stack trace from a URLConnection. This is on an HTC on 2.2. It just never seems to get out of the read.
We have set the readTimeout and the connectTimeout. We are going to try switching to HTTPClient also, but it would be great to know what is going on. Also, does anyone know what the schedstat numbers mean? Thanks! "pool-2-thread-1" prio=5 tid=15 RUNNABLE | group="main" sCount=1 dsCount=0 s=Y obj=0x45d25f78 self=0x14abf8 | sysTid=19919 nice=19 sched=0/0 cgrp=default handle=2883864 | schedstat=( 254195831204 89118408161 114553 ) at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:~570) at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java: 88) at java.io.InputStream.skip(InputStream.java:258) at org.apache.harmony.luni.net.SocketInputStream.skip(SocketInputStream.java: 93) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl $ChunkedInputStream.skipOutstandingChunks(HttpURLConnectionImpl.java: 374) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl $ChunkedInputStream.close(HttpURLConnectionImpl.java:349) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

