[ 
https://issues.apache.org/jira/browse/TIKA-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16694760#comment-16694760
 ] 

Mario Bisonti commented on TIKA-2776:
-------------------------------------

Hallo.

Tim, I have no log on filesystem with this log4j_child.xml



_<?xml version="1.0" encoding="UTF-8" ?>_
_<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">_
_<log4j:configuration debug="false"_
 _xmlns:log4j='http://jakarta.apache.org/log4j/'>_

_<appender name="console" class="org.apache.log4j.ConsoleAppender">_
 _<param name="target" value="System.err"/>_
 _<layout class="org.apache.log4j.PatternLayout">_
 _<param name="ConversionPattern"_ 
 _value="%d\\{yyyy-MM-dd HH:mm:ss} %-5p %c\\{1}:%L - %m%n" />_
 _</layout>_
 _</appender>_

_<appender name="file" class="org.apache.log4j.RollingFileAppender">_
 _<param name="append" value="false" />_
 _<param name="maxFileSize" value="10MB" />_
 _<param name="maxBackupIndex" value="10" />_
 _<param name="file" value="C:/Temp/tika/tikalog_child.log" />_
 _<layout class="org.apache.log4j.PatternLayout">_
 _<param name="ConversionPattern"_ 
 _value="%d\{yyyy-MM-dd HH:mm:ss} %-5p %c\{1}:%L - %m%n" />_
 _</layout>_
 _</appender>_

_<root>_
 _<level value="info" />_
 _<appender-ref ref="console" />_
 _<appender-ref ref="file" />_
 _</root>_

_</log4j:configuration>_

 

I don't understand if you have a log produced on the filesystem or not.

> Tika server child restart
> -------------------------
>
>                 Key: TIKA-2776
>                 URL: https://issues.apache.org/jira/browse/TIKA-2776
>             Project: Tika
>          Issue Type: Bug
>            Reporter: Mario Bisonti
>            Assignee: Tim Allison
>            Priority: Blocker
>             Fix For: 2.0.0, 1.20
>
>         Attachments: log4j.xml, log4j_child.xml
>
>
> Hallo.
> I use tika server standalone started with the option:
> java -jar /opt/tika/tika-server-1.19.1.jar -spawnChild
> I use ManifoldCF and Solr to index file using tika server.
> It happens that indexing is continuously crashed because I obtain many:
> Tika down, retrying: Connection reset
> etc.
> I suspect that, when a process is restarted, the client crash as mentioned 
> here:
> _If the child process is in the process of shutting down, and it gets a new 
> request it will return 503 -- Service Unavailable. If the server times out on 
> a file, the client will receive an IOException from the closed socket. Note 
> that all other files that are being processed will end with an IOException 
> from a closed socket when the child process shuts down; e.g. if you send 
> three files to tika-server concurrently, and one of them causes a 
> catastrophic problem requiring the child to shut down, you won't be able to 
> tell which file caused the problems. In the future, we may implement a 
> gentler shutdown than we currently have._
> as reported here https://wiki.apache.org/tika/TikaJAXRS
> How could I workaround it ?
> Thanks a lot
> Mario



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to