added more logging to get info which url causes performance problems

pull/1/head
Michael Peter Christen 12 years ago
parent 1faa045dc1
commit b5ee88c6af

@ -279,6 +279,8 @@ public final class TextParser {
Document[] docs = null;
final Map<Parser, Parser.Failure> failedParser = new HashMap<Parser, Parser.Failure>();
String origName = Thread.currentThread().getName();
Thread.currentThread().setName("parsing + " + location.toString()); // set a name to get the address in Thread Dump
for (final Parser parser: parsers) {
if (MemoryControl.request(sourceArray.length * 6, false)) {
ByteArrayInputStream bis;
@ -306,6 +308,7 @@ public final class TextParser {
if (docs != null) break;
}
}
Thread.currentThread().setName(origName);
if (docs == null) {
if (failedParser.isEmpty()) {

Loading…
Cancel
Save